diff options
author | Philippe Seewer <philippe.seewer@bfh.ch> | 2009-10-16 11:00:03 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-10-27 16:02:56 +0100 |
commit | 778d2ba28bd2a577860d9f451147a2e4f2c178da (patch) | |
tree | 8c1c3917f83c5a1f30f7198dcd73eb3f589121da /test/TEST-13-ENC-RAID-LVM/test.sh | |
parent | dc490a0f089f77362c10771e399b3981a131d961 (diff) | |
download | dracut-778d2ba28bd2a577860d9f451147a2e4f2c178da.tar.gz dracut-778d2ba28bd2a577860d9f451147a2e4f2c178da.tar.bz2 dracut-778d2ba28bd2a577860d9f451147a2e4f2c178da.zip |
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.
Diffstat (limited to 'test/TEST-13-ENC-RAID-LVM/test.sh')
-rwxr-xr-x | test/TEST-13-ENC-RAID-LVM/test.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/TEST-13-ENC-RAID-LVM/test.sh b/test/TEST-13-ENC-RAID-LVM/test.sh index ae3f8706..2071a082 100755 --- a/test/TEST-13-ENC-RAID-LVM/test.sh +++ b/test/TEST-13-ENC-RAID-LVM/test.sh @@ -39,6 +39,7 @@ test_setup() { . $basedir/dracut-functions dracut_install sfdisk mke2fs poweroff cp umount inst_simple ./create-root.sh /initqueue/01create-root.sh + inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules ) # create an initramfs that will create the target root filesystem. @@ -46,7 +47,7 @@ test_setup() { # devices, volume groups, encrypted partitions, etc. $basedir/dracut -l -i overlay / \ -m "dash crypt lvm mdraid udev-rules base rootfs-block kernel-modules" \ - -d "ata_piix ext2 sd_mod" \ + -d "piix ide-gd_mod ata_piix ext2 sd_mod" \ -f initramfs.makeroot $KVERSION || return 1 rm -rf overlay # Invoke KVM and/or QEMU to actually create the target filesystem. @@ -60,12 +61,13 @@ test_setup() { . $basedir/dracut-functions dracut_install poweroff shutdown inst_simple ./hard-off.sh /emergency/01hard-off.sh + inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules inst ./cryptroot-ask /sbin/cryptroot-ask ) sudo $basedir/dracut -l -i overlay / \ -o "plymouth" \ -a "debug" \ - -d "ata_piix ext2 sd_mod" \ + -d "piix ide-gd_mod ata_piix ext2 sd_mod" \ -f initramfs.testing $KVERSION || return 1 } |