aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-12-28 12:54:24 -0500
committerAnthony G. Basile <blueness@gentoo.org>2017-12-28 12:54:24 -0500
commitdc4ac6709b7d4eefa335995483151a8c47052408 (patch)
tree7484cbeb5780a81ef28c098e58d18d57c4fceb91
parentgrs/Netboot.py: build busybox inside the system chroot (diff)
downloadgrss-dc4ac6709b7d4eefa335995483151a8c47052408.tar.gz
grss-dc4ac6709b7d4eefa335995483151a8c47052408.tar.bz2
grss-dc4ac6709b7d4eefa335995483151a8c47052408.zip
grs/Netboot.py: use only xz compression
-rw-r--r--grs/Netboot.py3
1 files changed, 2 insertions, 1 deletions
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)