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
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.
12
+# On XFS, sync() is not enough.
13
+if [ x"`grub-probe --device-map=${device_map} -t fs ${grubdir}`" = "xxfs" ] ; 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.
19
for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
21
tmp=`echo $file | sed "s|^${grubdir}|${grub_prefix}|"`