make-initrd: store all files with root as owner

This commit is contained in:
Nikolay Amiantov 2015-12-25 00:18:15 +03:00
parent 688ff0c0dc
commit 9c431b77ff

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