@@ -37,7 +37,15 @@
rm -rf /usr/share/man
# setup initrd for XEN workers
-sed -i -e 's/^DOMU_INITRD_MODULES="/DOMU_INITRD_MODULES="loop dm-mod dm-snapshot binfmt_misc fuse kqemu squashfs ext2 ext3 ext4 reiserfs btrfs vfat nf_conntrack_ipv6 /' /etc/sysconfig/kernel
+
+# a longer list to have them also available for qemu cross builds where x86_64 kernel runs in eg. arm env.
+# this list of modules where available on build workers of build.opensuse.org, so we stay compatible.
+export KERNEL_MODULES="loop dm-mod dm-snapshot binfmt-misc fuse kqemu squashfs ext2 ext3 ext4 xfs mptctl reiserfs nf_conntrack_ipv6 binfmt_misc virtio_pci virtio_mmio virtio_blk virtio-rng fat vfat nls_cp437 nls_iso8859-1 ibmvscsi ibmvscsic"
+echo "force_drivers+=\"$KERNEL_MODULES\"" >/etc/dracut.conf.d/03-my-obs.conf
+echo "options loop max_loop=64 lbs=0" > /etc/modprobe.d/50-obs.conf
+
+
+sed -i -e 's/^DOMU_INITRD_MODULES="/DOMU_INITRD_MODULES="loop dm-mod dm-snapshot binfmt_misc fuse kqemu squashfs ext2 ext3 ext4 xfs mptctl reiserfs btrfs vfat nf_conntrack_ipv6 /' /etc/sysconfig/kernel
sed -i -e 's/^NO_KMS_IN_INITRD=.*/NO_KMS_IN_INITRD="yes"/' /etc/sysconfig/kernel
# For save booting, there is some race between blogd and console setup in 11.4 atm
|