aboutsummaryrefslogtreecommitdiffstats
path: root/main/syslinux/update-extlinux
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/update-extlinux
parente247ca0455a53e070f24b72688e6b6aafbdd9a11 (diff)
downloadaports-7b87ff6f9c4c47383a0cb932095bb3d9211c6d58.tar.bz2
aports-7b87ff6f9c4c47383a0cb932095bb3d9211c6d58.tar.xz
main/syslinux: update-extlinux: create labels for xen dom0 kernels
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-xmain/syslinux/update-extlinux9
1 files changed, 7 insertions, 2 deletions
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 157d33529f..dafe8bb189 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