Browse Source

Merge pull request #350 from yuwata/fsfreeze

dracut.sh: do not invoke fsfreeze on EFI System Partition
master
Harald Hoyer 7 years ago committed by GitHub
parent
commit
cd83391c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dracut.sh

4
dracut.sh

@ -1834,8 +1834,10 @@ command -v restorecon &>/dev/null && restorecon -- "$outfile" @@ -1834,8 +1834,10 @@ command -v restorecon &>/dev/null && restorecon -- "$outfile"
if ! sync "$outfile" 2> /dev/null; then
dinfo "dracut: sync operation on newly created initramfs $outfile failed"
exit 1
fi

# use fsfreeze only if we're not writing to /
elif ! [ "$(stat -c %m -- "$outfile")" == "/" ]; then
if [[ "$(stat -c %m -- "$outfile")" != "/" && "$(stat -f -c %T -- "$outfile")" != "msdos" ]]; then
if ! $(fsfreeze -f $(dirname "$outfile") 2>/dev/null && fsfreeze -u $(dirname "$outfile") 2>/dev/null); then
dinfo "dracut: warning: could not fsfreeze $(dirname "$outfile")"
fi

Loading…
Cancel
Save