From dc4ac6709b7d4eefa335995483151a8c47052408 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Thu, 28 Dec 2017 12:54:24 -0500 Subject: grs/Netboot.py: use only xz compression --- grs/Netboot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grs/Netboot.py b/grs/Netboot.py index 62cc17c..1b3ea80 100644 --- a/grs/Netboot.py +++ b/grs/Netboot.py @@ -65,6 +65,7 @@ class Netboot(HashIt): shutil.rmtree(initramfs_root, ignore_errors=True) os.makedirs(initramfs_root, mode=0o755, exist_ok=False) + # We will only use xz compression initramfs_src = os.path.join(self.portage_configroot, 'boot/initramfs') cmd = 'xz -dc %s | cpio -idv' % (initramfs_src) @@ -97,7 +98,7 @@ class Netboot(HashIt): # 5. Repack initramfs_dst = os.path.join(self.tmpdir, self.medium_name) - cmd = 'find . -print | cpio -H newc -o | gzip -9 > %s' % initramfs_dst + cmd = 'find . -print | cpio -H newc -o | xz -9e --check=none -z -f > %s' % initramfs_dst cwd = os.getcwd() os.chdir(initramfs_root) -- cgit v1.2.3-65-gdbad