Philippe Seewer [Tue, 16 Jun 2009 09:35:49 +0000 (11:35 +0200)]
netroot: Use same method to check for already mounted root as init
base/init uses [ -d "$NEWROOT/proc" ] to check if root is mounted
or not. Netroot should do the same. In addition this gets rid of
another file in /tmp, since /tmp/netroot.done isn't needed anymore.
Philippe Seewer [Tue, 16 Jun 2009 09:26:29 +0000 (11:26 +0200)]
netroot: Use root.info instead of netroot.info
Having two files which are used more or less at the same time isn't
that easy to handle and read. Instead, move the contents of netroot.info
to root.info and only use root.info. This is cleaner and makes debugging
easier.
Philippe Seewer [Tue, 16 Jun 2009 08:52:21 +0000 (10:52 +0200)]
netroot handlers: Add argument checking
This is probably not necessary, but paranoia dictates that the actual
netroot handlers should check if all three required arguments (netif,
root, NEWROOT) are there and useable.
Philippe Seewer [Tue, 16 Jun 2009 08:31:29 +0000 (10:31 +0200)]
nfsroot: statd is only needed for nfs4
rpc.statd is only needed for NFSv4, because it's required for
locking. We don't support locking for NFSv2/3, so start it only
if we are mount from NFSv4.
Philippe Seewer [Tue, 16 Jun 2009 08:06:21 +0000 (10:06 +0200)]
TEST: Add dhcpd support for debian based distros
Debian based distros use dhcpd3 instead of just dhcpd. Accordingly
paths to lease files etc are different as well. This patch ensures
that the test-suite can run with either dhcpd or dhcpd3.
Philippe Seewer [Tue, 16 Jun 2009 07:56:31 +0000 (09:56 +0200)]
NFS: Add support for debian based distros
This patch enhances nfsroot and the nfs test-suite with compatibility
for debian based distros. This is mainly the difference of using
portmap instead of rpcbind and the missing file /etc/netconfig
Warren Togami [Thu, 11 Jun 2009 23:28:02 +0000 (19:28 -0400)]
Exclude i2o_scsi driver.
This kernel module is dangerous to load here. It is meant only to allow direct
access to SCSI disks, which can destroy data. The i2o_block driver gives you
access to the defined hardware RAID arrays.
David Dillow [Thu, 11 Jun 2009 05:36:10 +0000 (01:36 -0400)]
NBD root: add support for LVM/LUKS
With this change, we can now use LUKS and LVM over NBD. There are
some decisions to be made regarding where we should get the fstype
and fsoptions from (DHCP root vs rootfstype= etc), but the basic
functionality is there.
David Dillow [Tue, 9 Jun 2009 05:14:35 +0000 (01:14 -0400)]
network: add support for netroot=...
This adds support for a command line option netroot=, which is currently
equivalent to root=. This will allow us to break out handling in NBD and
iSCSI to support constructs such as "root=LABEL=/ netroot=dhcp" to make
use of our block device handling with network attached devices.
iSCSI has not been changed in this patch as I don't currently have a way
to test it.
Warren Togami [Wed, 10 Jun 2009 14:21:11 +0000 (10:21 -0400)]
dhclient.* files become net.* only after successful netboot.
This is an attempt to avoid confusing post-boot scripts by having them
consider only net.* files.
Warren Togami [Mon, 8 Jun 2009 20:51:13 +0000 (16:51 -0400)]
Copy netboot state into /dev/.initramfs/ before switch_root
If cmdline "rdcopystate", then copy all of /tmp/* into /dev/.initramfs/ for later debugging examination.
David Dillow [Sun, 7 Jun 2009 21:17:48 +0000 (17:17 -0400)]
NFS root: add support for default root path and %s substitution
This implements a default path of /tftpboot/%s if no path is provided,
and adds host name substitution for %s, with a fall back to the IP address,
as provided by the kernel's nfsroot handling.
The test suite is updated to test this functionality.
David Dillow [Sun, 7 Jun 2009 19:48:07 +0000 (15:48 -0400)]
NFS test: separate NFSv3 and NFSv4 tests into their own functions
The full tests take over 6 minutes to run, and commenting out unneeded
ones is time consuming -- this change lets me comment out one line to
temporarily avoid an entire class of tests.
David Dillow [Sat, 6 Jun 2009 09:09:43 +0000 (05:09 -0400)]
NFS test: additional option tests
Test additional combinations of command line and DHCP option formats. This
is by no means the complete list, but gets us started with some common ones.
David Dillow [Sat, 6 Jun 2009 05:13:47 +0000 (01:13 -0400)]
NFS test: re-add the fix for the terminal
When debugging, this is still needed as we won't be redirecting out
output to /dev/null or a file. However, we need to guard against not
having a terminal.
David Dillow [Mon, 1 Jun 2009 23:59:22 +0000 (19:59 -0400)]
Allow NFS and NBD to be built into the kernel
Probe for NFS and NBD capability before trying to load their modules
in case they are built into the kernel. Ugly use of flag files, but
avoids the need for grep to be on the image.
Warren Togami [Mon, 1 Jun 2009 22:21:40 +0000 (18:21 -0400)]
Include only wired ethernet drivers, explicitly exclude wireless.
(If you REALLY want wireless boot, you need to write your own module to configure it properly.)