From 21fe309a05aafd45e6ff936156b2ff376920c8de Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 1 Jun 2017 01:15:00 +0100 Subject: before compression phase, fix any live filesystem corruptions that may occur during preparation phase --- libvasile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libvasile') 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 -- cgit v1.2.3