'added "" to grub fix'

This commit is contained in:
Tobias Powalowski 2009-05-30 19:07:44 +02:00
parent e0130601e3
commit 957a6df9a5

View file

@ -2362,10 +2362,10 @@ dogrub() {
sync
# freeze xfs filesystems to enable grub installation on xfs filesystems
if [ -x /usr/sbin/xfs_freeze ]; then
if [ $(cat /proc/mounts | grep "$DESTDIR/boot " | grep " xfs ") ]; then
if [ "$(cat /proc/mounts | grep "$DESTDIR/boot " | grep " xfs ")" ]; then
/usr/sbin/xfs_freeze -f $DESTDIR/boot > /dev/null 2>&1
fi
if [ $(cat /proc/mounts | grep "$DESTDIR/ " | grep " xfs ") ]; then
if [ "$(cat /proc/mounts | grep "$DESTDIR/ " | grep " xfs ")" ]; then
/usr/sbin/xfs_freeze -f $DESTDIR/ > /dev/null 2>&1
fi
fi
@ -2403,10 +2403,10 @@ EOF
cat /tmp/grub.log >$LOG
# unfreeze xfs filesystems
if [ -x /usr/sbin/xfs_freeze ]; then
if [ $(cat /proc/mounts | grep "$DESTDIR/boot " | grep " xfs ") ]; then
if [ "$(cat /proc/mounts | grep "$DESTDIR/boot " | grep " xfs ")" ]; then
/usr/sbin/xfs_freeze -u $DESTDIR/boot > /dev/null 2>&1
fi
if [ $(cat /proc/mounts | grep "$DESTDIR/ " | grep " xfs ") ]; then
if [ "$(cat /proc/mounts | grep "$DESTDIR/ " | grep " xfs ")" ]; then
/usr/sbin/xfs_freeze -u $DESTDIR/ > /dev/null 2>&1
fi
fi