Skip to content

Commit

Permalink
code style; einfo GRUB_INSTALL; document GRUB_INSTALL
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Sep 9, 2018
1 parent 0b1b798 commit 3104633
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions config
Expand Up @@ -24,6 +24,10 @@
# TARGET='/mnt/grml' # install into directory /mnt/grml

# Install the grub bootloader?
# Default: 'yes'
# Usage example:
# GRUB_INSTALL='no' # Do not install the grub bootloader.

# Specify the device where grub will be installed.
# Note: grub can not be installed into a partition.
# Default: no default. (Grub will not be installed.)
Expand Down
5 changes: 3 additions & 2 deletions grml-debootstrap
Expand Up @@ -1447,8 +1447,9 @@ grub_install() {
if [ -z "${VIRTUAL}" ] ; then
return 0
fi
if [ ! "$GRUB_INSTALL" = "yes" ]; then
return 0
if [ "${GRUB_INSTALL}" != "yes" ] ; then
einfo "Not installing GRUB as requested via \$GRUB_INSTALL=$GRUB_INSTALL"
return 0
fi

if ! mount "${TARGET}" "${MNTPOINT}" ; then
Expand Down

0 comments on commit 3104633

Please sign in to comment.