aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-08 21:38:49 -0500
committerDave Reisner <d@falconindy.com>2010-01-08 21:38:49 -0500
commit72b00e3b6cbdb3aa5027e83bdfd1ec6b7337ea3a (patch)
tree012df0fa861a154d33bc0fd63f17fd38bd59686e
parentc1955bc15bbfdc43b12790377bffd266f0d6d4b4 (diff)
downloadsquashfu-72b00e3b6cbdb3aa5027e83bdfd1ec6b7337ea3a.tar.gz
Add skelton for -Z option to restore sanity
-rwxr-xr-xsquashfu7
1 files changed, 7 insertions, 0 deletions
diff --git a/squashfu b/squashfu
index 3e4727e..75cc64b 100755
--- a/squashfu
+++ b/squashfu
@@ -207,6 +207,12 @@ OPERATIONS
alternate mount point can be specified for the resulting rolled back union.
If unspecified, the union will be mounted at $BKUP_ROOT/rw.
+ -Z
+ Use this option to restore sanity, AKA check for the seed or union being
+ mounted and unmount them. Squashfu will ensure that everything is unmounted
+ before a backup, but you might use this after restoring a file after a
+ rollback.
+
OPTIONS
-c, --config
Specify an alternate location to a config file that will override defaults
@@ -286,6 +292,7 @@ while [[ $# -gt 0 ]]; do
"-B") shift; dispatch_backup $* ;;
"-Q") shift; dispatch_query $1 ;;
"-R") shift; dispatch_rollback $* ;;
+ "-Z") unmount_all ;;
*) usage ;;
esac
shift