]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: (ArchLinux) Replace initramfs-linux.img with initramfs-linux-fallback.img.
authorTaro Yamada <archer_ame@yahoo.co.jp>
Sat, 2 Feb 2019 04:05:42 +0000 (13:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 2 Feb 2019 11:45:51 +0000 (12:45 +0100)
Currently /boot/initramfs-linux.img is used as the default initrd for ArchLinux.
Although, since the kernel modules that are not necessary for the host  environment are removed from
initramfs-linux.img by mkinitcpio 's autodetect hook, the kernel modules necessary for qemu may be missing.
(ata_piix, ext4, and so on in my case.)
As a result, the test environment may not be built properly and the test will be failed.

initramfs-linux-fallback.img will skip this autodetect hook, so the test will run successfully in more
environments.

Both initramfs-linux.img and initramfs-linux-fallback.img are generated by default.

test/test-functions

index 3243a868b760efff264e69760630bc1604bc3d12..a936202e4a79baf3682b814fe6ce54b4ba3f0eb9 100644 (file)
@@ -120,7 +120,7 @@ run_qemu() {
 
     default_fedora_initrd=/boot/initramfs-${KERNEL_VER}.img
     default_debian_initrd=/boot/initrd.img-${KERNEL_VER}
-    default_arch_initrd=/boot/initramfs-linux.img
+    default_arch_initrd=/boot/initramfs-linux-fallback.img
     default_suse_initrd=/boot/initrd-${KERNEL_VER}
     if [[ ! "$INITRD" ]]; then
         if [[ -e "$default_fedora_initrd" ]]; then