Merge pull request #40 from blbradley/grub-silent-failure-fix
fix update-grub chroot silent failure While it probably would be nicer to mount it at the beginning and umount it at the end, we have too many hooks already doing this and changing this seems a bigger task.
This commit is contained in:
commit
67603c2d74
@ -40,7 +40,11 @@ fi
|
||||
if [ ! -e ${prefix}/boot/grub/default ]; then
|
||||
echo default > ${prefix}/boot/grub/default
|
||||
fi
|
||||
mount -o bind /proc ${prefix}/proc
|
||||
mount -o bind /dev ${prefix}/dev
|
||||
chroot ${prefix} /usr/sbin/update-grub
|
||||
umount ${prefix}/proc
|
||||
umount ${prefix}/dev
|
||||
|
||||
else
|
||||
logMessage "pygrub not set, skipping grub-legacy installation"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user