remove system archive feature
Just compress the initrd with zstd. Remove rsmount dependency, mtab is easy enough to parse.
This commit is contained in:
@ -14,8 +14,7 @@ cpio --quiet --extract --file $base_initrd --directory $dir
|
||||
|
||||
(cd $dir && find * |cpio --create -H newc -R 0:0) >test-initrd.cpio
|
||||
|
||||
cpio --quiet -tF test-initrd.cpio
|
||||
if cpio -tF test-initrd.cpio 2>&1 |grep bytes.of.junk; then echo "bad cpio archive"; exit 1; fi
|
||||
|
||||
lz4 -l9v test-initrd.cpio && mv test-initrd.cpio.lz4 test-initrd.cpio
|
||||
zstd -12 -T0 -vf test-initrd.cpio && mv test-initrd.cpio.zst test-initrd.cpio
|
||||
|
||||
|
Reference in New Issue
Block a user