summaryrefslogtreecommitdiff
path: root/iso64
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-01-01 22:45:38 +0000
committerV3n3RiX <venerix@rogentos.ro>2016-01-01 22:45:38 +0000
commit7356b72715b9009dcc299ab73aed3340a4f24c73 (patch)
tree75d9b29f0126073cd5b37366cfe6e135b5959c4e /iso64
parenta7cbb0af4c1d19708baa484f7caa38a8cd6070de (diff)
double squash our live environment, put it in place for dmsquash-live to detect it
Diffstat (limited to 'iso64')
-rwxr-xr-xiso647
1 files changed, 7 insertions, 0 deletions
diff --git a/iso64 b/iso64
index acac387..d44879d 100755
--- a/iso64
+++ b/iso64
@@ -10,6 +10,7 @@ makeisox64 () {
mkdir -p "$isostagingdirx64"
mkdir -p "$isobootdirx64"
mkdir -p "$isoefibootdirx64"
+ mkdir -p "$isoliveosdirx64"
mkdir -p "$isosupersquashdirx64"
# mount && copy our core stage 4 image
mount -t squashfs "$chrootx64" "$isostagingdirx64"
@@ -25,6 +26,12 @@ makeisox64 () {
# squash live environment
mksquashfs "$isosyncdirx64" ""$isosyncdirx64".img" -b 1048576 -comp xz -Xdict-size 100%
sha256sum ""$isosyncdirx64".img" | tee ""$isosyncdirx64".img.sha256"
+ # move our squashed live environment on place
+ mv ""$isosyncdirx64".img" "$isosupersquashdirx64"
+ # squash it again to be detected by dmsquash-live
+ mksquashfs "$isosupersquashdirx64" "squashfs.img"
+ # and again, move our double squashed live environment on place
+ mv "squashfs.img" "$isoliveosdirx64"
}
bootcorex64 () {