Blame SOURCES/0566-dracut.sh-quote-sync-file-argument.patch

7414ca
From 57c3103a6907fecab002f6d20b0410ad9a1b9f94 Mon Sep 17 00:00:00 2001
7414ca
From: Harald Hoyer <harald@redhat.com>
7414ca
Date: Wed, 11 Oct 2017 15:28:20 +0200
7414ca
Subject: [PATCH] dracut.sh: quote sync file argument
7414ca
7414ca
---
7414ca
 dracut.sh | 4 ++--
7414ca
 1 file changed, 2 insertions(+), 2 deletions(-)
7414ca
7414ca
diff --git a/dracut.sh b/dracut.sh
7414ca
index 9df63cd7..62e53b73 100755
7414ca
--- a/dracut.sh
7414ca
+++ b/dracut.sh
7414ca
@@ -1704,8 +1704,8 @@ else
7414ca
     exit 1
7414ca
 fi
7414ca
 
7414ca
-sync $outfile 2> /dev/null
7414ca
-if [ $? -ne 0 ] ; then
7414ca
+
7414ca
+if ! sync "$outfile" 2> /dev/null; then
7414ca
     dinfo "dracut: sync operartion on newly created initramfs $outfile failed"
7414ca
     exit 1
7414ca
 fi