From 6471d1e2a18f64853f2c3f9b992bd76d07a95382 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 2 Jun 2017 08:36:06 +0100 Subject: write smaller chunks of data, flush to disk before formating the loop device, disable journaling completely (not needed on live system anyway) --- libvasile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libvasile b/libvasile index f23ae92..e512690 100755 --- a/libvasile +++ b/libvasile @@ -277,8 +277,8 @@ isochroot () { prepareiso () { # prepare iso image layout mkdir -p "$isorsynctarget" - dd if=/dev/zero of=""$isorsynctarget".img" bs=50M count=400 - mkfs.ext4 ""$isorsynctarget".img" + dd if=/dev/zero of=""$isorsynctarget".img" bs=1M count=10240 && sync + mkfs.ext2 -F ""$isorsynctarget".img" mkdir -p "$isorsyncsource" mkdir -p "$isocdrootdir" mkdir -p "$isosquashfsdir" @@ -324,17 +324,17 @@ prepareiso () { # umount "real" live filesystem umount -l "$isorsynctarget" > /dev/null 2>&1 # fix any possible "real" live filesystem corruptions - e2fsck -fy ""$isorsynctarget".img" + # e2fsck -fy ""$isorsynctarget".img" # move "real" live filesystem into right place mv ""$isorsynctarget".img" "$isorealfsdir" # compress "fake" live filesystem mksquashfs "$isocdrootdir" ""$isorootdir"/squashfs.img" -b 1048576 -comp xz -Xdict-size 100% mv ""$isorootdir/"squashfs.img" "$isosquashfsdir" - # dracut requires "real" ext4 live filesystem to be placed + # dracut requires "real" live filesystem to be placed # into a "fake" squashfs live filesystem as bellow : # /cdroot/LiveOS/squashfs.img/LiveOS/rootfs.img # squashfs.img is the "fake" squashfs live filesystem - # rootfs.img is the "real" ext4 live filesystem + # rootfs.img is the "real" live filesystem } bootloaderiso () { -- cgit v1.2.3