aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-15 11:06:44 -0500
committerDave Reisner <d@falconindy.com>2010-01-15 11:06:44 -0500
commitfaf2c7501bd4052e0781b803e0acc219bac95b6a (patch)
treecd4b02b8209d41c30d70e3a0925b338aa0b25a27
parent908a308db05b3d10f55a58a0898e26f9fb3a7af0 (diff)
downloadsquashfu-faf2c7501bd4052e0781b803e0acc219bac95b6a.tar.gz
Be a little more verbose about creating initial squash
-rwxr-xr-xsquashfu8
1 files changed, 7 insertions, 1 deletions
diff --git a/squashfu b/squashfu
index de50c80..c959bde 100755
--- a/squashfu
+++ b/squashfu
@@ -28,7 +28,13 @@ create_new_squash () {
if [[ $1 -eq -1 ]]; then
info "Creating seed (this may take a while)"
mksquashfs "${INCLUDES[@]}" "$SEED" -b 65536 -e "${EXCLUDES[@]}" >/dev/null
- return $?
+ if [[ $? -eq 0 ]];
+ mount_squash
+ info "Seed creation finished. It has been mounted at "$SQUASH_MOUNT" \
+ if you would like to make sure the proper files are included"
+ else
+ die "There was an error creating the initial squash."
+ fi
fi
# Determine oldest $1 bins and mount them with the current squash