grub-install problem
Uwe Kastens
kiste at kiste.org
Tue Apr 28 10:13:37 CEST 2009
Hello,
We need to patch grub-install each time we build nfsroot new. Anybody
else with this problem?
debian lenny
*** /srv/fai/nfsroot/live/filesystem.dir/usr/sbin/grub-install.orig
2009-02-06 13:39:42.000000000 +0100
--- /srv/fai/nfsroot/live/filesystem.dir/usr/sbin/grub-install
2009-02-06 13:40:30.000000000 +0100
*************** test -n "$mklog" && log_file=`$mklog`
*** 371,377 ****
sync
# On XFS, sync() is not enough.
! if [ `grub-probe -t fs ${grubdir}` = "xfs" ] ; then
xfs_freeze -f ${grubdir} && xfs_freeze -u ${grubdir}
# We don't have set -e. If xfs_freeze failed, it's worth trying anyway,
# maybe we're lucky.
--- 371,377 ----
sync
# On XFS, sync() is not enough.
! if [ `grub-probe --device-map=${device_map} -t fs ${grubdir}` = "xfs"
] ; then
xfs_freeze -f ${grubdir} && xfs_freeze -u ${grubdir}
# We don't have set -e. If xfs_freeze failed, it's worth trying anyway,
# maybe we're lucky.
BR
Uwe
--
kiste lat: 54.322684, lon: 10.13586
More information about the linux-fai
mailing list