aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-13 20:01:42 -0500
committerDave Reisner <d@falconindy.com>2010-01-13 20:01:42 -0500
commit5e7d5935a1e33fcf083f844ae23cba5574210daa (patch)
treebb1f868e7db0606b541053ee8768456d6e2382bc
parent035364b4c252279cd2e0ef0100802e376af6fb2c (diff)
downloadsquashfu-5e7d5935a1e33fcf083f844ae23cba5574210daa.tar.gz
Squelch output on mountpoint checks
-rwxr-xr-xsquashfu7
1 files changed, 4 insertions, 3 deletions
diff --git a/squashfu b/squashfu
index 4119c50..43acc5d 100755
--- a/squashfu
+++ b/squashfu
@@ -248,8 +248,8 @@ action_backup () {
info "Backup requested at $(date --rfc-3339=seconds)"
# Cleanup mounts, in case user was doing a rollback and forgot to unmount (or error on last run)
- mountpoint "$UNION_MOUNT" && unmount_union
- mountpoint "$SQUASH_MOUNT" && unmount_squash
+ mountpoint "$UNION_MOUNT" &>/dev/null && unmount_union
+ mountpoint "$SQUASH_MOUNT" &>/dev/null && unmount_squash
create_new_incremental
@@ -293,7 +293,8 @@ action_rollback () {
local num_to_mount=$[ ${#bin_list[@]} - $1 ]
- mountpoint "$UNION_MOUNT" || mountpoint "$SQUASH_MOUNT" && unmount_all
+ mountpoint "$UNION_MOUNT" &>/dev/null && unmount_union
+ mountpoint "$SQUASH_MOUNT" &>/dev/null && unmount_squash
mount_squash