summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-06-01 01:15:00 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-06-01 01:15:00 +0100
commit21fe309a05aafd45e6ff936156b2ff376920c8de (patch)
tree19ea2f4cf5539cdd176997a50d0964cf1b94f76b
parent5f05b46ac5ecab1da41177a3a5b78ce86451871f (diff)
before compression phase, fix any live filesystem corruptions that may occur during preparation phase
-rwxr-xr-xlibvasile3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvasile b/libvasile
index cba9fc2..f23ae92 100755
--- a/libvasile
+++ b/libvasile
@@ -321,7 +321,10 @@ prepareiso () {
isostart
isoservices
isostop
+ # umount "real" live filesystem
umount -l "$isorsynctarget" > /dev/null 2>&1
+ # fix any possible "real" live filesystem corruptions
+ e2fsck -fy ""$isorsynctarget".img"
# move "real" live filesystem into right place
mv ""$isorsynctarget".img" "$isorealfsdir"
# compress "fake" live filesystem