summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarco Amadori <marco.amadori@gmail.com>2008-06-06 23:12:43 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:00 +0100
commit35325028b1a502b4f166067f2a5ab95a620e27e2 (patch)
treef221877dd6ea75cf2c202c445984af0e04c1c710 /bin
parent27d95df60560c82264b49db66bdb62a264dc605e (diff)
downloadlive-boot-35325028b1a502b4f166067f2a5ab95a620e27e2.tar.gz
live-boot-35325028b1a502b4f166067f2a5ab95a620e27e2.zip
live-snapshot: included vital informations on exit.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/live-snapshot28
1 files changed, 28 insertions, 0 deletions
diff --git a/bin/live-snapshot b/bin/live-snapshot
index a4f1925..9c3face 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|ext3)
+ 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\" directory." > /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 "${@:-}"