summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-06-02 08:36:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-06-02 08:36:06 +0100
commit6471d1e2a18f64853f2c3f9b992bd76d07a95382 (patch)
treef7d4d84259bf15c25ca99c6912f9712a147cd23e
parent21fe309a05aafd45e6ff936156b2ff376920c8de (diff)
write smaller chunks of data, flush to disk before formating the loop device, disable journaling completely (not needed on live system anyway)
-rwxr-xr-xlibvasile10
1 files 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 () {