summaryrefslogtreecommitdiff
path: root/pcr/grub-legacy
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-11-08 02:43:06 -0200
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-11-08 02:43:06 -0200
commit43b142985bc5920d1f26524850f52d5d575ce5f2 (patch)
tree6fb9210587caf93854354a7100bcc76232fc43ae /pcr/grub-legacy
parentc45a53b97d817c676ca1360f03011533489e02ea (diff)
grub-legacy: rebuild package
Diffstat (limited to 'pcr/grub-legacy')
-rw-r--r--pcr/grub-legacy/PKGBUILD2
-rw-r--r--pcr/grub-legacy/install-grub16
2 files changed, 9 insertions, 9 deletions
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 <<EOF
+ /usr/bin/grub --no-floppy --device-map /tmp/dev.map >/tmp/grub.log 2>&1 <<EOF
quit
EOF
}
@@ -159,9 +159,9 @@ dogrub() {
sync
# freeze xfs filesystems to enable grub installation on xfs filesystems
- if [ -x /usr/sbin/xfs_freeze ]; then
- [ "$(stat -fLc %T /boot)" == "xfs" ] && /usr/sbin/xfs_freeze -f /boot > /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 <<EOF
+ /usr/bin/grub --no-floppy --batch >/tmp/grub.log 2>&1 <<EOF
root ${bootpart}
setup ${bootdev}
quit
@@ -186,9 +186,9 @@ EOF
cat /tmp/grub.log
# unfreeze xfs filesystems
- if [ -x /usr/sbin/xfs_freeze ]; then
- [ "$(stat -fLc %T /boot)" == "xfs" ] && /usr/sbin/xfs_freeze -u /boot > /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)"