projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make sure grub-pc is installed when grub option is used
[grml-debootstrap.git]
/
chroot-script
diff --git
a/chroot-script
b/chroot-script
index
62f24f8
..
7d2c8c3
100755
(executable)
--- a/
chroot-script
+++ b/
chroot-script
@@
-421,6
+421,11
@@
grub_install() {
return 0
fi
return 0
fi
+ if ! dpkg --list grub-pc 2>/dev/null | grep -q '^ii' ; then
+ echo "Notice: grub option set but no grub-pc package, installing it therefore."
+ DEBIAN_FRONTEND=$DEBIAN_FRONTEND $APTINSTALL grub-pc
+ fi
+
if ! [ -x "$(which grub-install)" ] ; then
echo "Error: grub-install not available. (Error while installing grub package?)" >&2
return 1
if ! [ -x "$(which grub-install)" ] ; then
echo "Error: grub-install not available. (Error while installing grub package?)" >&2
return 1