Blame SOURCES/0093-dracut.sh-set-file-owners-of-early-cpio-files-to-0-0.patch

a56a5e
From 87862728daaefd56708fe2100c22a90ebf361fac Mon Sep 17 00:00:00 2001
966cef
From: Harald Hoyer <harald@redhat.com>
966cef
Date: Fri, 24 Jan 2014 15:27:15 +0100
966cef
Subject: [PATCH] dracut.sh: set file owners of early cpio files to 0:0
966cef
966cef
---
966cef
 dracut.sh | 4 ++--
966cef
 1 file changed, 2 insertions(+), 2 deletions(-)
966cef
966cef
diff --git a/dracut.sh b/dracut.sh
966cef
index 5586275..0ac2b05 100755
966cef
--- a/dracut.sh
966cef
+++ b/dracut.sh
966cef
@@ -1379,10 +1379,10 @@ rm -f -- "$outfile"
966cef
 dinfo "*** Creating image file ***"
966cef
 if [[ $create_early_cpio = yes ]]; then
966cef
     # The microcode blob is _before_ the initramfs blob, not after
966cef
-    (cd "$early_cpio_dir/d"; find . -print0 | cpio --null -o -H newc --quiet >../early.cpio)
966cef
+    (cd "$early_cpio_dir/d";     find . -print0 | cpio --null -R 0:0 -H newc -o --quiet >../early.cpio)
966cef
     mv $early_cpio_dir/early.cpio $outfile.$$
966cef
 fi
966cef
-if ! ( umask 077; cd "$initdir"; find . -print0 | cpio --null -R 0:0 -H newc -o --quiet| \
966cef
+if ! ( umask 077; cd "$initdir"; find . -print0 | cpio --null -R 0:0 -H newc -o --quiet | \
966cef
     $compress >> "$outfile.$$"; ); then
966cef
     dfatal "dracut: creation of $outfile.$$ failed"
966cef
     exit 1