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

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