- 'cat {} | gzip -dc | cpio -i'.format( - os.path.join(temp_dir, 'squashfs-root', initrd_path)), + 'cat {0} | {1} -dc | cpio -i'.format(tmp_initrd_path, decompressor),
can we please turn that from:
"cat ...| gzip .. | cpio ..."
to something like:
"zcat .. | cpio ..." (or xzcat ro lzcat)
unless there is a good reason to pipe it through three commands instead of two ...
- 'cat {} | gzip -dc | cpio -i'.format( join(temp_ dir, 'squashfs-root', initrd_path)), tmp_initrd_ path, decompressor),
- os.path.
+ 'cat {0} | {1} -dc | cpio -i'.format(
can we please turn that from:
"cat ...| gzip .. | cpio ..."
to something like:
"zcat .. | cpio ..."
(or xzcat ro lzcat)
unless there is a good reason to pipe it through three commands instead of two ...