From 9c431b77ff815ea0ef560bf679191a1e1c96eb75 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Fri, 25 Dec 2015 00:18:15 +0300 Subject: [PATCH] make-initrd: store all files with root as owner --- pkgs/build-support/kernel/make-initrd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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