diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2022-07-22 01:26:24 -0400 |
---|---|---|
committer | Will Fancher <elvishjerricco@gmail.com> | 2023-04-11 15:20:47 -0400 |
commit | 762b69f2ff4a7e843a7e9690a0bed741f229229d (patch) | |
tree | bfe63ae3c4b29e0efa86746a46bb103f715b4cf8 /pkgs/build-support/kernel | |
parent | fef26d88e20cc4045768071421bf495871506b7a (diff) |
systemd-initrd: Fix up root directory mode
Diffstat (limited to 'pkgs/build-support/kernel')
-rw-r--r-- | pkgs/build-support/kernel/make-initrd-ng.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/kernel/make-initrd-ng.nix b/pkgs/build-support/kernel/make-initrd-ng.nix index dc0e9b87db2ab..f3cf3d59f92b0 100644 --- a/pkgs/build-support/kernel/make-initrd-ng.nix +++ b/pkgs/build-support/kernel/make-initrd-ng.nix @@ -78,14 +78,14 @@ in STRIP = if strip then "${pkgsBuildHost.binutils.targetPrefix}strip" else null; }) '' - mkdir ./root + mkdir -p ./root/var/empty make-initrd-ng "$contentsPath" ./root mkdir "$out" (cd root && find * .[^.*] -exec touch -h -d '@1' '{}' +) for PREP in $prepend; do cat $PREP >> $out/initrd done - (cd root && find * .[^.*] -print0 | sort -z | cpio -o -H newc -R +0:+0 --reproducible --null | eval -- $compress >> "$out/initrd") + (cd root && find . -print0 | sort -z | cpio -o -H newc -R +0:+0 --reproducible --null | eval -- $compress >> "$out/initrd") if [ -n "$makeUInitrd" ]; then mkimage -A "$uInitrdArch" -O linux -T ramdisk -C "$uInitrdCompression" -d "$out/initrd" $out/initrd.img |