chore: xz compressed initrd and remove systemd patch

This commit is contained in:
Lars Sjöström 2025-02-24 09:14:11 +01:00
parent 7ecbd46b53
commit 9ff916d0a3
No known key found for this signature in database
5 changed files with 6 additions and 30 deletions

View file

@ -8,7 +8,7 @@ pkgs.writeShellApplication {
runtimeInputs = with pkgs; [
cpio
gzip
xz
];
text = ''
@ -117,7 +117,7 @@ pkgs.writeShellApplication {
ln -sf ../demo.service usr/lib/systemd/system/basic.target.wants/demo.service
# gen initrd
find . -print0 | cpio --null --owner=root:root -o --format=newc | gzip -9 > ../initrd.gz
find . -print0 | cpio --null --owner=root:root -o --format=newc | xz -9 --check=crc32 > ../initrd.xz
popd
rm -rf root