Merge pull request #11998 from abbradar/initrd-root

make-initrd: store all files with root as owner
This commit is contained in:
Nikolay Amiantov 2016-01-16 22:45:49 +03:00
commit de9634bba3

View file

@ -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