about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2020-09-03 14:19:43 +0200
committerLinus Heckemann <git@sphalerite.org>2020-12-17 11:10:37 +0100
commit3a3c9c95481c5382ab7b7ede24ffd2f38651d2df (patch)
tree67e70286adc146b6ccdd89a2b752f20285a23cc9 /pkgs/build-support
parent85e0ae78276bf7259d75888df89386f4a04214b3 (diff)
downloadnixlib-3a3c9c95481c5382ab7b7ede24ffd2f38651d2df.tar
nixlib-3a3c9c95481c5382ab7b7ede24ffd2f38651d2df.tar.gz
nixlib-3a3c9c95481c5382ab7b7ede24ffd2f38651d2df.tar.bz2
nixlib-3a3c9c95481c5382ab7b7ede24ffd2f38651d2df.tar.lz
nixlib-3a3c9c95481c5382ab7b7ede24ffd2f38651d2df.tar.xz
nixlib-3a3c9c95481c5382ab7b7ede24ffd2f38651d2df.tar.zst
nixlib-3a3c9c95481c5382ab7b7ede24ffd2f38651d2df.zip
makeInitrd: include dotfiles at root
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/kernel/make-initrd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/kernel/make-initrd.sh b/pkgs/build-support/kernel/make-initrd.sh
index 822883a681f0..8243736ba467 100644
--- a/pkgs/build-support/kernel/make-initrd.sh
+++ b/pkgs/build-support/kernel/make-initrd.sh
@@ -39,8 +39,8 @@ mkdir -p $out
 for PREP in $prepend; do
   cat $PREP >> $out/initrd
 done
-(cd root && find * -print0 | xargs -0r touch -h -d '@1')
-(cd root && find * -print0 | sort -z | cpio -o -H newc -R +0:+0 --reproducible --null | $compressor >> $out/initrd)
+(cd root && find * .[^.*] -exec touch -h -d '@1' '{}' +)
+(cd root && find * .[^.*] -print0 | sort -z | cpio -o -H newc -R +0:+0 --reproducible --null | $compressor >> $out/initrd)
 
 if [ -n "$makeUInitrd" ]; then
     mv $out/initrd $out/initrd.gz