[pve-devel] r5275 - pve-installer/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Oct 18 13:52:22 CEST 2010


Author: dietmar
Date: 2010-10-18 11:52:22 +0000 (Mon, 18 Oct 2010)
New Revision: 5275

Modified:
   pve-installer/trunk/proxinstall
Log:


Modified: pve-installer/trunk/proxinstall
===================================================================
--- pve-installer/trunk/proxinstall	2010-10-18 11:22:35 UTC (rev 5274)
+++ pve-installer/trunk/proxinstall	2010-10-18 11:52:22 UTC (rev 5275)
@@ -833,7 +833,10 @@
 	    symlink ("/proc/mounts", "$targetdir/etc/mtab");
 	    syscmd ("mount -n --bind /dev $targetdir/dev");
 
-	    syscmd ("chroot $targetdir update-initramfs -k all -c -t") == 0 ||
+	    my $moddir = <$targetdir/lib/modules/2.*-pve>;
+	    my ($kver) = $moddir =~ m|/lib/modules/(2\..*pve)$|;
+
+	    syscmd ("chroot $targetdir update-initramfs -k $kver -c -t") == 0 ||
 		die "unable to create initrd image\n";
 
 	    syscmd ("chroot $targetdir /usr/sbin/grub-install --no-floppy '(hd0)'") == 0 ||



More information about the pve-devel mailing list