diff options
| author | Michael Stapelberg <michael@stapelberg.de> | 2010-03-21 03:46:33 +0100 |
|---|---|---|
| committer | Michael Stapelberg <michael@stapelberg.de> | 2010-03-21 03:46:33 +0100 |
| commit | c89ef0d0687cf3dd65d5c7ac409c2d46548fe6b2 (patch) | |
| tree | db36a30bd6231faa9cbe42e9ff5b7d27eecc0537 | |
| parent | 15feb17efd672e457857efcbbdb3892687b41506 (diff) | |
fsck returns exit code 1 when modifying the filesystem
(makes the script abort otherwise because of the set -e)
| -rwxr-xr-x | mount-snapshot.sh | 2 |
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} |
