Commit 496d1dcd authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

Add option to specify different filesystem

parent 57a5c6d9
......@@ -34,7 +34,7 @@ fi
[ -n "$KEEP_MAX_ROLLBACK" ] || KEEP_MAX_ROLLBACK=-1
show_help() {
echo "Usage: `basename $0` command [options]"
echo "Usage: `basename $0` [-d root] command [options]"
echo ""
echo "Commands:"
echo " create [opts] [desc] Creates snapshot of current system"
......@@ -466,6 +466,11 @@ snp_status() {
my_status "$1" "$2"
}
if [ "x$1" == "x-d" ]; then
ROOT_DEV="$(btrfs fi show $2 | sed -n 's|.*\(/dev/[^[:blank:]]*\)$|\1|p')"
shift 2
fi
mount_root
trap 'umount_root; exit "$ERR"' EXIT INT QUIT TERM ABRT
command="$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment