SVN: bootdisk/trunk/batch-installer/installer-boot
hawk
hawk at pld-linux.org
Fri Apr 6 21:53:13 CEST 2007
Author: hawk
Date: Fri Apr 6 21:53:11 2007
New Revision: 8440
Modified:
bootdisk/trunk/batch-installer/installer-boot
Log:
- make sure we have intird image (automatic creation fails
when doing raid install)
Modified: bootdisk/trunk/batch-installer/installer-boot
==============================================================================
--- bootdisk/trunk/batch-installer/installer-boot (original)
+++ bootdisk/trunk/batch-installer/installer-boot Fri Apr 6 21:53:11 2007
@@ -94,6 +94,13 @@
test -f /dest/boot/initrd || ln -s initrd24 /dest/boot/initrd
fi
+# make sure we have initrd image (for unknown reasons geninitrd fails
+# when installing on software raid partitions)
+kernel_ver=`ls -1 /dest/boot/vmlinuz-2.* | sed -e 's/.*vmlinuz-//'`
+if ! test -f /dest/boot/initrd-$kernel_ver.gz ; then
+ chroot /dest geninitrd /boot/initrd $kernel_ver
+fi
+
case "$dest_boot_device" in
/dev/md*)
boot_loader="lilo"
More information about the pld-cvs-commit
mailing list