wok diff grub/stuff/xfs_freeze.diff @ rev 14305
Up: eeze-dev (1.7.5)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Apr 07 10:17:03 2013 +0200 (2013-04-07) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/grub/stuff/xfs_freeze.diff Sun Apr 07 10:17:03 2013 +0200 1.3 @@ -0,0 +1,21 @@ 1.4 +diff -ur grub-0.97.old/util/grub-install.in grub-0.97/util/grub-install.in 1.5 +--- grub-0.97.old/util/grub-install.in 2004-07-24 20:57:31.000000000 +0200 1.6 ++++ grub-0.97/util/grub-install.in 2009-01-16 22:15:46.000000000 +0100 1.7 +@@ -422,6 +422,17 @@ 1.8 + test -n "$mkimg" && img_file=`$mkimg` 1.9 + test -n "$mklog" && log_file=`$mklog` 1.10 + 1.11 ++# GRUB will try to verify that stage2 is accessible using its own 1.12 ++# filesystem drivers. Make sure it's committed to disk. 1.13 ++sync 1.14 ++ 1.15 ++# On XFS, sync() is not enough. 1.16 ++if [ `grub-probe -t fs ${grubdir}` = "xfs" ] ; then 1.17 ++ xfs_freeze -f ${grubdir} && xfs_freeze -u ${grubdir} 1.18 ++ # We don't have set -e. If xfs_freeze failed, it's worth trying anyway, 1.19 ++ # maybe we're lucky. 1.20 ++fi 1.21 ++ 1.22 + for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do 1.23 + count=5 1.24 + tmp=`echo $file | sed "s|^${grubdir}|${grub_prefix}|"`