summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2009-04-06 11:39:48 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2009-04-06 11:39:48 -0700
commit343b74037a05ba0235c011d676c9d12152d640bc (patch)
tree5617b294dd4b471be06717d1264cbe1f2f03bc27 /scripts
parent956ffcba7223ac0f11925aa0dd0edb572d37668c (diff)
downloadvyatta-cfg-quagga-343b74037a05ba0235c011d676c9d12152d640bc.tar.gz
vyatta-cfg-quagga-343b74037a05ba0235c011d676c9d12152d640bc.zip
change xen kernel detection
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-grub-setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-grub-setup b/scripts/vyatta-grub-setup
index 3eed4df4..e3438ec8 100755
--- a/scripts/vyatta-grub-setup
+++ b/scripts/vyatta-grub-setup
@@ -75,7 +75,7 @@ serial_console="console=tty0 console=ttyS0,9600"
kernel_versions=$(ls $ROOTFSDIR/boot/vmlinuz-* 2> /dev/null | grep -v xen | awk -F/ '{ print $5 }' | sed 's/vmlinuz//g' | sort -r)
# get xen kernel info
-xen_kernel_version=$(ls $ROOTFSDIR/boot/vmlinuz*xen 2> /dev/null | awk -F/ '{ print $5 }' | sed 's/vmlinuz//g' | sort -r)
+xen_kernel_version=$(ls $ROOTFSDIR/boot/vmlinuz*-xen* 2> /dev/null | awk -F/ '{ print $5 }' | sed 's/vmlinuz//g' | sort -r)
xen_version=$(ls $ROOTFSDIR/boot/xen-*.gz 2> /dev/null | head -1 | awk -F/ '{ print $5 }' | sort -r)
# Figure out whether we are running on the serial or KVM console: