From be5c3c2f279416550e9c6648eb13698487f7a9c8 Mon Sep 17 00:00:00 2001 From: madonuko Date: Sat, 28 Sep 2024 15:48:37 +0800 Subject: [PATCH] feat: revert compression tweaks --- src/builder.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 233e6b1..683d9b9 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -554,7 +554,7 @@ pub struct IsoBuilder { const DR_MODS: &str = "livenet dmsquash-live dmsquash-live-ntfs convertfs pollcdrom qemu qemu-net"; const DR_OMIT: &str = ""; -const DR_ARGS: &str = "--xz --no-early-microcode --strip --aggressive-strip"; +const DR_ARGS: &str = "--xz --no-early-microcode"; impl IsoBuilder { fn dracut(&self, root: &Path) -> Result<()> { @@ -603,9 +603,6 @@ impl IsoBuilder { dr_args.push(&dr_omit); } - if std::env::var("INITRD_COMPRESS").is_err() { - std::env::set_var("INITRD_COMPRESS", "zstd --ultra -22 -q -T0"); - } crate::chroot_run_cmd!(root, unshare -R $root env - DRACUT_SYSTEMD=0 dracut $[dr_args] /boot/initramfs-$kver.img --kver $kver 2>&1; @@ -626,7 +623,7 @@ impl IsoBuilder { "lzo" => "-comp lzo", "lz4" => "-comp lz4 -Xhc", "xz" => "-comp xz -Xbcj x86", - "zstd" => "-comp zstd -Xcompression-level 22", + "zstd" => "-comp zstd -Xcompression-level 19", "lzma" => "-comp lzma", _ => bail!("Unknown squashfs compression: {sqfs_comp}"), }