Warren Togami
f2287b3626
Write MAC address to a file at successful netroot mount, NetworkManager wants this.
2009-06-10 11:12:14 -04:00
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.
2009-06-10 10:21:11 -04:00
Warren Togami
1311803770
Write DHCP lease file, dcbw wants it for NetworkManager to take over management of the lease post-netboot.
2009-06-08 17:18:01 -04:00
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.
2009-06-08 16:51:13 -04:00
Harald Hoyer
169363e827
add ipv6 rpc.idmapd and various conf files for NFS
...
rpcbind on Fedora does not seem work for NFS4 without IPv6
2009-06-08 14:50:22 +02:00
Harald Hoyer
6b28bb54b6
add more tools to the debug module
2009-06-08 14:49:23 +02:00
Harald Hoyer
44ec5f7229
specify dhcpd.conf path for test server
2009-06-08 14:49:00 +02:00
Harald Hoyer
b2c5f5dc72
s/NFS/NBD
2009-06-08 14:48:39 +02:00
Harald Hoyer
d5e1e577ee
specify dhcpd.conf path for test server
2009-06-08 10:34:50 +02:00
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.
2009-06-08 00:28:52 -04:00
David Dillow
61752d529a
NBD: fix parsing of Debian-style nbdroot config
2009-06-08 00:25:20 -04:00
David Dillow
bed87ed998
NFS test: add test for nfs[4]:srv:/path syntax
2009-06-08 00:03:10 -04:00
David Dillow
9fe7bc1bba
dracut init: add rdnetdebug to exclude list
2009-06-07 18:17:03 -04:00
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.
2009-06-07 17:17:48 -04:00
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.
2009-06-07 15:48:07 -04:00
David Dillow
0000e1816c
NFS test: add test cases for DHCP/nfsroot=[IP:]/path[,options]
2009-06-07 15:01:31 -04:00
David Dillow
4107be9f9f
NFS root: add missing DHCP root-path/nfsroot=[IP:]/path[,options] format
...
Reported-by: Seewer Philippe <philippe.seewer@bfh.ch>
2009-06-07 14:59:38 -04:00
David Dillow
da2643fafb
NFS test: renumber MAC addresses to ease adding new test cases
2009-06-06 23:08:12 -04:00
David Dillow
9f25b834b9
NFS test: add support for checking mount options used
2009-06-06 22:59:42 -04:00
David Dillow
574f2965e4
NFS test: verify that we used the right IP to get to the server
2009-06-06 21:55:53 -04:00
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.
2009-06-06 05:10:33 -04:00
David Dillow
08fb7d892c
NFS test: allow emergency shell while debugging
2009-06-06 05:09:13 -04:00
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.
2009-06-06 02:31:45 -04:00
David Dillow
35b709957f
NFS test: rearrange the server tree so we can differentiate NFSv3 vs NFSv4
2009-06-06 01:22:54 -04:00
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.
2009-06-06 01:13:47 -04:00
David Dillow
ba64a17ffd
NFS test: switch the ISC dhcpd server
...
This will let us expand the number of client configs we can test
2009-06-06 01:13:16 -04:00
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.
2009-06-06 00:25:07 -04:00
David Dillow
a0e0d37270
NFS testing: add forgotten hard-off hook
2009-06-06 00:06:04 -04:00
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.
2009-06-06 00:05:33 -04:00
Peter Jones
3871f8f53b
Don't use backticks, use $()
...
This is a minor style fix.
2009-06-05 10:20:13 -04:00
Seewer Philippe
07b2fbb183
Get rid of cat and grep
2009-06-05 16:10:52 +02:00
Harald Hoyer
3273c0a536
make test output more readable, log errors to test.log
2009-06-05 16:08:30 +02:00
Harald Hoyer
5fd2decfec
Merge branch 'master' of ssh://dracut.git.sourceforge.net/gitroot/dracut
2009-06-05 08:51:31 +02:00
Harald Hoyer
7e05060f77
Merge commit 'dillow/master'
...
Conflicts:
test/TEST-20-NFS/make-client-root
2009-06-05 08:47:51 +02:00
David Dillow
2129ffe93e
nfs: cleanup currently needs grep
2009-06-05 00:26:10 -04:00
David Dillow
528277f32c
test suite: automate NFS testing
...
First cut at automating the NFS test suite.
2009-06-05 00:25:17 -04:00
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.
2009-06-05 00:18:29 -04:00
Victor Lowther
fa0f73f438
Ugh, using backticks instead of $()
...
Get that evilness out of dracut, please.
2009-06-04 22:02:37 -05:00
Victor Lowther
8158ad29ec
make udevtriggeropts just use an environment variable
...
No point in making a file and then reading from it when hooks are sourced.
2009-06-04 22:02:37 -05:00
Victor Lowther
c36ce33479
Make debugging much more useful.
...
Since we are explicitly using bash, we can have nice, useful value for PS4
2009-06-04 22:01:34 -05:00
Harald Hoyer
68ea18cfa1
specfile update
2009-06-04 17:49:28 +02:00
Harald Hoyer
56d8568c96
add dracutbasedir as configurable variable in dracut.conf
2009-06-04 17:44:26 +02:00
Harald Hoyer
2e7f65d96e
try to install switch_root from system
2009-06-04 17:44:26 +02:00
Harald Hoyer
59615e06a4
make paths configurable
2009-06-04 17:44:26 +02:00
Harald Hoyer
53759538cb
fix udevtriggeropts
2009-06-04 17:44:21 +02:00
Harald Hoyer
c1d71b7ea3
fix dracut logging
2009-06-04 13:17:57 +02:00
Harald Hoyer
c4d25b18f5
prepare for release
2009-06-04 13:08:39 +02:00
Harald Hoyer
11cbb35847
add sample dracut.conf file
2009-06-04 13:07:59 +02:00
Harald Hoyer
91b1157500
add support to specify additional udev trigger options
2009-06-04 13:07:01 +02:00
Warren Togami
2c02c8318c
Ensure KMS drivers are loaded before plymouth.
2009-06-03 14:25:50 -04:00