Philippe Seewer
11f90138cd
NBD Test: Don't start a shell inside the server
16 years ago
Warren Togami
1a945a576c
move dhclient.conf to /etc
16 years ago
Seewer Philippe
1df0c915c6
Fix case where mdmon isn't available.
16 years ago
Seewer Philippe
d3b0f96893
Use relative path for ip command.
16 years ago
Seewer Philippe
12375368b9
Allow dhcp to work with dhcpv3 where the -R option did not exist. Use dhclient.conf instead.
16 years ago
Warren Togami
9f786a9d8f
Simple changes to allow test suite to work with dash.
16 years ago
Warren Togami
21df4aa429
grep is installed by 95debug for the moment, remove this to simplify.
16 years ago
Warren Togami
71afe645d7
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.
16 years ago
David Dillow
8bd5873ffc
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.
16 years ago
David Dillow
aec48753c2
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.
16 years ago
David Dillow
a29f15a5b6
NBD test: add more option parsing tests
16 years ago
Warren Togami
f3d9b04d1a
.override also becomes net.* file only after successful rootfs mount.
16 years ago
Warren Togami
9a9777a19c
Write ifcfg style file upon successful netboot.
...
TODO: static must be implemented, example in comments.
16 years ago
Warren Togami
f2287b3626
Write MAC address to a file at successful netroot mount, NetworkManager wants this.
16 years ago
Warren Togami
bf4626d933
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.
16 years ago
Warren Togami
1311803770
Write DHCP lease file, dcbw wants it for NetworkManager to take over management of the lease post-netboot.
16 years ago
Warren Togami
e1ee93539f
Copy netboot state into /dev/.initramfs/ before switch_root
...
If cmdline "rdcopystate", then copy all of /tmp/* into /dev/.initramfs/ for later debugging examination.
16 years ago
Harald Hoyer
169363e827
add ipv6 rpc.idmapd and various conf files for NFS
...
rpcbind on Fedora does not seem work for NFS4 without IPv6
16 years ago
Harald Hoyer
6b28bb54b6
add more tools to the debug module
16 years ago
Harald Hoyer
44ec5f7229
specify dhcpd.conf path for test server
16 years ago
Harald Hoyer
b2c5f5dc72
s/NFS/NBD
16 years ago
Harald Hoyer
d5e1e577ee
specify dhcpd.conf path for test server
16 years ago
David Dillow
9ecbe2e4d4
NBD: add test suite
...
This is an initial test suite for the NBD root. It does the basics, and
needs to be extended to check more parts of the configuration.
16 years ago
David Dillow
61752d529a
NBD: fix parsing of Debian-style nbdroot config
16 years ago
David Dillow
bed87ed998
NFS test: add test for nfs[4]:srv:/path syntax
16 years ago
David Dillow
9fe7bc1bba
dracut init: add rdnetdebug to exclude list
16 years ago
David Dillow
abe9ccc89a
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.
16 years ago
David Dillow
6b6805b8af
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.
16 years ago
David Dillow
0000e1816c
NFS test: add test cases for DHCP/nfsroot=[IP:]/path[,options]
16 years ago
David Dillow
4107be9f9f
NFS root: add missing DHCP root-path/nfsroot=[IP:]/path[,options] format
...
Reported-by: Seewer Philippe <philippe.seewer@bfh.ch>
16 years ago
David Dillow
da2643fafb
NFS test: renumber MAC addresses to ease adding new test cases
16 years ago
David Dillow
9f25b834b9
NFS test: add support for checking mount options used
16 years ago
David Dillow
574f2965e4
NFS test: verify that we used the right IP to get to the server
16 years ago
David Dillow
ae227ca836
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.
16 years ago
David Dillow
08fb7d892c
NFS test: allow emergency shell while debugging
16 years ago
David Dillow
a2810bf24a
root option parsing belongs in 99base now
...
We use this for NFS root as well, and NFSv4 was getting broken when
it wasn't present.
16 years ago
David Dillow
35b709957f
NFS test: rearrange the server tree so we can differentiate NFSv3 vs NFSv4
16 years ago
David Dillow
d462f6dc65
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.
16 years ago
David Dillow
ba64a17ffd
NFS test: switch the ISC dhcpd server
...
This will let us expand the number of client configs we can test
16 years ago
David Dillow
cc75acdcab
NFS test: rearrange code to test multiple client configurations
...
This also gets rid of BASENET, which was an unneeded idea in hindsight.
16 years ago
David Dillow
a0e0d37270
NFS testing: add forgotten hard-off hook
16 years ago
David Dillow
261d029659
Have the test framework always run the cleanup script
...
Also remove some extra semicolons, and put the pointer to the test log
on its own line.
16 years ago
Peter Jones
3871f8f53b
Don't use backticks, use $()
...
This is a minor style fix.
16 years ago
Seewer Philippe
07b2fbb183
Get rid of cat and grep
16 years ago
Harald Hoyer
3273c0a536
make test output more readable, log errors to test.log
16 years ago
Harald Hoyer
5fd2decfec
Merge branch 'master' of ssh://dracut.git.sourceforge.net/gitroot/dracut
16 years ago
Harald Hoyer
7e05060f77
Merge commit 'dillow/master'
...
Conflicts:
test/TEST-20-NFS/make-client-root
16 years ago
David Dillow
2129ffe93e
nfs: cleanup currently needs grep
16 years ago
David Dillow
528277f32c
test suite: automate NFS testing
...
First cut at automating the NFS test suite.
16 years ago
David Dillow
58c13eeb4c
test suite: allow a user-selected kernel
...
Sometimes it is desirable to allow the user to test with a different
kernel than the one they are currenting running.
16 years ago