From 43b142985bc5920d1f26524850f52d5d575ce5f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Sat, 8 Nov 2014 02:43:06 -0200 Subject: grub-legacy: rebuild package --- pcr/grub-legacy/PKGBUILD | 2 +- pcr/grub-legacy/install-grub | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'pcr/grub-legacy') diff --git a/pcr/grub-legacy/PKGBUILD b/pcr/grub-legacy/PKGBUILD index f1527d61f..d1dbfb453 100644 --- a/pcr/grub-legacy/PKGBUILD +++ b/pcr/grub-legacy/PKGBUILD @@ -7,7 +7,7 @@ pkgname=grub-legacy _srcname=grub pkgver=0.97 -pkgrel=25.1 +pkgrel=25.parabola1 pkgdesc="A GNU multiboot boot loader (Parabola rebranded)" arch=('i686' 'x86_64' 'mips64el') license=('GPL') diff --git a/pcr/grub-legacy/install-grub b/pcr/grub-legacy/install-grub index affc9c38a..1435ce73b 100644 --- a/pcr/grub-legacy/install-grub +++ b/pcr/grub-legacy/install-grub @@ -57,7 +57,7 @@ fi get_grub_map() { [ -e /tmp/dev.map ] && rm /tmp/dev.map - /sbin/grub --no-floppy --device-map /tmp/dev.map >/tmp/grub.log 2>&1 </tmp/grub.log 2>&1 < /dev/null 2>&1 - [ "$(stat -fLc %T /)" == "xfs" ] && /usr/sbin/xfs_freeze -f / > /dev/null 2>&1 + if [ -x /usr/bin/xfs_freeze ]; then + [ "$(stat -fLc %T /boot)" == "xfs" ] && /usr/bin/xfs_freeze -f /boot > /dev/null 2>&1 + [ "$(stat -fLc %T /)" == "xfs" ] && /usr/bin/xfs_freeze -f / > /dev/null 2>&1 fi # look for a separately-mounted /boot partition @@ -178,7 +178,7 @@ dogrub() { echo ${bootpart} echo ${bootdev} - /sbin/grub --no-floppy --batch >/tmp/grub.log 2>&1 </tmp/grub.log 2>&1 < /dev/null 2>&1 - [ "$(stat -fLc %T /)" == "xfs" ] && /usr/sbin/xfs_freeze -u / > /dev/null 2>&1 + if [ -x /usr/bin/xfs_freeze ]; then + [ "$(stat -fLc %T /boot)" == "xfs" ] && /usr/bin/xfs_freeze -u /boot > /dev/null 2>&1 + [ "$(stat -fLc %T /)" == "xfs" ] && /usr/bin/xfs_freeze -u / > /dev/null 2>&1 fi if grep "Error [0-9]*: " /tmp/grub.log >/dev/null; then echo "Error installing GRUB. (see /tmp/grub.log for output)" -- cgit v1.2.3