remove system archive feature

Just compress the initrd with zstd.
Remove rsmount dependency, mtab is easy enough to parse.
This commit is contained in:
Mikaël Cluseau
2025-07-21 03:45:10 +02:00
parent 0d9d087afd
commit cb62ac0ed8
6 changed files with 34 additions and 522 deletions

View File

@ -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