summaryrefslogtreecommitdiff
path: root/main/syslinux
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-06-21 15:07:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-06-21 15:07:44 +0000
commit7b87ff6f9c4c47383a0cb932095bb3d9211c6d58 (patch)
tree426813132c627084cabf43d610b05ba4b86662a5 /main/syslinux
parente247ca0455a53e070f24b72688e6b6aafbdd9a11 (diff)
downloadaports-7b87ff6f9c4c47383a0cb932095bb3d9211c6d58.zip
main/syslinux: update-extlinux: create labels for xen dom0 kernels
Diffstat (limited to 'main/syslinux')
-rw-r--r--main/syslinux/APKBUILD4
-rwxr-xr-xmain/syslinux/update-extlinux9
2 files changed, 9 insertions, 4 deletions
diff --git a/main/syslinux/APKBUILD b/main/syslinux/APKBUILD
index 1f6884b4b43..cca84020db8 100644
--- a/main/syslinux/APKBUILD
+++ b/main/syslinux/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=syslinux
pkgver=4.05
-pkgrel=0
+pkgrel=1
pkgdesc="Boot loader for the Linux operating system"
url="http://syslinux.org"
arch="x86 x86_64"
@@ -38,4 +38,4 @@ package() {
md5sums="82299242418385da1274c9479a778cb2 syslinux-4.05.tar.bz2
7ef73a7a858b8aa1ac6635d6391ac8e5 update-extlinux.conf
-2414de8196826e20292825d69c75184b update-extlinux"
+b242e393a677ed924dd60ff5195f59ef update-extlinux"
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 157d33529f1..dafe8bb189f 100755
--- a/main/syslinux/update-extlinux
+++ b/main/syslinux/update-extlinux
@@ -100,9 +100,14 @@ if [ -f "/boot/xen.gz" ]; then
everbose "Found initramfs: /boot/initramfs-$tag"
initramfs="initramfs-$tag"
fi
+ label=xen-$(grep -w -l $tag /usr/share/kernel/*/kernel.release \
+ | cut -d/ -f5)
+ if [ "$label" = "xen-" ]; then
+ label=xen-$lst
+ fi
- echo "LABEL $lst" >> $conf.new
- if [ "$lst" = "$default" ]; then
+ echo "LABEL $label" >> $conf.new
+ if [ "$label" = "$default" ]; then
echo " MENU DEFAULT" >> $conf.new
fi
echo " MENU LABEL Xen + Linux $tag" >> $conf.new