From: Harald Hoyer Date: Wed, 11 Oct 2017 13:28:20 +0000 (+0200) Subject: dracut.sh: quote sync file argument X-Git-Tag: 047~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faabcb23602673f87ec60965b3ff615004371603;p=thirdparty%2Fdracut.git dracut.sh: quote sync file argument --- diff --git a/dracut.sh b/dracut.sh index 995d983e9..990700af0 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1823,8 +1823,7 @@ fi command -v restorecon &>/dev/null && restorecon -- "$outfile" -sync $outfile 2> /dev/null -if [ $? -ne 0 ] ; then +if ! sync "$outfile" 2> /dev/null; then dinfo "dracut: sync operartion on newly created initramfs $outfile failed" exit 1 fi