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

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