diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-21 15:07:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-21 15:07:44 +0000 |
commit | 7b87ff6f9c4c47383a0cb932095bb3d9211c6d58 (patch) | |
tree | 426813132c627084cabf43d610b05ba4b86662a5 /main/syslinux/update-extlinux | |
parent | e247ca0455a53e070f24b72688e6b6aafbdd9a11 (diff) | |
download | aports-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-x | main/syslinux/update-extlinux | 9 |
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 |