Skip to content

Commit 7562528

Browse files
committed
ci: compress squashfs with zstd
Compress squashfs with zstd since that now we have CONFIG_SQUASHFS_ZSTD=y in all our guest kernels. In my tests it is 78MB vs 85MB (an 8.2% reduction) Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent 396a62a commit 7562528

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/rebuild.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ EOF
6767
id_rsa=$OUTPUT_DIR/$ROOTFS_NAME.id_rsa
6868
sudo cp id_rsa $id_rsa
6969

70-
# -comp zstd but guest kernel does not support
7170
rootfs_img="$OUTPUT_DIR/$ROOTFS_NAME.squashfs"
7271
sudo mv $rootfs/root/manifest $OUTPUT_DIR/$ROOTFS_NAME.manifest
73-
sudo mksquashfs $rootfs $rootfs_img -all-root -noappend
72+
sudo mksquashfs $rootfs $rootfs_img -all-root -noappend -comp zstd
7473
sudo rm -rf $rootfs
7574
sudo chown -Rc $USER. $OUTPUT_DIR
7675
}

0 commit comments

Comments
 (0)