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
Andreas Thienemann
39ff06820f
-I parameter allows you specify an arbitary file to install in the initrd image.
...
-H becomes --hostonly because -h is already taken by --help.
2009-05-23 22:10:52 -04:00
Warren Togami
7ee170746f
Abort if switch_root does not exist.
...
Otherwise it would succeed silently when we KNOW it would fail, which is not cool.
Usually this means you didn't build switch_root in your dracut checkout and you used dracut -l.
(This currently cannot be done in a check script, because of the current design of check.
Andreas intends on discussing a redesign on the list.)
2009-05-21 19:14:50 -04:00
Warren Togami
4ae46e575d
Oops, make it work
2009-05-21 15:16:44 -04:00
Warren Togami
76434898ad
Do not attempt to load policy if selinux-policy is not installed.
2009-05-21 14:34:38 -04:00
Warren Togami
d03caf15cc
Check /sbin/plymouthd for arch instead of /proc/$$/exe. /sbin/plymouthd is guaranteed to be there and be the correct arch.
2009-05-21 12:15:58 -04:00
Warren Togami
1a1b179a5b
module-init-tools only recognizes files ending in *.conf, so only copy files of that pattern.
2009-05-21 11:38:25 -04:00
Andreas Thienemann
3b8c6ac696
add xts module to crypto
2009-05-20 18:06:27 +02:00
Andreas Thienemann
fc791a7fde
fix -t auto for fstype=""
2009-05-20 16:51:50 +02:00
Harald Hoyer
4b8b7c59cf
quit plymouth in test root
2009-05-20 14:58:55 +02:00
Andreas Thienemann
9a4495557f
add missing files for plymouth
2009-05-20 14:38:22 +02:00
Harald Hoyer
3745a7eb43
include all modules for the test besides of plymouth
2009-05-20 14:25:35 +02:00
Harald Hoyer
5ce91332ba
silence plymouth install
2009-05-20 14:25:35 +02:00
Harald Hoyer
76cf8f52d6
ignore *~
2009-05-20 14:25:35 +02:00
Harald Hoyer
69f8af0267
plymouth hide-splash on emergency shell
2009-05-20 14:25:35 +02:00
Harald Hoyer
a4aee9e573
add emergency hook
2009-05-20 14:25:35 +02:00
Harald Hoyer
ea62f0eb2a
fixed NFS mounting
2009-05-20 14:25:31 +02:00
Harald Hoyer
3274a8f98e
add "-o, --omit" to omit dracut modules
2009-05-20 14:02:44 +02:00
Harald Hoyer
9c6f43f0e7
set "-t auto" as default if fstype is emtpy
2009-05-20 14:01:03 +02:00
Harald Hoyer
6d090d6427
silence the "check"'s
2009-05-20 14:00:28 +02:00
Harald Hoyer
6cfef0c638
check for plymouth-set-default-theme not plymouth-set-default-plugin
2009-05-20 12:33:11 +02:00
Andreas Thienemann
84ffb877fd
dinfo print only when verbose defined
2009-05-20 12:30:22 +02:00
Harald Hoyer
155c171d88
recreate /dev/null after /dev mounting
2009-05-20 11:59:34 +02:00
Harald Hoyer
9e30573629
fix node check for plymouth-start.sh
2009-05-20 11:42:41 +02:00
Harald Hoyer
1babfad10a
fix node check for plymouth-start.sh
2009-05-20 11:32:55 +02:00
Harald Hoyer
42baa902f2
add plymouth module for plymouth < 0.7
2009-05-20 11:14:56 +02:00
Andreas Thienemann
7a02208af4
Prevent plymouth-start.sh from creating already existing device nodes.
...
Prevent messages such as the following when booting dracut:
++ mknod /dev/null c 1 3
mknod: `/dev/null': File exists
The plymouth-start.sh script tries to create device nodes it needs, but which
have already been created by the /init script.
This patch makes the mknod calls conditional.
diffstat dracut-plymouth-prevent-mknod-errormsg.patch
plymouth-start.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
2009-05-20 11:13:37 +02:00
Andreas Thienemann
0053156804
Fix "--debug" parameter for dracut
...
remove "-d" as a short-alias for --debug. It collides with the
--driver short-alias.
If --debug is set, inst_script() spews binary "garbage" to the screen
which are interpreted as control characters by the terminal, prompting
the user to call "reset" after dracut has finished. This is related to
set -x printing binary headers from files to stdout.
As inst_script() is only checking if it is a script it should copy by
reading the first 80chars of the file and checking for the shebang line,
it is safe to call tr on the read in data and remove all unprintable
chars if the debug switch is set.
2009-05-20 09:03:01 +02:00
Andreas Thienemann
5616feb004
add usage() to dracut
2009-05-19 16:47:03 +02:00
Andreas Thienemann
adbc8a42b6
output error message, if dracut-functions not found
2009-05-19 16:46:33 +02:00
Peter Jones
9b4191d065
Add ideas for how to possibly avoid daemon restarts.
2009-05-18 21:00:13 +02:00
Harald Hoyer
24987e12a9
remove "set -x" from nfs-mount-root.sh
2009-05-18 20:44:00 +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
2f1408b3ce
only create udev rules for root=/dev/...
2009-05-18 19:32:01 +02:00
Harald Hoyer
a86c07a0b4
basic support for "nfs://" dhcp root_path
2009-05-18 19:31:08 +02:00
Harald Hoyer
a8084e23dd
reenable manual block mount for e.g. lvm devices
2009-05-18 18:18:21 +02:00
Harald Hoyer
6c00df2068
removed debug code
2009-05-18 16:38:32 +02:00
Harald Hoyer
cc5864aa4a
better use bash for initramfs debugging
2009-05-18 16:09:16 +02:00
Harald Hoyer
c02c339bb5
fixed dhclient dhcp options saving
2009-05-18 16:08:58 +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
b80a6fda40
fixed wildcard test of run-dhclient.sh
2009-05-18 15:31:07 +02:00
Harald Hoyer
32f32c14b6
fixed 40network module
2009-05-18 15:22:33 +02:00
Harald Hoyer
f360cabf1f
add "rm" to debug module
2009-05-18 15:22:03 +02:00
Harald Hoyer
6b852fde4b
add dhclient to test root image
2009-05-18 14:09:21 +02:00
Harald Hoyer
17edb6aa4e
mkdir /var/run for dhclient
2009-05-18 14:08:02 +02:00
Harald Hoyer
b300c0354a
kill dhclient if pid was found
2009-05-18 14:07:34 +02:00
Harald Hoyer
c395f1de24
add debug to test image
2009-05-18 14:06:47 +02:00