wok-stable annotate grub/stuff/xfs_freeze.diff @ rev 5360
subversion has 2 neon-dev; fix typos
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Apr 28 21:38:41 2010 +0000 (2010-04-28) |
parents | |
children |
rev | line source |
---|---|
pascal@2599 | 1 diff -ur grub-0.97.old/util/grub-install.in grub-0.97/util/grub-install.in |
pascal@2599 | 2 --- grub-0.97.old/util/grub-install.in 2004-07-24 20:57:31.000000000 +0200 |
pascal@2599 | 3 +++ grub-0.97/util/grub-install.in 2009-01-16 22:15:46.000000000 +0100 |
pascal@2599 | 4 @@ -422,6 +422,17 @@ |
pascal@2599 | 5 test -n "$mkimg" && img_file=`$mkimg` |
pascal@2599 | 6 test -n "$mklog" && log_file=`$mklog` |
pascal@2599 | 7 |
pascal@2599 | 8 +# GRUB will try to verify that stage2 is accessible using its own |
pascal@2599 | 9 +# filesystem drivers. Make sure it's committed to disk. |
pascal@2599 | 10 +sync |
pascal@2599 | 11 + |
pascal@2599 | 12 +# On XFS, sync() is not enough. |
pascal@2599 | 13 +if [ `grub-probe -t fs ${grubdir}` = "xfs" ] ; then |
pascal@2599 | 14 + xfs_freeze -f ${grubdir} && xfs_freeze -u ${grubdir} |
pascal@2599 | 15 + # We don't have set -e. If xfs_freeze failed, it's worth trying anyway, |
pascal@2599 | 16 + # maybe we're lucky. |
pascal@2599 | 17 +fi |
pascal@2599 | 18 + |
pascal@2599 | 19 for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do |
pascal@2599 | 20 count=5 |
pascal@2599 | 21 tmp=`echo $file | sed "s|^${grubdir}|${grub_prefix}|"` |