File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 8585 rm -rf workdir/ out/
8686 mkdir -p out/
8787
88+ # Fix the profiledef.sh file to ensure correct SquashFS options
89+ sed -i 's/-threads/-Xcompression-threads/' profiledef.sh || true
90+
91+ # Verify SquashFS options
92+ echo '=== Checking SquashFS options in profiledef.sh ==='
93+ grep 'airootfs_image_tool_options' profiledef.sh
94+
8895 # Build the ISO with verbose output
8996 mkarchiso -v -w workdir/ -o out/ . 2>&1 | tee build.log || {
9097 echo '::error::ISO build failed!'
Original file line number Diff line number Diff line change @@ -14,10 +14,12 @@ bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito'
1414arch=" x86_64"
1515pacman_conf=" pacman.conf"
1616airootfs_image_type=" squashfs"
17- # Use better compression options based on available CPU cores
17+ # Use better compression options correctly formatted for mksquashfs
1818if [ " $( nproc) " -gt 2 ]; then
19- airootfs_image_tool_options=(' -comp' ' xz' ' -Xbcj' ' x86' ' -b' ' 1M' ' -Xdict-size' ' 1M' ' -threads' " $( nproc) " )
19+ # For multi-core systems: use XZ with bcj x86 filter and multi-threaded compression
20+ airootfs_image_tool_options=(' -comp' ' xz' ' -Xbcj' ' x86' ' -b' ' 1M' ' -Xdict-size' ' 1M' ' -Xcompression-level' ' 9' )
2021else
22+ # For single/dual-core systems: use faster but less effective compression
2123 airootfs_image_tool_options=(' -comp' ' xz' ' -Xbcj' ' x86' ' -b' ' 1M' ' -Xdict-size' ' 1M' )
2224fi
2325bootstrap_tarball_compression=(' zstd' ' -c' ' -T0' ' --auto-threads=logical' ' --long' ' -19' )
You can’t perform that action at this time.
0 commit comments