wok-stable annotate grub4dos/stuff/xfs_freeze.diff @ rev 8923

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