summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2010-03-21 03:46:33 +0100
committerMichael Stapelberg <michael@stapelberg.de>2010-03-21 03:46:33 +0100
commitc89ef0d0687cf3dd65d5c7ac409c2d46548fe6b2 (patch)
treedb36a30bd6231faa9cbe42e9ff5b7d27eecc0537
parent15feb17efd672e457857efcbbdb3892687b41506 (diff)
fsck returns exit code 1 when modifying the filesystem
(makes the script abort otherwise because of the set -e)
-rwxr-xr-xmount-snapshot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount-snapshot.sh b/mount-snapshot.sh
index 5fd4951..e9b8a58 100755
--- a/mount-snapshot.sh
+++ b/mount-snapshot.sh
@@ -48,7 +48,7 @@ losetup -o "${offset}" -f "${SNAP_PATH}"
LOOP=$(losetup -a | grep "(${SNAP_PATH})" -m1 | cut -d : -f 1)
# Run fsck.ext3 to restore the journal
-fsck.ext3 -y "${LOOP}"
+fsck.ext3 -y "${LOOP}" || true
# Mount the file system
mkdir /mnt/snap_${DOMU}