git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #11998 from abbradar/initrd-root

make-initrd: store all files with root as owner

commitde9634bba3c67465e100aa4565bcd64ed296eadd authorNikolay Amiantov <ab@fmap.me> dateSat 16 Jan 2016, 22:45 (11 years ago) parentfc32bc19c431b7
1 file changed+1−1
pkgs/build-support/kernel/make-initrd.sh+1−1
pkgs/build-support/kernel/make-initrd.sh+1−1
@@ -39,7 +39,7 @@ mkdir -p $out
3939for PREP in $prepend; do
4040 cat $PREP >> $out/initrd
4141done
42−(cd root && find * -print0 | cpio -o -H newc --null | perl $cpioClean | $compressor >> $out/initrd)
42+(cd root && find * -print0 | cpio -o -H newc -R 0:0 --null | perl $cpioClean | $compressor >> $out/initrd)
4343
4444if [ -n "$makeUInitrd" ]; then
4545 mv $out/initrd $out/initrd.gz