Transforming persistence_excludes bottom script into normal live-boot script.
[live-boot-grml.git] / scripts / boot.sh
index 6304c97..4391a1e 100755 (executable)
@@ -630,12 +630,25 @@ mountroot ()
                log_end_msg
        fi
 
+       if ! [ -d "/root/usr/share/live-boot" ]
+       then
+               panic "A wrong rootfs was mounted."
+       fi
+
+       persistence_exclude
+
        maybe_break live-bottom
        log_begin_msg "Running /scripts/live-bottom\n"
 
        run_scripts /scripts/live-bottom
        log_end_msg
 
+       case "${LIVE_SWAPON}" in
+               true)
+                       Swapon
+                       ;;
+       esac
+
        if [ "${UNIONFS}" = unionfs-fuse ]
        then
                umount "${rootmnt}/dev"