dracut.sh: quote sync file argument

master
Harald Hoyer 2017-10-11 15:28:20 +02:00
parent 1df4538662
commit faabcb2360
1 changed files with 1 additions and 2 deletions

View File

@ -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