set -e # exit on any error
-if [ -d /live/image/boot/ ] ; then # until Grml versions <=2012.XX
- LIVE_PATH_MAIN='/live/image'
- LIVE_PATH_BOOT='/live/image/boot/'
-else # for Grml versions >=2013.XX
+if [ -d /run/live/medium/ ] ; then # since Dec 2018
+ LIVE_PATH_MAIN='/run/live/medium/'
+ LIVE_PATH_BOOT='/run/live/medium/boot/'
+else # until Dec 2018
LIVE_PATH_MAIN='/lib/live/mount/medium/'
LIVE_PATH_BOOT='/lib/live/mount/medium/boot/'
fi
-VERSION='0.0.3'
+VERSION='0.0.4'
GRML_LIVE_EDITOR=${VISUAL:-${EDITOR:-vi}}
# source core functions {{{
exit 1
fi
-mkdir -p /remaster/chroot /remaster/tmp /remaster/cdrom
-mount -t tmpfs tmpfs /remaster/tmp
+mkdir -p /remaster/chroot /remaster/tmp /remaster/cdrom /remaster/work
+
echo "#:# edit the following two lines to change the boot message" >/remaster/msg
echo "#:#" >>/remaster/msg
if [ -r ${LIVE_PATH_BOOT}/isolinux/boot.msg ] ; then
mount -t squashfs "$SQUASHFS_FILE" /remaster/cdrom -o ro,loop
fi
-if ! grep -q "aufs /remaster/chroot" /proc/mounts ; then
- mount -t aufs aufs /remaster/chroot -o br:/remaster/tmp=rw:/remaster/cdrom=rr
+if ! grep -q "overlay /remaster/chroot" /proc/mounts ; then
+ mount -t overlay overlay -o lowerdir=/remaster/cdrom,upperdir=/remaster/tmp,workdir=/remaster/work /remaster/chroot
fi
for i in run dev dev/pts proc root sys tmp; do