parent
7ecbd46b53
commit
9ff916d0a3
5 changed files with 6 additions and 30 deletions
utils
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue