X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=deb7b7a655509516c3195133fcda87b527f48e36;hp=675f9ec0677128d07c9539ee9d3cde669aec306a;hb=90f264b5ef5d4f35c8b2bbf9e2a1ce0b75e830ef;hpb=39563a562d5225615961fe23573c15d9e2f5a79c diff --git a/chroot-script b/chroot-script index 675f9ec..deb7b7a 100644 --- a/chroot-script +++ b/chroot-script @@ -145,8 +145,10 @@ if [ -n "$INITRD" ] ; then fi fi -if [ -n "$GROOT" ] ; then - echo "Installing grub" +if [ -z "$GROOT" ] ; then + echo "Warning: \$GROOT is not defined, can not adjust grub configuration therefor." +else + echo "Adjusting grub configuration for use on ${GROOT}." # copy stage-files to /boot/grub/ [ -d /boot/grub/ ] || mkdir /boot/grub