wok view grub4dos/stuff/xfs_freeze.diff @ rev 14730

Up xorg-xf86-video-ati (7.1.0), xorg-xf86-video-fbdev (0.4.3), xorg-xf86-video-geode (2.11.14), xorg-xf86-video-i740 (1.3.4), xorg-xf86-video-neomagic (1.2.7), xorg-xf86-video-nv (2.1.20), xorg-xf86-video-s3 (0.6.5), xorg-xf86-video-trident (1.3.6), xorg-xf86-video-vesa (2.3.2), xorg-xf86-video-vmware (13.0.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 13 10:45:31 2013 +0200 (2013-06-13)
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}|"`