Compress flash-images as XZ as well
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 May 2018 19:53:49 +0000 (20:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 21 May 2018 19:59:06 +0000 (20:59 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/flash-images
make.sh

index 57d600c..a5a3c29 100644 (file)
@@ -33,7 +33,7 @@ DEVICE     = $(shell losetup -f)
 PART_BOOT  = /dev/mapper/$(patsubst /dev/%,%,$(DEVICE))p1
 PART_ROOT  = /dev/mapper/$(patsubst /dev/%,%,$(DEVICE))p3
 
-IMAGE_FILE = /install/images/$(SNAME)-$(VERSION).2gb-ext4.$(BUILD_ARCH)-full-core$(CORE).img.gz
+IMAGE_FILE = /install/images/$(SNAME)-$(VERSION).2gb-ext4.$(BUILD_ARCH)-full-core$(CORE).img.xz
 
 FSTAB_FMT = UUID=%s %-8s %-4s %-10s %d %d\n
 
@@ -214,5 +214,5 @@ ifeq "$(BUILD_PLATFORM)" "arm"
 endif
 
        # Compress Image
-       pigz -f9 < $(IMG) > $(IMAGE_FILE)
+       xz $(XZ_OPT) < $(IMG) > $(IMAGE_FILE)
        rm -rf $(IMG) $(MNThdd)
diff --git a/make.sh b/make.sh
index 9893fbb..818d3aa 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1573,7 +1573,7 @@ buildpackages() {
        lfsmake2 flash-images
   fi
 
-  mv $LFS/install/images/{*.iso,*.tgz,*.img.gz,*.bz2} $BASEDIR >> $LOGFILE 2>&1
+  mv $LFS/install/images/{*.iso,*.tgz,*.img.xz,*.bz2} $BASEDIR >> $LOGFILE 2>&1
 
   ipfirepackages