Harald Hoyer
777f2db037
splitup dracut-init.sh from dracut-functions.sh
...
other tools want to source dracut-functions.sh without any mkdir side
effects.
10 years ago
Harald Hoyer
4358ace43c
fixup test suite
...
- qemu wants to have "format=raw"
- "-kernel" is obsolete, because run-qemu picks the right path
10 years ago
Harald Hoyer
6d58fa27a4
change "while read x" to cope with EOF without newline
...
while read x || [ -n "$x" ]
should do the trick
10 years ago
Harald Hoyer
481ee9e6fc
test: ping watchdog in dhcp servers
10 years ago
Harald Hoyer
04942c4569
test/*NFS* : add dhcpd debug flag
10 years ago
Harald Hoyer
e3e1f406bb
test: turn off hostonly-cmdline and hostonly
10 years ago
Harald Hoyer
eda73c0ad2
test: add "fs-lib" to dracut module list
10 years ago
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
11 years ago
Harald Hoyer
4e1f8d0c5f
TEST-20-NFS: add more commands and fix client root dirs
11 years ago
Harald Hoyer
28d03673f9
TEST-20-NFS:client-init.sh: add shell on rd.shell
11 years ago
Chapman Flack
9cf339ada3
Correct strstr/strglobin in test suite.
...
Previous commit included versions of strstr/strglobin in the test
suite files that did not match those in dracut-lib.sh.
11 years ago
Chapman Flack
2c19a5fa78
Specify strstr tightly, add strglob/strglobin.
...
By convention, strstr should be a literal string match. Previously, it
would match as a glob pattern. Some code used that, so add new
functions strglob and strglobin to do what that code expects, and
specify them tightly too. strglob tests whether the glob pattern
matches the entire string (the name strglob is also used in the yorick
language, and that's what it does there), while strglobin tests whether
the glob pattern matches anywhere in the string.
Also tightens str_starts, str_ends, and str_replace to deal with
literal strings only. In a quick grep I did not find code that depended
on these functions matching globs.
Changes the call sites where strstr was used with glob patterns to use
strglobin or strglob as the intention seemed to be (or, in one case,
strstr with the * removed as it did not affect the result anyway).
11 years ago
Harald Hoyer
f52759131b
test: include the same Makefile.testdir
11 years ago
Harald Hoyer
67b4a9ea17
testsuite: fixed network interface names
12 years ago
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
12 years ago
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
12 years ago
Harald Hoyer
021b2fddff
test: use grep option "-F" and install /etc/os-release
12 years ago
Harald Hoyer
44f870be42
test: change qemu param -nographic to -display none for -daemonize
...
qemu does not like -nographic in combination with -daemonize
12 years ago
Harald Hoyer
bb278147cf
fixed testsuite
12 years ago
Harald Hoyer
356333b331
test: add finished-false.sh for create-root.sh initqueue job
12 years ago
Harald Hoyer
14be3b16cd
TEST-20-NFS/test.sh: reformat
13 years ago
Harald Hoyer
167a320e5f
s/libnss*.so/libnss_*.so so that we don't install libnss3.so
13 years ago
Frederic Crozat
ec8974914f
ensure af_packet module is loaded (if not built-in)
13 years ago
Harald Hoyer
23d6dcd125
test: s/ib700wdt/i6300esbwdt/g
13 years ago
Harald Hoyer
5d833a9f5b
add "af_packet" kernel module to network testsuite tests
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
67ab4f7718
testsuite: fixups
13 years ago
Harald Hoyer
f71145d20d
TEST-20-NFS: trigger watchdog more often
13 years ago
Harald Hoyer
9f88b0370d
TEST-20-NFS: libnss cleanup
13 years ago
Harald Hoyer
483b1e3aa8
TEST-20-NFS: add watchdog
13 years ago
Harald Hoyer
fc87119069
TEST-20-NFS: get shell in test root for rd.shell
13 years ago
Harald Hoyer
0635530dda
TEST-20-NFS/test.sh: fsck with "-a"
13 years ago
Harald Hoyer
b8a9dc2d3f
TEST-20-NFS: use ext3 on server and fsck after kill
13 years ago
Harald Hoyer
8b6e099892
90kernel-modules/module-setup.sh: exclude nfs* lockd from standard
...
do not install nfs* lockd filesystems for the standard kernel modules
13 years ago
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
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
3de984ba7f
test/nfs: correct return code and cleanup
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