From 310463321bb58b5e340715ef8b358470df7147ae Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sun, 9 Sep 2018 12:24:09 -0400 Subject: [PATCH] code style; einfo GRUB_INSTALL; document GRUB_INSTALL --- config | 4 ++++ grml-debootstrap | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 -- 2.1.4