Harald Hoyer
70c6b773ca
dracut.sh, dracut-functions.sh: add dracut_kernel_post()
...
dracut_kernel_post() does lazy kernel module dependency installation,
depmod and cleans up temporary files
2012-06-29 12:41:28 +02:00
Harald Hoyer
f0558da598
test/*/test.sh: correct ifup and dhclient paths
2012-06-29 12:41:27 +02:00
Harald Hoyer
f48f9341a5
disable TEST-16-DMSQUASH for now
2012-06-18 20:05:25 +02:00
Harald Hoyer
d686298315
TEST-50-MULTINIC: libnss cleanup
2012-06-18 20:05:25 +02:00
Harald Hoyer
9f88b0370d
TEST-20-NFS: libnss cleanup
2012-06-18 20:05:25 +02:00
Harald Hoyer
2dbd71b77a
TEST-50-MULTINIC: add watchdog
2012-06-18 20:05:25 +02:00
Harald Hoyer
483b1e3aa8
TEST-20-NFS: add watchdog
2012-06-18 20:05:25 +02:00
Harald Hoyer
c8f3a1c057
TEST-01-BASIC: add watchdog
2012-06-18 20:05:25 +02:00
Harald Hoyer
3eca0cc846
TEST-50-MULTINIC: install correct nss libs
2012-06-15 11:12:46 +02:00
Harald Hoyer
c79f3883cd
test/TEST-16-DMSQUASH: add check for python-imgcreate
2012-06-04 11:35:31 +02:00
Harald Hoyer
df42cd3dbd
test/test-functions: check with test_check() if test is suitable
2012-06-04 11:35:02 +02:00
Harald Hoyer
cfe32ef5ba
TEST-01-BASIC: sync after creating the root disk
2012-05-16 11:51:26 +02:00
Harald Hoyer
f72318243c
systemd: adapt to new switch-root mechanism
2012-05-15 18:57:29 +02:00
Harald Hoyer
2c431e8ec4
add systemd module
2012-05-09 13:36:07 +02:00
Harald Hoyer
4b13b2e2bf
test/TEST-01-BASIC/test.sh: fix cleanup of overlay dir
2012-05-07 16:32:28 +02:00
Harald Hoyer
5a81678219
TEST-15-BTRFSRAID: add one more partition to the btrfs raid10
2012-04-25 15:58:40 +02:00
Harald Hoyer
fc87119069
TEST-20-NFS: get shell in test root for rd.shell
2012-04-02 09:03:25 +02:00
Harald Hoyer
513d26f7b7
TEST-12-RAID-DEG/create-root.sh: settle after deconstruct
2012-03-29 14:36:20 +02:00
Harald Hoyer
d8eb522e80
TEST-01-BASIC: add setsid
2012-03-14 16:32:19 +01:00
Harald Hoyer
f94ceb13b8
TEST-10-RAID: wait for udev settle before deconstructing
2012-03-14 15:52:35 +01:00
Harald Hoyer
0635530dda
TEST-20-NFS/test.sh: fsck with "-a"
2012-03-08 12:25:30 +01:00
Harald Hoyer
b8a9dc2d3f
TEST-20-NFS: use ext3 on server and fsck after kill
2012-03-08 11:00:29 +01:00
Harald Hoyer
8b6e099892
90kernel-modules/module-setup.sh: exclude nfs* lockd from standard
...
do not install nfs* lockd filesystems for the standard kernel modules
2012-02-22 16:14:38 +01:00
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
2012-02-22 15:15:21 +01:00
Harald Hoyer
9373aec650
TEST-30-ISCSI/test.sh: factor out client runs
2012-02-22 11:32:59 +01:00
Harald Hoyer
3905f6695e
TEST-30-ISCSI: add test case for "root=iscsi:...." and untabify
2012-02-16 11:37:21 +01:00
Harald Hoyer
28f0b27fb9
TEST-40-NBD: correct symlinks by rerunning ldconfig
2012-02-15 15:08:34 +01:00
Harald Hoyer
0ddc098eb0
TEST-12-RAID-DEG: improve test case
2012-02-15 15:08:29 +01:00
Harald Hoyer
96d22bd7d6
test: fixed terminfo location
2012-02-13 21:15:22 +01:00
Harald Hoyer
12018c91ea
TEST-15-BTRFSRAID: write diskimage to tmp dir
2012-02-08 17:02:57 +01:00
Harald Hoyer
cf5229190d
TEST-10-RAID: fixed TESTDIR handling
2012-01-13 11:33:22 +01:00
Harald Hoyer
5112bfc8cc
TEST-12-RAID-DEG: mkdir /run
2011-12-15 14:49:05 +01:00
Harald Hoyer
191f6945ac
test: moved TEST-14-IMSM to old.TEST-14-IMSM
...
TEST-14-IMSM does not work anymore in qemu instances
2011-11-16 14:05:57 +01:00
Harald Hoyer
0be1785aea
test: introduce $TESTDIR tmpdir
...
to keep the git source tree clean, test files are now created in a
$TESTDIR created with mktemp.
2011-11-16 14:04:27 +01:00
Harald Hoyer
75e8f476e7
TEST-40-NBD: relaxed check on ext3 filesystem options
...
onerror=continue does not seem to be displayed for new kernels
2011-09-22 15:37:27 +02:00
Harald Hoyer
ea8e543bb8
add TEST-16-DMSQUASH
...
This is a test for Fedora LiveCDs created via livecd-tools
2011-08-17 13:42:16 +02:00
Harald Hoyer
d6770cf001
TEST-11-LVM/create-root.sh: sleep before disassembling device
2011-08-11 17:52:39 +02:00
Harald Hoyer
bcf94bba99
TEST-40-NBD/test.sh: source reformat
2011-08-11 15:36:29 +02:00
Harald Hoyer
de0b239907
TEST-40-NBD/create-root.sh: sleep before disassembling root device
2011-08-11 15:36:29 +02:00
Harald Hoyer
bdf96a5d25
TEST-12-RAID-DEG/test.sh: uncomment rd.shell
2011-08-11 14:27:26 +02:00
Harald Hoyer
1eb8e9217f
test/TEST-13-ENC-RAID-LVM/create-root.sh: wait before disassembling lvm
2011-08-11 10:49:10 +02:00
Harald Hoyer
8570b544e9
TEST-10-RAID/test-init: add comment for rd.break=shutdown
2011-07-20 21:40:50 +02:00
Harald Hoyer
00d89f5170
TEST-10-RAID/test-init: turn off debug for shutdown
2011-07-20 21:10:58 +02:00
Harald Hoyer
ceaf49d735
TEST-10-RAID: extend test case to shutdown
2011-07-20 19:08:25 +02:00
Harald Hoyer
54703a719f
add TEST-15-BTRFSRAID
2011-07-20 14:10:30 +02:00
Harald Hoyer
3b403b32fc
removed trailing whitespaces
2011-05-10 11:56:09 +02:00
Harald Hoyer
a7ee1cd7f6
test/TEST-13-ENC-RAID-LVM: double test root disk space
2011-05-03 09:59:14 +02:00
Harald Hoyer
0743486127
test/TEST-11-LVM, test/TEST-14-IMSM: update test cases
...
- more diskspace
- add /run
- drop to shell in test-init
2011-04-14 15:24:50 +02:00
Harald Hoyer
06ae51be51
TEST-50-MULTINIC/client-init: drop to shell, if "rd.shell"
2011-04-11 19:24:59 +02:00
Harald Hoyer
8a6ecb19b9
TEST-50-MULTINIC/test.sh: add /run dir and "ls" to client image
2011-04-11 19:24:59 +02:00
Harald Hoyer
ef85627e93
test/TEST-01-BASIC/test.sh: uncomment debug options
2011-04-08 13:25:22 +02:00
Harald Hoyer
486ec65745
TEST-01-BASIC: softlink fstab to proc/mounts in test-init
2011-04-08 13:25:18 +02:00
Harald Hoyer
dd26a551c2
test/TEST-01-BASIC: add basic ext3 test
2011-04-08 11:17:31 +02:00
Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
2011-03-25 16:10:46 +01:00
Harald Hoyer
e43df9e342
base/init: fixed /dev/.initramfs creation, for no "/run"
2011-03-25 15:43:54 +01:00
Harald Hoyer
28eb2436c8
TEST-50-MULTINIC: change /dev/.initramfs to /dev/.run/initramfs
2011-03-10 19:49:08 +01:00
Harald Hoyer
fa79f00803
test/*/test.sh: mv 01hard-off.sh 000-hard-off.sh
...
otherwise "die" will let the kernel panic
2011-03-07 16:22:42 +01:00
Harald Hoyer
b2559a8895
TEST-50-MULTINIC/test.sh: only set hdc for no cdrom
2010-10-28 17:11:35 +02:00
Harald Hoyer
51b28ba9c4
test/TEST-*/test.sh: set -serial to null for servers
...
-serial udp might have stalled
2010-10-28 17:11:35 +02:00
Harald Hoyer
387bf82e30
test/*/*-init: set PATH
...
/sbin and /usr/sbin are no longer in $PATH
2010-10-28 17:11:34 +02:00
Harald Hoyer
fa7ada31d0
new parameter option names with "rd.*" namespace
...
Renamed Options
Here is a list of options, which were used in dracut prior to
version 008, and their new replacement.
rdbreak
rd.break
rd_CCW
rd.ccw
rdcopystate
rd.copystate
rd_DASD_MOD
rd.dasd_mod.dasd
rd_DASD
rd.dasd
rdinitdebug rdnetdebug
rd.debug
rd_NO_DM
rd.dm=0
rd_DM_UUID
rd.dm.uuid
rdblacklist
rd.driver.blacklist
rdinsmodpost
rd.driver.post
rdloaddriver
rd.driver.pre
rd_NO_FSTAB
rd.fstab=0
rdinfo
rd.info
check
rd.live.check
rdlivedebug
rd.live.debug
live_dir
rd.live.dir
liveimg
rd.live.image
overlay
rd.live.overlay
readonly_overlay
rd.live.overlay.readonly
reset_overlay
rd.live.overlay.reset
live_ram
rd.live.ram
rd_NO_CRYPTTAB
rd.luks.crypttab=0
rd_LUKS_KEYDEV_UUID
rd.luks.keydev.uuid
rd_LUKS_KEYPATH
rd.luks.keypath
rd_NO_LUKS
rd.luks=0
rd_LUKS_UUID
rd.luks.uuid
rd_LUKS_UUID
rd.luks.uuid
rd_NO_LVMCONF
rd.lvm.conf
rd_LVM_LV
rd.lvm.lv
rd_NO_LVM
rd.lvm=0
rd_LVM_SNAPSHOT
rd.lvm.snapshot
rd_LVM_SNAPSIZE
rd.lvm.snapsize
rd_LVM_VG
rd.lvm.vg
rd_NO_MDADMCONF
rd.md.conf=0
rd_NO_MDIMSM
rd.md.imsm=0
rd_NO_MD
rd.md=0
rd_MD_UUID
rd.md.uuid
rd_NFS_DOMAIN
rd.nfs.domain
rd_NO_PLYMOUTH
rd.plymouth=0
rd_retry
rd.retry
rdshell
rd.shell
rd_NO_SPLASH
rd.splash
rdudevdebug
rd.udev.debug
rdudevinfo
rd.udev.info
rd_NO_ZFCPCONF
rd.zfcp.conf=0
rd_ZFCP
rd.zfcp
2010-10-28 17:11:27 +02:00
Harald Hoyer
1b29b0f7cf
test: double disk space for root images
2010-09-23 16:10:00 +02:00
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
2010-08-23 11:54:09 +02:00
Harald Hoyer
4b0a61c586
TEST-12-RAID-DEG: do not execute rd_NO_MDADMCONF tests
2010-08-02 14:18:00 +02:00
Harald Hoyer
cc97412c32
TEST-14-IMSM: fixed test
2010-08-02 14:17:59 +02:00
Harald Hoyer
aceaf13b44
TEST-13-ENC-RAID-LVM: prepend "luks-" to rd_LUKS_UUID argument
2010-08-02 14:17:59 +02:00
Harald Hoyer
4c2d8f5816
TEST-12-RAID-DEG: double disk space
2010-08-02 14:17:58 +02:00
Harald Hoyer
9c111e59c9
TEST: omit network module for non-network tests
2010-08-02 10:35:31 +02:00
Harald Hoyer
b8a2f174d7
TEST-13-ENC-RAID: add check for rd_LUKS_UUID argument parsing
2010-07-12 16:16:57 +02:00
Harald Hoyer
169f167151
iscsi: add support for multiple netroot=iscsi:
...
The whole netdisk concept should be reviewed though!
2010-06-09 16:46:33 +02:00
Harald Hoyer
e02c2d5c43
TEST-50-MULTINIC: do not provide a cdrom in the testcase
2010-05-19 09:35:01 +02:00
Harald Hoyer
ebcfda6c61
test/NBD: check for nbd kernel module first
2010-04-16 17:59:51 +02:00
Harald Hoyer
8f4c066020
test/MULTINIC: kill server after passing all tests
2010-04-16 17:59:51 +02:00
Harald Hoyer
da4e644327
test/TEST-50-MULTINIC: install sd_mod and ata_piix kernel modules
2010-04-16 17:59:51 +02:00
Harald Hoyer
c5ef4b63a3
test/TEST-50-MULTINIC: install all nfsidmap libs for server
2010-04-16 17:59:50 +02:00
Harald Hoyer
6c980807d0
test/TEST-50-MULTINIC: kill server after failed test
2010-04-16 17:59:50 +02:00
Harald Hoyer
97add1b383
NBD: kill server after failed test
2010-04-16 17:59:50 +02:00
Harald Hoyer
3de984ba7f
test/nfs: correct return code and cleanup
2010-04-16 17:59:50 +02:00
Harald Hoyer
85fd75f91f
add rd_retry kernel command line parameter
...
rd_retry=<seconds to retry in the main loop>
speeds up internal test suite
2010-04-16 17:59:50 +02:00
Harald Hoyer
0c88742669
test: change testsuite to local tcp rather than udp multicast
...
multicast needs an ethernet device and correct firewall rules
the loopback interface suites better as we only have 2 machines
2010-04-16 17:59:49 +02:00
Harald Hoyer
709302e3cc
run-qemu: add /usr/libexec/qemu-kvm to search
2010-04-16 17:59:49 +02:00
Harald Hoyer
3e96d7aa33
TEST-12-RAID-DEG/create-root: filter MD_UUID only
2010-04-16 17:59:49 +02:00
Philippe Seewer
8a08012764
test: use ldconfig processing for roots as well
2010-03-05 11:42:04 +01:00
Harald Hoyer
54aaad9dad
test/iSCSI: fixed test script
2010-02-03 16:42:43 +01:00
Harald Hoyer
0e8b76a57e
test: remove lvm.conf in create-root.sh
2010-01-15 12:58:46 +01:00
Harald Hoyer
b7b6c6e1c6
test: remove lvm.conf in create-root.sh
2010-01-14 17:02:18 +01:00
Harald Hoyer
f5b01e3c57
test: set PATH
2009-11-26 19:12:20 +01:00
Harald Hoyer
121e7b3e2d
TEST-14-IMSM/create-root.sh: wait until md0 is ready synced
2009-10-27 16:02:56 +01:00
Philippe Seewer
778d2ba28b
test: Add compatibility for different kernel configs
...
Some distros, including debian unstable with 2.6.30, still shop
style ide drivers and/or have important filesystems like ext3 as
modules.
This patch ensures that all test cases work on these configurations
by including the necessary modules and adding a simple udev rule
file that provides /dev/sd* symlinks for the case where old style
ide drivers are still in use.
2009-10-27 16:02:56 +01:00
Harald Hoyer
2cc8cbeaf4
test/TEST-20-NFS: kill server if pid file present on run()
2009-10-27 16:02:54 +01:00
Harald Hoyer
ba54a4c747
test: add rdinfo
2009-10-09 13:57:35 +02:00
Harald Hoyer
ffd0861b7c
test/*/hard-off.sh: do not powerdown on rdshell
2009-10-09 13:18:05 +02:00
Harald Hoyer
e5ccf5eb93
run-qemu: specify PATH
2009-10-09 13:17:45 +02:00
Harald Hoyer
40ef4325d9
test: run all tests with rdinitdebug by default
2009-10-06 19:09:22 +02:00
Harald Hoyer
9fbe8a001b
TEST-50-MULTINIC/test.sh: add selinux=0
2009-10-06 19:09:21 +02:00
Harald Hoyer
f12b432efd
test: add "failme" parameter for failing tests
2009-10-06 19:09:17 +02:00
Harald Hoyer
e71a5ca5f2
test/*/hard-off.sh: poweroff, if failme specified
2009-10-06 16:37:20 +02:00
Philippe Seewer
a71f1b4917
Add multinic test suite
...
This is a start a test suite for the multinic support of dracut
2009-10-06 15:17:39 +02:00
Harald Hoyer
8eb16b0827
selinux: bail out if policy could not be loaded and selinux=0 not
...
specified
2009-09-21 17:44:14 +02:00
Harald Hoyer
26fbe9a101
TEST-14-IMSM: rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF succeeds now
...
This test succeeds, because the mirror parts are found without
assembling the mirror itsself, which is what we want
client_run rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF || return 1
2009-09-16 15:32:55 +02:00
Harald Hoyer
f8ddafcca2
TEST-11-LVM: add rdinfo
2009-09-16 15:32:29 +02:00
Harald Hoyer
597839331c
dmraid: use and install kpartx for dmraids
2009-09-16 11:21:24 +02:00
Harald Hoyer
ad8f03af22
TEST-14-IMSM: "rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF" fails
2009-09-15 15:00:24 +02:00
Harald Hoyer
2f02ae9d45
mdraid: add rd_NO_MDADMCONF --mdadmconf --nomdadmconf
...
Copy /etc/mdadm.conf to initramfs (even for non-hostonly) if
mdadmconf="yes" is set in dracut.conf or --mdadmconf is specified on the
dracut command line.
This was done, because there seems _no_ sane way to autoassemble md raid
arrays.
also moved rd_NO_MD to an udev ENV
2009-09-15 15:00:18 +02:00
Harald Hoyer
e51b607189
TEST-14-IMSM: create raid5 inside isw raid container
2009-09-08 15:31:27 +02:00
Harald Hoyer
fdf2a763d4
TEST-14-IMSM: more test cases
2009-09-08 15:31:00 +02:00
Harald Hoyer
0e9bb3f30c
TEST-14-IMSM: no test for a isw raid array
2009-09-08 13:43:21 +02:00
Harald Hoyer
1753a63081
TEST-12-RAID-DEG: check with root=LABEL=root
2009-09-07 11:41:38 +02:00
Harald Hoyer
461ff22cd5
new test/TEST-13-ENC-RAID-LVM
2009-09-01 15:42:27 +02:00
Harald Hoyer
b1a4919cb2
TEST-12-RAID-DEG/test.sh: add rdinfo
2009-09-01 15:42:27 +02:00
Harald Hoyer
5a8b143888
TEST-10-RAID: new mdadm is picky about partitions
2009-08-14 17:27:50 +02:00
Warren Togami
beb097d9f1
Bridged network boot
...
* SYNTAX
bridge=<bridgename>:<ethname>
If bridge without parameters, assume bridge=br0:eth0
* When <ethname> would be configured by network scripts, instead create a bridge named <bridgename> then add <ethname> to that bridge.
* Then $netif becomes <bridgename> instead of <ethname> and all existing scripts process netroot mount via this new $netif instead of <ethname>.
* Include a few test cases in NFS and NBD
2009-07-16 16:58:19 -04:00
Warren Togami
44f1ab8285
Remove 63-luks.rules, it is no longer used
2009-07-16 09:34:07 -04:00
Harald Hoyer
d34a6d07c1
extend TEST-12-RAID-DEG to check for UUID command line parameters
2009-07-15 18:27:21 +02:00
Harald Hoyer
6281504d33
add testsuite for degraded RAID-5 array
2009-07-14 13:44:38 +02:00
Harald Hoyer
4a4c88236b
modified test description for TEST-10-RAID
2009-07-14 13:44:07 +02:00
Harald Hoyer
4fafddf78f
add test for simple root on LVM
2009-07-13 16:41:05 +02:00
Harald Hoyer
6aca2e0366
add kernel-modules module to iscsi server
2009-07-13 15:03:11 +02:00
Harald Hoyer
a3a3448d8c
rdshell
2009-07-03 18:28:09 +02:00
Harald Hoyer
58dbb43eac
initqueue now loops until /dev/root exists or root is mounted
...
init now has the following points to inject scripts:
/cmdline/*.sh
scripts for command line parsing
/pre-udev/*.sh
scripts to run before udev is started
/pre-trigger/*.sh
scripts to run before the main udev trigger is pulled
/initqueue/*.sh
runs in parallel to the udev trigger
Udev events can add scripts here with /sbin/initqueue.
If /sbin/initqueue is called with the "--onetime" option, the script
will be removed after it was run.
If /initqueue/work is created and udev >= 143 then this loop can
process the jobs in parallel to the udevtrigger.
If the udev queue is empty and no root device is found or no root
filesystem was mounted, the user will be dropped to a shell after
a timeout.
Scripts can remove themselves from the initqueue by "rm $job".
/pre-mount/*.sh
scripts to run before the root filesystem is mounted
NFS is an exception, because it has no device node to be created
and mounts in the udev events
/mount/*.sh
scripts to mount the root filesystem
NFS is an exception, because it has no device node to be created
and mounts in the udev events
If the udev queue is empty and no root device is found or no root
filesystem was mounted, the user will be dropped to a shell after
a timeout.
/pre-pivot/*.sh
scripts to run before the real init is executed and the initramfs
disappears
All processes started before should be killed here.
The behaviour of the dmraid module demonstrates how to use the new
mechanism. If it detects a device which is part of a raidmember from a
udev rule, it installs a job to scan for dmraid devices, if the udev
queue is empty. After a scan, it removes itsself from the queue.
2009-07-03 18:11:38 +02:00
Harald Hoyer
e2dbd86f09
add kernel-modules module to testsuite images
2009-07-03 12:06:11 +02:00
Harald Hoyer
4ce1991856
let iSCSI try to mount the complete LUN specified
2009-07-02 11:47:27 +02:00
Harald Hoyer
5db734030d
omit plymouth and add debug module for the testsuite clients
2009-07-02 11:47:27 +02:00
Warren Togami
f910f00627
Remove the NBD legacy format. It wasn't actually matching Debian's nbdroot implementation.
...
Talked with Debian nbdroot author and he agreed we shouldn't support their obsolete syntax in dracut.
Their root=/dev/nbd[0-9] is no longer needed. Also their syntax was very standardized requiring
a separate boot= parameter.
2009-07-01 15:41:26 -04:00
Harald Hoyer
ada0bc3e5f
use different multicast ports for the different testsuites
2009-07-01 21:32:33 +02:00
Harald Hoyer
6fb586f3ef
omit the plymouth module in the testsuite
2009-07-01 19:28:51 +02:00
Harald Hoyer
5831685cdb
use _all_ modules to run the test, in case another module fails
...
also run the tests with 256MB virtual machines
2009-07-01 19:28:51 +02:00
Harald Hoyer
950086e987
do not assume nfs for root=/dev/... but for /dev/nfs
2009-07-01 19:28:31 +02:00
Warren Togami
9d4c1799fe
Fix legacy root=/dev/nfs nfsroot=IP:path case
...
TODO: root=/dev/nfs DHCP cases are still broken.
2009-06-30 18:22:44 -04:00
Warren Togami
297cb80bab
Cleanup parse-nfsroot and NFS tests.
...
TODO: root=/dev/nfs is still broken.
2009-06-30 17:48:56 -04:00
Warren Togami
798d950651
Add test for Legacy root=IP:path NFSv3 syntax
2009-06-30 16:38:57 -04:00
Warren Togami
92798bf79b
netroot= variant is not supported for NFS, you must use root=
...
TODO: This temporarily breaks Legacy root=/dev/nfs.
2009-06-30 16:27:45 -04:00
Warren Togami
fb3d8cf7c2
Remove legacy nfsroot.txt derived shortcuts and accompanying tests.
...
(further cleanup is needed)
2009-06-23 17:08:39 -04:00
Warren Togami
5655a3ffbf
Remove dracut invented variations of Legacy nfsroot.txt syntax and accompanying tests.
...
- Remove root=nfs nfsroot=...
- Remove root=nfs4 nfsroot=...
- Remove root=/dev/nfs4 nfsroot=...
- Legacy nfsroot= without root=/dev/nfs should be unsupported according to the nfsroot.txt.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/filesystems/nfsroot.txt
45 root=/dev/nfs
46
47 This is necessary to enable the pseudo-NFS-device. Note that it's not a
48 real device but just a synonym to tell the kernel to use NFS instead of
49 a real device.
2009-06-22 16:40:09 -04:00
Harald Hoyer
064b6ea92d
make iSCSI boot with root=dhcp and mount partitions labeled with "ROOT"
...
or "/"
2009-06-19 13:00:00 +02:00
Harald Hoyer
33655fc539
do not poweroff in TEST-10-RAID if rdinitdebug is set
2009-06-19 09:29:16 +02:00
Harald Hoyer
a2dc3a075e
do not poweroff in TEST-30-ISCSI, if rdinitdebug is set
2009-06-19 09:29:16 +02:00
Harald Hoyer
e58de60f3c
uncomment hard-off for TEST-30-ISCSI
2009-06-19 09:29:16 +02:00
Harald Hoyer
1cd0c90eab
moved test-init to TEST-10-RAID
2009-06-19 09:29:15 +02:00
Harald Hoyer
65bedc8320
add DEBUGFAIL to TEST-10-RAID
2009-06-18 15:06:32 +02:00
Harald Hoyer
eeb721037b
add iSCSI testsuite
2009-06-18 15:06:32 +02:00
Harald Hoyer
3af5866a26
use 128M for the test virtual machines instead of 512M
2009-06-18 15:06:31 +02:00
Harald Hoyer
9ca74ffef3
kill the server after the test_run
2009-06-18 15:06:26 +02:00
Harald Hoyer
f0aae472e4
revert testsuite failures to handle old style dhcp root-path format
2009-06-17 20:55:59 +02:00
Harald Hoyer
1e885ccdfb
support old style root=dhcp root-path=server-ip:/path
2009-06-17 20:25:23 +02:00
Philippe Seewer
1b31fc140b
netroot: Add ip= cmdline checker
...
As with other netroot boot arguments ip= lines should be parsed and
checked. Having this has the advantage that other cmdline scripts
can tell the ip= parser if dhcp or ip=:srv:... is needed, like
parse-root.sh (renamed dhcp-fallback) or parse-nfsroot do.
The nfs test-suite has one check which uses static ip lines, but
the autoconf param is wrong. Fixed this as well.
2009-06-17 08:37:40 +02:00
Philippe Seewer
50e7ff76de
netroot: Introduce detailed cmdline parsers
...
This introduces detailed cmdline parsing, warning or aborting if the
cmdline does not contain arguments according to the spec.
Makeing sure the parsers don't just call getarg for netroot et al,
allows their reuse inside netroot to analyse dhcp root-path as well.
Hence we can get rid of the current netroot hooks. The hook itself stays
in order to add further modules which should run before netroot handlers
are called.
This has one drawback: nfsroot needs some more logic to handle nfs
specific data inside dhcp root-path.
The parsers have been writting according to current discussions about
cmdline arguments. This lead to the "discovery" that some test-cases
violate the spec. These tests have not been removed, but change to
"must fail".
2009-06-17 08:37:40 +02:00
Philippe Seewer
45630db1a7
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.
2009-06-17 08:37:38 +02:00
Philippe Seewer
3da03a6036
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
2009-06-17 08:37:38 +02:00
Philippe Seewer
5634fc9fef
NBD Test: Server initramfs does not need modules crypt, lvm and mdraim
2009-06-17 08:37:38 +02:00
Philippe Seewer
11f90138cd
NBD Test: Don't start a shell inside the server
2009-06-17 08:37:38 +02:00
Warren Togami
9f786a9d8f
Simple changes to allow test suite to work with dash.
2009-06-15 16:26:11 -04:00
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.
2009-06-11 01:47:11 -04:00
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.
2009-06-11 01:47:11 -04:00
David Dillow
a29f15a5b6
NBD test: add more option parsing tests
2009-06-11 01:46:05 -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
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
bed87ed998
NFS test: add test for nfs[4]:srv:/path syntax
2009-06-08 00:03:10 -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
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
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
Harald Hoyer
3273c0a536
make test output more readable, log errors to test.log
2009-06-05 16:08:30 +02: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
Harald Hoyer
af17f82ed9
moved away Makefile for TEST-30-ISCSI
...
until iSCSI target VM is built by the testcase
2009-06-02 14:26:48 +02:00
Harald Hoyer
ac4ded9128
add iSCSI module
2009-06-02 13:22:29 +02:00
Victor Lowther
1a0c05b849
Make root on local block device test completly automated.
...
We no longer require any user intervention when testing dracut on
a local block device in qemu, assuming everything passes. If things fail,
we still might need to manually kill things.
2009-05-30 21:23:55 -05:00
Victor Lowther
e314863e67
Several updates to make dracut a bit more robust.
...
First, add a check script to 99base to ensure that it will load its
prerequisites.
Second, disable the udev magic dracut normally uses when generating
test images -- it was causing random failures when creating the test
root filesystem, presumably due to race conditions between the
rootfs creation scripts and udev.
Third, consolidate the rootfs creation scripts into one script.
2009-05-30 16:53:12 -05:00
Victor Lowther
333103217d
Don't create fully generic initramfs'es in the test framework
...
There is no point loading every driver available when we are not testing
network functionality and qemu does not even support the stuff we were
loading. It just wastes time and space.
2009-05-29 17:55:31 -05:00
Warren Togami
e19d6bf603
Disambiguate modules and drivers. modules are dracutmodules. drivers are kernel modules.
2009-05-28 14:27:02 -04:00
Victor Lowther
a0c2cee947
Get rid of dependency on e2mkdir
...
If we install copy-root as a mount hook, it will be run after the root fs
is mounted and it will make hte proc directory, allowing root filesystem
creation to finish without error.
2009-05-25 11:44:42 -05:00
Harald Hoyer
c9f0e1f9a5
add "#!/bin/bash" to test.sh
2009-05-25 18:14:26 +02:00
Victor Lowther
fe9143d9ca
Move content of 00test module into the test subdir
...
The last changes made the 00test module really awkward anyways, so just
hack the test module into the initramfs in a slight more brutal fashion.
2009-05-25 17:49:56 +02:00
Harald Hoyer
02b47109cf
add small test script to create a minimal root in /mnt/root
2009-05-25 16:51:10 +02:00
Harald Hoyer
c00f04f57a
introduce modular test suite
2009-05-25 15:32:26 +02:00
Harald Hoyer
2f692e8ff8
silently run qemu
2009-05-25 14:11:24 +02:00
Harald Hoyer
008bb4f22c
/dev/kvm is a char device
2009-05-25 11:44:52 +02:00
Harald Hoyer
2281815799
set u+x for run-qemu
2009-05-25 11:36:32 +02:00
Andreas Thienemann
8a4b60d9b2
Support different virtualization technologies for run-qemu.
...
If the host supports kvm, use is. If this is not the case but the kqemu
module is loaded, run qemu with kqemu optimization. Otherwise fall-back to
pure usermode qemu.
2009-05-25 11:36:32 +02:00
Victor Lowther
4957ab92f2
Create test image on an md array and improve cryptroot handling
...
If we purport to test booting to an md raid, we may as well test it.
We do not need the plymouth module and the normal crypt module to include
duplicate functionality.
2009-05-25 11:36:32 +02:00
Victor Lowther
7f6643f9d9
Add comments to make-test-root to explain why it is written the way it is.
2009-05-25 11:36:32 +02:00
Victor Lowther
9335cb383a
We create our test image with root as an LVM menber.
...
We purport to support booting off an encrypted LVM PV, may as well test it.
2009-05-25 11:36:27 +02:00
Victor Lowther
ac6da96cc8
Make running qemu a little more generic
...
Also create the root filesystem from within the virtual env, this way there
will be no nasty suprises w.r.t interactions with the host machine. This
is important when we test booting to LVM, LUKS, and mdraid.
2009-05-25 11:24:26 +02:00
Harald Hoyer
4b8b7c59cf
quit plymouth in test root
2009-05-20 14:58:55 +02:00
Harald Hoyer
3745a7eb43
include all modules for the test besides of plymouth
2009-05-20 14:25:35 +02:00
Harald Hoyer
d4244cb25b
support normal nfs root definition syntax
2009-05-18 19:55:58 +02:00
Harald Hoyer
280117d934
add nfs testcase
2009-05-18 19:32:22 +02:00
Harald Hoyer
cc5864aa4a
better use bash for initramfs debugging
2009-05-18 16:09:16 +02:00
Harald Hoyer
02948d0905
add minimal dnsmasq dhcp/dns server
2009-05-18 15:33:37 +02:00
Harald Hoyer
2e0eaafa9b
use multicast net for qemu
2009-05-18 15:32:09 +02:00
Harald Hoyer
6b852fde4b
add dhclient to test root image
2009-05-18 14:09:21 +02:00
Harald Hoyer
c395f1de24
add debug to test image
2009-05-18 14:06:47 +02:00
Harald Hoyer
c354b54e55
removed kernel variable from test/test-initramfs
2009-05-15 14:09:55 +02:00
Harald Hoyer
9e551c9097
cleanup make-test-root
2009-05-15 13:24:08 +02:00
Harald Hoyer
e2367e1948
add APPEND and DRACUTOPTS to make target "test"
...
call test with additional dracut options and kernel command line
parameter:
$ make APPEND="udevinfo quiet" DRACUTOPTS="-verbose" test
2009-05-15 13:16:15 +02:00
Harald Hoyer
7ea690569c
no additional modules specified for test/dracut.conf.test
2009-05-12 15:46:20 +02:00
Harald Hoyer
e4d48c451a
install more binaries and directories in the test root
2009-05-12 15:35:57 +02:00
Harald Hoyer
2647059b7c
boot with network
2009-05-12 15:35:22 +02:00
Harald Hoyer
f5f52afdca
fixed the root kernel command argument
2009-03-24 11:31:07 +01:00
Harald Hoyer
93fea990ec
fixed the creation of the root filesystem
2009-03-24 11:30:30 +01:00
Harald Hoyer
309ed9668b
add udev mount rule module to the test image
2009-03-24 11:29:53 +01:00
Victor Lowther
6ce3123192
Updated test-init to only create fstab symlink as needed.
2009-03-20 03:51:05 -05:00
Victor Lowther
9239133486
Minor updates to the testing framework
2009-03-20 03:34:30 -05:00
Victor Lowther
8faaa8f082
Change default install target for udev rules.
...
Also make sure that udev does not complain about a missing rules.d directory.
2009-03-20 03:08:40 -05:00
Victor Lowther
597bd00990
Load all our usual dracut modules
2009-03-20 03:08:40 -05:00
Victor Lowther
88ffd2df3f
Update test framework to create and use LVM on cryptroot
2009-03-20 03:08:39 -05:00
Victor Lowther
32d6bc5d75
Modify Makefile to use new test harness
2009-03-08 11:51:21 -05:00
Victor Lowther
c0b5f979a8
Add a very simple test harness
...
This creates a basic root filesystem, creates an initramfs, and tries
to boot to the basic filesystem.
The init code on the test filesystem prints how much memory is used vs. free
and then drops to a shell. Exiting the shell will power off the VM.
2009-03-08 11:39:55 -05:00