dracut.sh: set file owners of early cpio files to 0:0

master
Harald Hoyer 2014-01-24 15:27:15 +01:00
parent cd08059f49
commit 8e5db363e8
1 changed files with 2 additions and 2 deletions

View File

@ -1464,7 +1464,7 @@ rm -f -- "$outfile"
dinfo "*** Creating image file ***" dinfo "*** Creating image file ***"
if [[ $create_early_cpio = yes ]]; then if [[ $create_early_cpio = yes ]]; then
# The microcode blob is _before_ the initramfs blob, not after # The microcode blob is _before_ the initramfs blob, not after
(cd "$early_cpio_dir/d"; find . -print0 | cpio --null -o -H newc --quiet >../early.cpio) (cd "$early_cpio_dir/d"; find . -print0 | cpio --null -R 0:0 -H newc -o --quiet >../early.cpio)
mv $early_cpio_dir/early.cpio $outfile.$$ mv $early_cpio_dir/early.cpio $outfile.$$
fi fi
if ! ( umask 077; cd "$initdir"; find . -print0 | cpio --null -R 0:0 -H newc -o --quiet | \ if ! ( umask 077; cd "$initdir"; find . -print0 | cpio --null -R 0:0 -H newc -o --quiet | \