wok-4.x view grub/stuff/xfs_freeze.diff @ rev 12171
minicom: simplify receipt
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Mar 22 20:55:40 2012 +0100 (2012-03-22) |
parents | |
children |
line source
1 diff -ur grub-0.97.old/util/grub-install.in grub-0.97/util/grub-install.in
2 --- grub-0.97.old/util/grub-install.in 2004-07-24 20:57:31.000000000 +0200
3 +++ grub-0.97/util/grub-install.in 2009-01-16 22:15:46.000000000 +0100
4 @@ -422,6 +422,17 @@
5 test -n "$mkimg" && img_file=`$mkimg`
6 test -n "$mklog" && log_file=`$mklog`
8 +# GRUB will try to verify that stage2 is accessible using its own
9 +# filesystem drivers. Make sure it's committed to disk.
10 +sync
11 +
12 +# On XFS, sync() is not enough.
13 +if [ `grub-probe -t fs ${grubdir}` = "xfs" ] ; then
14 + xfs_freeze -f ${grubdir} && xfs_freeze -u ${grubdir}
15 + # We don't have set -e. If xfs_freeze failed, it's worth trying anyway,
16 + # maybe we're lucky.
17 +fi
18 +
19 for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
20 count=5
21 tmp=`echo $file | sed "s|^${grubdir}|${grub_prefix}|"`