Contents of /trunk/dracut/patches/dracut-049-busybox-fsfreeze.patch
Parent Directory | Revision Log
Revision 3369 -
(show annotations)
(download)
Tue Jul 9 12:32:26 2019 UTC (5 years, 2 months ago) by niro
File size: 721 byte(s)
Tue Jul 9 12:32:26 2019 UTC (5 years, 2 months ago) by niro
File size: 721 byte(s)
-use long options to support the busybox binary
1 | diff -Naur dracut-049/dracut.sh dracut-049-magellan/dracut.sh |
2 | --- dracut-049/dracut.sh 2019-07-09 14:31:25.556251719 +0200 |
3 | +++ dracut-049-magellan/dracut.sh 2019-07-09 14:29:35.013087693 +0200 |
4 | @@ -1975,7 +1975,7 @@ |
5 | |
6 | # use fsfreeze only if we're not writing to / |
7 | if [[ "$(stat -c %m -- "$outfile")" != "/" && "$(stat -f -c %T -- "$outfile")" != "msdos" ]]; then |
8 | - if ! $(fsfreeze -f $(dirname "$outfile") 2>/dev/null && fsfreeze -u $(dirname "$outfile") 2>/dev/null); then |
9 | + if ! $(fsfreeze --freeze $(dirname "$outfile") 2>/dev/null && fsfreeze --unfreeze $(dirname "$outfile") 2>/dev/null); then |
10 | dinfo "dracut: warning: could not fsfreeze $(dirname "$outfile")" |
11 | fi |
12 | fi |