summaryrefslogtreecommitdiff
path: root/tbdiff-switch/tbdiff-switch
diff options
context:
space:
mode:
Diffstat (limited to 'tbdiff-switch/tbdiff-switch')
-rwxr-xr-xtbdiff-switch/tbdiff-switch8
1 files changed, 1 insertions, 7 deletions
diff --git a/tbdiff-switch/tbdiff-switch b/tbdiff-switch/tbdiff-switch
index c2b168d..8f7b63c 100755
--- a/tbdiff-switch/tbdiff-switch
+++ b/tbdiff-switch/tbdiff-switch
@@ -21,7 +21,7 @@ set -x
# read input parameters
device="$1"
-target_subvolume="$3"
+target_subvolume="$2"
# print usage information if not all parameters are provided
if [ -z "$device" ] ||
@@ -31,11 +31,6 @@ then
exit 1
fi
-if [ ! -f "$patch_file" ]; then
- echo "Patch file \"$patch_file\" does not exist" >&2
- exit 1
-fi
-
# mount the root btrfs file system
rootfs="$(busybox mktemp -d)"
mount -t btrfs "$device" "$rootfs"
@@ -54,7 +49,6 @@ fi
if [ -e "$target_subvolume-run" ]; then
echo "Deleting existing snapshot \"$target_subvolume-run\""
btrfs subvolume delete "$target_subvolume-run"
- exit 1
fi
echo "Creating snapshot \"$target_subvolume-run\" from \"$target_subvolume\""