fi
umount "${CHROOT_OUTPUT}/grml-live/sources/" 2>/dev/null || /bin/true
- [ -n "$MIRROR_DIRECTORY" ] && umount "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"
+ if [ -n "${MIRROR_DIRECTORY}" ]; then
+ umount "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"
+ rmdir -p "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"
+ fi
}
# }}}
;;
*)
log "Secure Boot method '${SECURE_BOOT}' is unsupported."
- error "Secure Boot method '${SECURE_BOOT}' is unsupported." ; eend 1
+ eerror "Secure Boot method '${SECURE_BOOT}' is unsupported." ; eend 1
bailout 59
;;
esac
# use sane defaults if $SQUASHFS_OPTIONS isn't set
if [ -z "$SQUASHFS_OPTIONS" ] ; then
- # use blocksize 256k as this gives best result with regards to time + compression
- SQUASHFS_OPTIONS="-b 256k"
+ # use block size 1m as this gives good result with regards to time + compression
+ SQUASHFS_OPTIONS="-b 1m"
# set lzma/xz compression by default, unless -z option has been specified on command line
if [ -z "$SQUASHFS_ZLIB" ] ; then