Harald Hoyer
a0af318a8d
testsuite: fixups and color
13 years ago
Harald Hoyer
2723ebba9a
test: silence "make all"
13 years ago
Harald Hoyer
3e1d48fd12
test: add support for: make V=1 TESTS="01 20 40" check
...
$ sudo make V=1 clean check
now runs the testsuite in verbose mode
$ sudo make TESTS="01 20 40" clean check
now only runs the 01, 20 and 40 tests.
13 years ago
Harald Hoyer
4dda0095a1
test/*/server-init.sh: redirect stdin,out,err to /dev/console
13 years ago
Harald Hoyer
27fa604418
test: export initdir
13 years ago
Harald Hoyer
cbefa47006
TEST-30-ISCSI: convert to ext3
13 years ago
Harald Hoyer
38bbec3731
TEST-30-ISCSI: put back in hard-off.sh for tests
13 years ago
Harald Hoyer
67ab4f7718
testsuite: fixups
13 years ago
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
13 years ago
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
13 years ago
Harald Hoyer
9373aec650
TEST-30-ISCSI/test.sh: factor out client runs
13 years ago
Harald Hoyer
3905f6695e
TEST-30-ISCSI: add test case for "root=iscsi:...." and untabify
13 years ago
Harald Hoyer
96d22bd7d6
test: fixed terminfo location
13 years ago
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.
13 years ago
Harald Hoyer
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
14 years ago
Harald Hoyer
fa79f00803
test/*/test.sh: mv 01hard-off.sh 000-hard-off.sh
...
otherwise "die" will let the kernel panic
14 years ago
Harald Hoyer
51b28ba9c4
test/TEST-*/test.sh: set -serial to null for servers
...
-serial udp might have stalled
15 years ago
Harald Hoyer
387bf82e30
test/*/*-init: set PATH
...
/sbin and /usr/sbin are no longer in $PATH
15 years ago
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
15 years ago
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
15 years ago
Harald Hoyer
169f167151
iscsi: add support for multiple netroot=iscsi:
...
The whole netdisk concept should be reviewed though!
15 years ago
Harald Hoyer
85fd75f91f
add rd_retry kernel command line parameter
...
rd_retry=<seconds to retry in the main loop>
speeds up internal test suite
15 years ago
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
15 years ago
Philippe Seewer
8a08012764
test: use ldconfig processing for roots as well
15 years ago
Harald Hoyer
54aaad9dad
test/iSCSI: fixed test script
15 years ago
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.
16 years ago
Harald Hoyer
ba54a4c747
test: add rdinfo
16 years ago
Harald Hoyer
ffd0861b7c
test/*/hard-off.sh: do not powerdown on rdshell
16 years ago
Harald Hoyer
40ef4325d9
test: run all tests with rdinitdebug by default
16 years ago
Harald Hoyer
e71a5ca5f2
test/*/hard-off.sh: poweroff, if failme specified
16 years ago
Harald Hoyer
8eb16b0827
selinux: bail out if policy could not be loaded and selinux=0 not
...
specified
16 years ago
Warren Togami
44f1ab8285
Remove 63-luks.rules, it is no longer used
16 years ago
Harald Hoyer
6aca2e0366
add kernel-modules module to iscsi server
16 years ago
Harald Hoyer
a3a3448d8c
rdshell
16 years ago
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.
16 years ago
Harald Hoyer
e2dbd86f09
add kernel-modules module to testsuite images
16 years ago
Harald Hoyer
4ce1991856
let iSCSI try to mount the complete LUN specified
16 years ago
Harald Hoyer
5db734030d
omit plymouth and add debug module for the testsuite clients
16 years ago
Harald Hoyer
ada0bc3e5f
use different multicast ports for the different testsuites
16 years ago
Harald Hoyer
5831685cdb
use _all_ modules to run the test, in case another module fails
...
also run the tests with 256MB virtual machines
16 years ago
Harald Hoyer
064b6ea92d
make iSCSI boot with root=dhcp and mount partitions labeled with "ROOT"
...
or "/"
16 years ago
Harald Hoyer
a2dc3a075e
do not poweroff in TEST-30-ISCSI, if rdinitdebug is set
16 years ago
Harald Hoyer
e58de60f3c
uncomment hard-off for TEST-30-ISCSI
16 years ago
Harald Hoyer
eeb721037b
add iSCSI testsuite
16 years ago
Harald Hoyer
af17f82ed9
moved away Makefile for TEST-30-ISCSI
...
until iSCSI target VM is built by the testcase
16 years ago
Harald Hoyer
ac4ded9128
add iSCSI module
16 years ago