summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-10-08 14:07:56 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2008-10-08 14:07:56 -0700
commitd9ba657ceb39904efa09cbddc73ab38d517f5c7f (patch)
treed8cfb1926a92bdfc2844edfbd7b1af3317697fa5 /scripts
parent2d73e504545f05cd7b9a7f561e319d1f21ee8bcc (diff)
downloadvyatta-cfg-system-d9ba657ceb39904efa09cbddc73ab38d517f5c7f.tar.gz
vyatta-cfg-system-d9ba657ceb39904efa09cbddc73ab38d517f5c7f.zip
fix xen grub setup
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 1bf47dde..c37bf7a8 100755
--- a/scripts/vyatta-grub-setup
+++ b/scripts/vyatta-grub-setup
@@ -76,7 +76,7 @@ kernel_versions=$(ls $ROOTFSDIR/boot/vmlinuz-* 2> /dev/null | grep -v xen | awk
# 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_version=$(ls $ROOTFSDIR/boot/xen-* 2> /dev/null | awk -F/ '{ print $5 }' | 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:
if [ "`tty`" == "/dev/ttyS0" ]; then