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-12-RAID-DEG/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-12-RAID-DEG/test.sh')
-rwxr-xr-x | test/TEST-12-RAID-DEG/test.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/TEST-12-RAID-DEG/test.sh b/test/TEST-12-RAID-DEG/test.sh index 9b769918..2d3d3c04 100755 --- a/test/TEST-12-RAID-DEG/test.sh +++ b/test/TEST-12-RAID-DEG/test.sh @@ -74,14 +74,15 @@ test_setup() { . $basedir/dracut-functions dracut_install sfdisk mke2fs poweroff cp umount dd 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. # We do it this way so that we do not risk trashing the host mdraid # 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. @@ -96,6 +97,7 @@ 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 mkdir -p overlay/etc echo "ARRAY /dev/md0 level=raid5 num-devices=3 UUID=$MD_UUID" > overlay/etc/mdadm.conf @@ -103,7 +105,7 @@ test_setup() { 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 } |