summary refs log tree commit diff
path: root/pkgs/build-support/kernel
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2015-12-25 00:18:15 +0300
committerNikolay Amiantov <ab@fmap.me>2015-12-28 12:07:11 +0300
commit9c431b77ff815ea0ef560bf679191a1e1c96eb75 (patch)
tree4254faa00756dac7b70bb87db00858bc8bb32cdc /pkgs/build-support/kernel
parent688ff0c0dcabcdea39b0f8e75cbeb66e368918ec (diff)
downloadnixlib-9c431b77ff815ea0ef560bf679191a1e1c96eb75.tar
nixlib-9c431b77ff815ea0ef560bf679191a1e1c96eb75.tar.gz
nixlib-9c431b77ff815ea0ef560bf679191a1e1c96eb75.tar.bz2
nixlib-9c431b77ff815ea0ef560bf679191a1e1c96eb75.tar.lz
nixlib-9c431b77ff815ea0ef560bf679191a1e1c96eb75.tar.xz
nixlib-9c431b77ff815ea0ef560bf679191a1e1c96eb75.tar.zst
nixlib-9c431b77ff815ea0ef560bf679191a1e1c96eb75.zip
make-initrd: store all files with root as owner
Diffstat (limited to 'pkgs/build-support/kernel')
-rw-r--r--pkgs/build-support/kernel/make-initrd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/kernel/make-initrd.sh b/pkgs/build-support/kernel/make-initrd.sh
index 08961a1b49c2..89021caa5834 100644
--- a/pkgs/build-support/kernel/make-initrd.sh
+++ b/pkgs/build-support/kernel/make-initrd.sh
@@ -39,7 +39,7 @@ mkdir -p $out
 for PREP in $prepend; do
   cat $PREP >> $out/initrd
 done
-(cd root && find * -print0 | cpio -o -H newc --null | perl $cpioClean | $compressor >> $out/initrd)
+(cd root && find * -print0 | cpio -o -H newc -R 0:0 --null | perl $cpioClean | $compressor >> $out/initrd)
 
 if [ -n "$makeUInitrd" ]; then
     mv $out/initrd $out/initrd.gz