From: Patrick Schleizer Date: Sun, 9 Sep 2018 16:24:09 +0000 (-0400) Subject: code style; einfo GRUB_INSTALL; document GRUB_INSTALL X-Git-Tag: v0.83~1^2 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=310463321bb58b5e340715ef8b358470df7147ae code style; einfo GRUB_INSTALL; document GRUB_INSTALL --- diff --git a/config b/config index 6638a44..ba57247 100644 --- a/config +++ b/config @@ -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.) diff --git a/grml-debootstrap b/grml-debootstrap index 1a44c7b..4670144 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -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