[SCM] debian-live branch, master, updated. 1.130.1-3-30-g9671a12

Marco Amadori marco.amadori at gmail.com
Tue Jun 10 22:13:16 UTC 2008


The following commit has been merged in the master branch:
commit 9671a12ff7674502641276590cc3f2cfc0e79f49
Author: Marco Amadori <marco.amadori at gmail.com>
Date:   Fri Jun 6 23:12:43 2008 +0200

    live-snapshot: included vital informations on exit.
    
    Signed-off-by: Marco Amadori <marco.amadori at gmail.com>

diff --git a/bin/live-snapshot b/bin/live-snapshot
index a4f1925..decdf3a 100755
--- a/bin/live-snapshot
+++ b/bin/live-snapshot
@@ -351,6 +351,33 @@ Clean ()
 	fi
 }
 
+Warn_user ()
+{
+	if [ -z "${SNAP_RESYNC_STRING}" ]
+	then
+		case ${SNAP_TYPE} in
+			cpio|ext2)
+				echo "Please move ${DEST} (if is not already in it)" > /dev/null 1>&2
+				echo "in a supported writable partition (e.g ext3, vfat)." > /dev/null 1>&2
+				;;
+
+			squashfs)
+				echo "To use ${DEST} you need to rebuild your media or add it" > /dev/null 1>&2
+				echo "to your multisession disc under the \"/live\" dir." > /dev/null 1>&2
+				;;
+
+			jffs2)
+				echo "Please cat or flashcp ${DEST} to your partition in order to start using it." > /dev/null 1>&2
+				;;
+		esac
+
+		if grep -qv persistent /proc/cmdline
+		then
+			echo "Remember to boot this live system with \"persistent\" specified at boot prompt." > /dev/null 1>&2
+		fi
+	fi
+}
+
 Main ()
 {
 	Parse_args "${@}"
@@ -359,6 +386,7 @@ Main ()
 	trap 'Clean' EXIT
 	Mount_device
 	Do_snapshot
+	Warn_user
 }
 
 Main "${@:-}"

-- 
debian-live



More information about the debian-live-changes mailing list