wok view grub/stuff/xfs_freeze.diff @ rev 10841

locale-zh_CN: Fixed post_install and post_remove to be only work when not being installed with --root option.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Jun 10 02:24:41 2011 +0800 (2011-06-10)
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}|"`