Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/grss:master commit in: grs/
Date: Thu, 28 Dec 2017 17:54:42
Message-Id: 1514483664.dc4ac6709b7d4eefa335995483151a8c47052408.blueness@gentoo
1 commit: dc4ac6709b7d4eefa335995483151a8c47052408
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 28 17:54:24 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 28 17:54:24 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=dc4ac670
7
8 grs/Netboot.py: use only xz compression
9
10 grs/Netboot.py | 3 ++-
11 1 file changed, 2 insertions(+), 1 deletion(-)
12
13 diff --git a/grs/Netboot.py b/grs/Netboot.py
14 index 62cc17c..1b3ea80 100644
15 --- a/grs/Netboot.py
16 +++ b/grs/Netboot.py
17 @@ -65,6 +65,7 @@ class Netboot(HashIt):
18 shutil.rmtree(initramfs_root, ignore_errors=True)
19 os.makedirs(initramfs_root, mode=0o755, exist_ok=False)
20
21 + # We will only use xz compression
22 initramfs_src = os.path.join(self.portage_configroot, 'boot/initramfs')
23 cmd = 'xz -dc %s | cpio -idv' % (initramfs_src)
24
25 @@ -97,7 +98,7 @@ class Netboot(HashIt):
26
27 # 5. Repack
28 initramfs_dst = os.path.join(self.tmpdir, self.medium_name)
29 - cmd = 'find . -print | cpio -H newc -o | gzip -9 > %s' % initramfs_dst
30 + cmd = 'find . -print | cpio -H newc -o | xz -9e --check=none -z -f > %s' % initramfs_dst
31
32 cwd = os.getcwd()
33 os.chdir(initramfs_root)