Adjusting live-snapshot to live-initramfs.
authorDaniel Baumann <daniel@debian.org>
Fri, 21 Mar 2008 06:58:25 +0000 (07:58 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:44:53 +0000 (17:44 +0100)
bin/live-snapshot

index 6e4409c..5135ce3 100755 (executable)
@@ -331,20 +331,24 @@ Defaults ()
                                ;;
                esac
 
-               case "${TYPE}" in
-                       cpio)
-                               DEST="${MOUNTP}/casper-sn.cpio.gz" ;;
-                       squashfs)
-                               DEST="${MOUNTP}/casper-sn.squashfs" ;;
-                       ext2)
-                               DEST="${MOUNTP}/casper-sn.ext2" ;;
-                       *)
-                               echo "Internal error."
-                               exit 1
-                               ;;
-               esac
-               #if [ -d
-               #if Is_same_mount
+               case "${TYPE}" in
+                       cpio)
+                               DEST="${MOUNTP}/live-sn.cpio.gz"
+                               ;;
+
+                       squashfs)
+                               DEST="${MOUNTP}/live-sn.squashfs"
+                               ;;
+
+                       ext2)
+                               DEST="${MOUNTP}/live-sn.ext2"
+                               ;;
+
+                       *)
+                               echo "Internal error."
+                               exit 1
+                       ;;
+               esac
        fi
 
        # check vars