Merge lp:~nick-schutt/lava-project/nicks_add_calxeda_docs into lp:lava-project

Proposed by Nicholas Schutt
Status: Merged
Merged at revision: 53
Proposed branch: lp:~nick-schutt/lava-project/nicks_add_calxeda_docs
Merge into: lp:lava-project
Diff against target: 144 lines (+70/-15)
1 file modified
doc/ipmi-pxe-deploy.rst (+70/-15)
To merge this branch: bzr merge lp:~nick-schutt/lava-project/nicks_add_calxeda_docs
Reviewer Review Type Date Requested Status
Linaro Validation Team Pending
Review via email: mp+160114@code.launchpad.net

Description of the change

add dhclient files

To post a comment you must log in.
58. By Nicholas Schutt

add files for dhclient to initramfs

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/ipmi-pxe-deploy.rst'
--- doc/ipmi-pxe-deploy.rst 2013-04-17 15:19:32 +0000
+++ doc/ipmi-pxe-deploy.rst 2013-04-22 13:53:29 +0000
@@ -229,12 +229,52 @@
229Creating the kernel and initrd for pxe booting229Creating the kernel and initrd for pxe booting
230..............................................230..............................................
231231
232An initrd can be created from a running ubuntu system/232An initrd can be created from a running ubuntu system
233233
2341. Install ubuntu on a target server.2341. Install ubuntu on a target server.
235235
2362362. Set up busybox for initrd.
2372. Specify what you need in a new initrd. Make sure to include any required libraries.237
238Note: It is important to include a full-featured version of busybox. This version
239must support the 'busybox --install -s' command to automatically install links
240to commands that can then be called from a bash shell.
241
242Copy the correct version of busybox into /usr/lib/initramfs-tools/bin:
243
244::
245
246 $ /bin/busybox
247 BusyBox v1.19.3 (Ubuntu 1:1.19.3-7ubuntu1.1) multi-call binary.
248 Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
249 and others. Licensed under GPLv2.
250 See source distribution for full notice.
251
252 Usage: busybox [function] [arguments]...
253 or: busybox --list[-full]
254 or: function [arguments]...
255
256 BusyBox is a multi-call binary that combines many common Unix
257 utilities into a single executable. Most people will create a
258 link to busybox for each function they wish to use and BusyBox
259 will act like whatever it was invoked as.
260
261 Currently defined functions:
262 [, [[, adjtimex, ar, arp, arping, ash, awk, basename, blockdev, brctl, bunzip2, bzcat, bzip2, cal, cat, chgrp, chmod, chown,
263 chroot, chvt, clear, cmp, cp, cpio, crond, crontab, cttyhack, cut, date, dc, dd, deallocvt, depmod, df, diff, dirname, dmesg,
264 dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, echo, ed, egrep, env, expand, expr, false, fdisk, fgrep, find,
265 fold, free, freeramdisk, ftpget, ftpput, getopt, getty, grep, groups, gunzip, gzip, halt, head, hexdump, hostid, hostname, httpd,
266 hwclock, id, ifconfig, ifdown, ifup, init, insmod, ionice, ip, ipcalc, kill, killall, klogd, last, less, ln, loadfont, loadkmap,
267 logger, login, logname, logread, losetup, ls, lsmod, lzcat, lzma, md5sum, mdev, microcom, mkdir, mkfifo, mknod, mkswap, mktemp,
268 modinfo, modprobe, more, mount, mt, mv, nameif, nc, netstat, nslookup, od, openvt, passwd, patch, pidof, ping, ping6, pivot_root,
269 poweroff, printf, ps, pwd, rdate, readlink, realpath, reboot, renice, reset, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio,
270 run-parts, sed, seq, setkeycodes, setsid, sh, sha1sum, sha256sum, sha512sum, sleep, sort, start-stop-daemon, stat, static-sh,
271 strings, stty, su, sulogin, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tee, telnet, telnetd,
272 test, tftp, time, timeout, top, touch, tr, traceroute, traceroute6, true, tty, tunctl, udhcpc, udhcpd, umount, uname, uncompress,
273 unexpand, uniq, unix2dos, unlzma, unxz, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, watch, watchdog, wc, wget, which,
274 who, whoami, xargs, xz, xzcat, yes, zcat
275
276
2773. Specify additional binaries and libraries that you need in a new initrd.
238278
239Note: The busybox command implements many commands by default, but it is best to279Note: The busybox command implements many commands by default, but it is best to
240include the actual binaries for each command since the busybox versions280include the actual binaries for each command since the busybox versions
@@ -252,25 +292,40 @@
252Note: It is good to include many common commands since the master initrd may be292Note: It is good to include many common commands since the master initrd may be
253used for debugging issues.293used for debugging issues.
254294
295
255*/usr/share/initramfs-tools/hooks/master-extras (sample)*296*/usr/share/initramfs-tools/hooks/master-extras (sample)*
256297
257::298::
258299
259 . /usr/share/initramfs-tools/hook-functions300 . /usr/share/initramfs-tools/hook-functions
260301
302 copy_exec /bin/tar
303 copy_exec /bin/bzip2
304 copy_exec /bin/gzip
305 copy_exec /bin/ping
306 copy_exec /usr/bin/wget
307 copy_exec /sbin/ifconfig
308 copy_exec /sbin/parted
309 copy_exec /sbin/resize2fs
310 copy_exec /usr/bin/mkimage
261 copy_exec /sbin/mkfs311 copy_exec /sbin/mkfs
262 copy_exec /sbin/mkfs.ext2312 copy_exec /sbin/mkfs.ext2
263 copy_exec /sbin/mkfs.ext3313 copy_exec /sbin/mkfs.ext3
264 copy_exec /sbin/mkfs.ext4314 copy_exec /sbin/mkfs.ext4
265 copy_exec /sbin/mkfs.vfat315 copy_exec /sbin/mkfs.vfat
266 copy_exec /sbin/ifconfig316 copy_exec /bin/nc
267 copy_exec `which tar`317 copy_exec /sbin/dhclient
268 copy_exec `which bunzip2`318 copy_exec /sbin/fdisk
269 copy_exec `which dhclient`319
270 copy_exec `which fdisk`320 # support dhclient
271 copy_exec `which parted`321 copy_exec /sbin/dhclient
272 copy_exec /bin/ping322 copy_exec /sbin/dhclient-script
273 copy_exec /usr/bin/wget323 copy_exec /sbin/ip
324 copy_exec /bin/hostname
325 copy_exec /bin/rm
326 copy_exec /bin/mv
327 copy_exec /etc/fstab
328
274 copy_exec /lib/arm-linux-gnueabihf/libnss_compat-2.15.so329 copy_exec /lib/arm-linux-gnueabihf/libnss_compat-2.15.so
275 copy_exec /lib/arm-linux-gnueabihf/libnss_compat.so.2330 copy_exec /lib/arm-linux-gnueabihf/libnss_compat.so.2
276 copy_exec /lib/arm-linux-gnueabihf/libnss_dns-2.15.so331 copy_exec /lib/arm-linux-gnueabihf/libnss_dns-2.15.so
@@ -283,7 +338,7 @@
283 copy_exec /lib/arm-linux-gnueabihf/libnss_nisplus-2.15.so338 copy_exec /lib/arm-linux-gnueabihf/libnss_nisplus-2.15.so
284 copy_exec /lib/arm-linux-gnueabihf/libnss_nisplus.so.2339 copy_exec /lib/arm-linux-gnueabihf/libnss_nisplus.so.2
285 copy_exec /lib/arm-linux-gnueabihf/libnss_nis.so.2340 copy_exec /lib/arm-linux-gnueabihf/libnss_nis.so.2
286341
287 # Add bash342 # Add bash
288 copy_exec /bin/bash343 copy_exec /bin/bash
289 copy_exec /lib/arm-linux-gnueabihf/libtinfo.so.5344 copy_exec /lib/arm-linux-gnueabihf/libtinfo.so.5
@@ -291,7 +346,7 @@
291 copy_exec /lib/arm-linux-gnueabihf/libgcc_s.so.1346 copy_exec /lib/arm-linux-gnueabihf/libgcc_s.so.1
292 copy_exec /lib/arm-linux-gnueabihf/libc.so.6347 copy_exec /lib/arm-linux-gnueabihf/libc.so.6
293 copy_exec /lib/ld-linux-armhf.so.3348 copy_exec /lib/ld-linux-armhf.so.3
294349
295 # Create version info for this image350 # Create version info for this image
296 echo '#!/bin/sh' > /tmp/lava-master-image-info351 echo '#!/bin/sh' > /tmp/lava-master-image-info
297 echo "echo $(date +%Y.%m.%d-%H.%M.%S)" > /tmp/lava-master-image-info352 echo "echo $(date +%Y.%m.%d-%H.%M.%S)" > /tmp/lava-master-image-info
@@ -299,7 +354,7 @@
299 copy_exec /tmp/lava-master-image-info /sbin354 copy_exec /tmp/lava-master-image-info /sbin
300355
301356
3023. Run update-initramfs, which will produce a new initrd image.3574. Run update-initramfs, which will produce a new initrd image.
303358
304::359::
305360
@@ -312,7 +367,7 @@
312 /boot/initrd.img-3.5.0-23-highbank367 /boot/initrd.img-3.5.0-23-highbank
313368
314369
3154. Copy initrd and vmlinuz to the tftp server3705. Copy initrd and vmlinuz to the tftp server
316371
317372
318Debugging with initrd373Debugging with initrd

Subscribers

People subscribed via source and target branches