projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3adae46
)
make sure grub-pc is installed when grub option is used
author
Michael Prokop
<mika@grml.org>
Thu, 13 Oct 2011 22:16:56 +0000
(
00:16
+0200)
committer
Michael Prokop
<mika@grml.org>
Fri, 14 Oct 2011 00:12:06 +0000
(
02:12
+0200)
chroot-script
patch
|
blob
|
history
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