Move displaying installation notes into umount_chroot()
authorMichael Prokop <mika@grml.org>
Sat, 24 Oct 2009 01:26:46 +0000 (03:26 +0200)
committerMichael Prokop <mika@grml.org>
Sat, 24 Oct 2009 01:27:28 +0000 (03:27 +0200)
grml-debootstrap

index b59784f..946b5be 100755 (executable)
@@ -946,8 +946,14 @@ grub_install() {
 }
 # }}}
 
-# unmount $MNTPOINRT {{{
+# unmount $MNTPOINT {{{
 umount_chroot() {
+
+  # display installation notes:
+  if [ -n "$INSTALL_NOTES" ] ; then
+     [ -r "${MNTPOINT}/${INSTALL_NOTES}" ] && cat "${MNTPOINT}/${INSTALL_NOTES}"
+  fi
+
   if [ -n "$ISODIR" ] ; then
      if grep -q "$ISODIR" /proc/mounts ; then
         einfo "Unmount $MNTPOINT/$ISODIR"
@@ -997,12 +1003,6 @@ if echo "$MNTPOINT" | grep -q '/mnt/debootstrap\.' ; then
 fi
 # }}}
 
-# display installation notes {{{
-if [ -n "$INSTALL_NOTES" ] ; then
-   [ -r "$INSTALL_NOTES" ] && cat "$INSTALL_NOTES"
-fi
-# }}}
-
 # end dialog of autoinstallation {{{
 if [ -n "$AUTOINSTALL" ] ; then
    dialog --title "$PN" --msgbox \