[Lunar-commits] <lunar-iso> Bind mount /run and don't execute grub-mkconfig.

Peter de Ridder peter at lunar-linux.org
Thu Apr 25 22:08:57 CEST 2013


commit 5c2ee29debb2026722f95400addb085eda7bda06
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Thu, 25 Apr 2013 12:11:17 -0700
URL: https://github.com/lunar-linux/lunar-iso/commit/5c2ee29debb2026722f95400addb085eda7bda06

Bind mount /run and don't execute grub-mkconfig.
---
  lunar-install/sbin/lunar-install | +3/-2     
  1 file changed, 3 insertions(+), 2 deletions(-)

--- a/lunar-install/sbin/lunar-install
+++ b/lunar-install/sbin/lunar-install
@@ -61,17 +61,19 @@ chroot_run()
 	mount --bind /dev $TARGET/dev
 	mount --bind /tmp $TARGET/tmp
 	mount --bind /sys $TARGET/sys
+	mount --bind /run $TARGET/run
 	if [ -n "$USE_SWAP" ]; then
 		chroot $TARGET swapon -a
 	fi
 	if [ -n "$USE_CLEAR" ]; then
 	    clear
 	fi
-	chroot $TARGET $1 $2 $3 $4 $5 $6 $7 $8 $9
+	chroot $TARGET "$@"
 	RESULT=$?
 	if [ -n "$USE_SWAP" ]; then
 		chroot $TARGET swapoff -a
 	fi
+	umount $TARGET/run
 	umount $TARGET/sys
 	umount $TARGET/tmp
 	umount $TARGET/dev
@@ -854,7 +856,6 @@ install_grub2()
 
 	DISC=$(echo $ROOT | sed 's/[0-9]*$//')
 	chroot_run grub-install $DISC
-	chroot_run grub-mkconfig -o /boot/grub/grub.cfg
 
 	echo "grub was installed on the MBR of $DISC"
 	sleep 4




More information about the Lunar-commits mailing list