1
0
mirror of synced 2026-01-11 23:42:56 +00:00

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:
Axel Beckert 2020-12-19 08:21:05 +01:00 committed by GitHub
commit 67603c2d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"