-if [ ! -d /remaster ]; then
- mkdir -p /remaster/chroot /remaster/tmp /remaster/cdrom
- mount -t tmpfs tmpfs /remaster/tmp
- echo "#:# edit the following two lines to change the boot message" \
- >/remaster/msg
- echo "#:#" >>/remaster/msg
- if [ -r /live/image/boot/isolinux/boot.msg ] ; then
- sed 1,2d /live/image/boot/isolinux/boot.msg >>/remaster/msg
- else
- sed 1,2d /live/image/boot.msg >>/remaster/msg
- fi
+if [ ! -r /remaster ]; then
+ echo "Please create /remaster (e.g. link it to a harddrive)." >&2
+ echo "Exiting to avoid running out of space on the live system." >&2
+ exit 1
+fi
+
+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
+ sed 1,2d ${LIVE_PATH_BOOT}/isolinux/boot.msg >>/remaster/msg