Commit 76529814 authored by Natanael Copa's avatar Natanael Copa

main/syslinux: update-extlinux: create labels for xen dom0 kernels

ref #1213
(cherry picked from commit 7b87ff6f)
parent 5b1e5887
# 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"
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment