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
1=== modified file 'doc/ipmi-pxe-deploy.rst'
2--- doc/ipmi-pxe-deploy.rst 2013-04-17 15:19:32 +0000
3+++ doc/ipmi-pxe-deploy.rst 2013-04-22 13:53:29 +0000
4@@ -229,12 +229,52 @@
5 Creating the kernel and initrd for pxe booting
6 ..............................................
7
8-An initrd can be created from a running ubuntu system/
9+An initrd can be created from a running ubuntu system
10
11 1. Install ubuntu on a target server.
12
13-
14-2. Specify what you need in a new initrd. Make sure to include any required libraries.
15+2. Set up busybox for initrd.
16+
17+Note: It is important to include a full-featured version of busybox. This version
18+must support the 'busybox --install -s' command to automatically install links
19+to commands that can then be called from a bash shell.
20+
21+Copy the correct version of busybox into /usr/lib/initramfs-tools/bin:
22+
23+::
24+
25+ $ /bin/busybox
26+ BusyBox v1.19.3 (Ubuntu 1:1.19.3-7ubuntu1.1) multi-call binary.
27+ Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
28+ and others. Licensed under GPLv2.
29+ See source distribution for full notice.
30+
31+ Usage: busybox [function] [arguments]...
32+ or: busybox --list[-full]
33+ or: function [arguments]...
34+
35+ BusyBox is a multi-call binary that combines many common Unix
36+ utilities into a single executable. Most people will create a
37+ link to busybox for each function they wish to use and BusyBox
38+ will act like whatever it was invoked as.
39+
40+ Currently defined functions:
41+ [, [[, adjtimex, ar, arp, arping, ash, awk, basename, blockdev, brctl, bunzip2, bzcat, bzip2, cal, cat, chgrp, chmod, chown,
42+ chroot, chvt, clear, cmp, cp, cpio, crond, crontab, cttyhack, cut, date, dc, dd, deallocvt, depmod, df, diff, dirname, dmesg,
43+ dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, echo, ed, egrep, env, expand, expr, false, fdisk, fgrep, find,
44+ fold, free, freeramdisk, ftpget, ftpput, getopt, getty, grep, groups, gunzip, gzip, halt, head, hexdump, hostid, hostname, httpd,
45+ hwclock, id, ifconfig, ifdown, ifup, init, insmod, ionice, ip, ipcalc, kill, killall, klogd, last, less, ln, loadfont, loadkmap,
46+ logger, login, logname, logread, losetup, ls, lsmod, lzcat, lzma, md5sum, mdev, microcom, mkdir, mkfifo, mknod, mkswap, mktemp,
47+ modinfo, modprobe, more, mount, mt, mv, nameif, nc, netstat, nslookup, od, openvt, passwd, patch, pidof, ping, ping6, pivot_root,
48+ poweroff, printf, ps, pwd, rdate, readlink, realpath, reboot, renice, reset, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio,
49+ run-parts, sed, seq, setkeycodes, setsid, sh, sha1sum, sha256sum, sha512sum, sleep, sort, start-stop-daemon, stat, static-sh,
50+ strings, stty, su, sulogin, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tee, telnet, telnetd,
51+ test, tftp, time, timeout, top, touch, tr, traceroute, traceroute6, true, tty, tunctl, udhcpc, udhcpd, umount, uname, uncompress,
52+ unexpand, uniq, unix2dos, unlzma, unxz, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, watch, watchdog, wc, wget, which,
53+ who, whoami, xargs, xz, xzcat, yes, zcat
54+
55+
56+3. Specify additional binaries and libraries that you need in a new initrd.
57
58 Note: The busybox command implements many commands by default, but it is best to
59 include the actual binaries for each command since the busybox versions
60@@ -252,25 +292,40 @@
61 Note: It is good to include many common commands since the master initrd may be
62 used for debugging issues.
63
64+
65 */usr/share/initramfs-tools/hooks/master-extras (sample)*
66
67 ::
68
69 . /usr/share/initramfs-tools/hook-functions
70
71+ copy_exec /bin/tar
72+ copy_exec /bin/bzip2
73+ copy_exec /bin/gzip
74+ copy_exec /bin/ping
75+ copy_exec /usr/bin/wget
76+ copy_exec /sbin/ifconfig
77+ copy_exec /sbin/parted
78+ copy_exec /sbin/resize2fs
79+ copy_exec /usr/bin/mkimage
80 copy_exec /sbin/mkfs
81 copy_exec /sbin/mkfs.ext2
82 copy_exec /sbin/mkfs.ext3
83 copy_exec /sbin/mkfs.ext4
84 copy_exec /sbin/mkfs.vfat
85- copy_exec /sbin/ifconfig
86- copy_exec `which tar`
87- copy_exec `which bunzip2`
88- copy_exec `which dhclient`
89- copy_exec `which fdisk`
90- copy_exec `which parted`
91- copy_exec /bin/ping
92- copy_exec /usr/bin/wget
93+ copy_exec /bin/nc
94+ copy_exec /sbin/dhclient
95+ copy_exec /sbin/fdisk
96+
97+ # support dhclient
98+ copy_exec /sbin/dhclient
99+ copy_exec /sbin/dhclient-script
100+ copy_exec /sbin/ip
101+ copy_exec /bin/hostname
102+ copy_exec /bin/rm
103+ copy_exec /bin/mv
104+ copy_exec /etc/fstab
105+
106 copy_exec /lib/arm-linux-gnueabihf/libnss_compat-2.15.so
107 copy_exec /lib/arm-linux-gnueabihf/libnss_compat.so.2
108 copy_exec /lib/arm-linux-gnueabihf/libnss_dns-2.15.so
109@@ -283,7 +338,7 @@
110 copy_exec /lib/arm-linux-gnueabihf/libnss_nisplus-2.15.so
111 copy_exec /lib/arm-linux-gnueabihf/libnss_nisplus.so.2
112 copy_exec /lib/arm-linux-gnueabihf/libnss_nis.so.2
113-
114+
115 # Add bash
116 copy_exec /bin/bash
117 copy_exec /lib/arm-linux-gnueabihf/libtinfo.so.5
118@@ -291,7 +346,7 @@
119 copy_exec /lib/arm-linux-gnueabihf/libgcc_s.so.1
120 copy_exec /lib/arm-linux-gnueabihf/libc.so.6
121 copy_exec /lib/ld-linux-armhf.so.3
122-
123+
124 # Create version info for this image
125 echo '#!/bin/sh' > /tmp/lava-master-image-info
126 echo "echo $(date +%Y.%m.%d-%H.%M.%S)" > /tmp/lava-master-image-info
127@@ -299,7 +354,7 @@
128 copy_exec /tmp/lava-master-image-info /sbin
129
130
131-3. Run update-initramfs, which will produce a new initrd image.
132+4. Run update-initramfs, which will produce a new initrd image.
133
134 ::
135
136@@ -312,7 +367,7 @@
137 /boot/initrd.img-3.5.0-23-highbank
138
139
140-4. Copy initrd and vmlinuz to the tftp server
141+5. Copy initrd and vmlinuz to the tftp server
142
143
144 Debugging with initrd

Subscribers

People subscribed via source and target branches