]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: set file owners of early cpio files to 0:0
authorHarald Hoyer <harald@redhat.com>
Fri, 24 Jan 2014 14:27:15 +0000 (15:27 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Jul 2014 09:52:05 +0000 (11:52 +0200)
dracut.sh

index 55862751a5f8209f8af4c71d563acd652c41a7f8..0ac2b0508590dd3e949272ac90a3c57d4594371e 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1379,10 +1379,10 @@ rm -f -- "$outfile"
 dinfo "*** Creating image file ***"
 if [[ $create_early_cpio = yes ]]; then
     # 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.$$
 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 | \
     $compress >> "$outfile.$$"; ); then
     dfatal "dracut: creation of $outfile.$$ failed"
     exit 1