summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarco Amadori <amadorim@vdavda.com>2009-05-12 17:16:38 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:05 +0100
commite991f76b29fc7214e00ef5117527e8692c0304bf (patch)
tree58766ac712da3d62ab39791a5cbb540bdc58777c /scripts
parent4c28d245428f8709832fc4b1c5b6b1ab5e71cc07 (diff)
downloadlive-boot-e991f76b29fc7214e00ef5117527e8692c0304bf.tar.gz
live-boot-e991f76b29fc7214e00ef5117527e8692c0304bf.zip
Partition snapshots works again.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/live b/scripts/live
index ef7f64d..56c0a14 100755
--- a/scripts/live
+++ b/scripts/live
@@ -944,7 +944,7 @@ try_snap ()
snap_mount="${2}"
snap_type="${3}"
- if [ ! -z "${snapdata}" ]
+ if [ -n "${snapdata}" ] && [ ! -b "${snapdata}" ]
then
log_success_msg "found snapshot: ${snapdata}"
snapdev="$(echo ${snapdata} | cut -f1 -d ' ')"