commit: dc4ac6709b7d4eefa335995483151a8c47052408
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 28 17:54:24 2017 +0000
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Thu Dec 28 17:54:24 2017 +0000
URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=dc4ac670
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)