@@ -3,7 +3,7 @@
kernels=`ls /boot/vmlinuz-*xen*|sed s/".*vmlinuz-"//` 2>/dev/null
initrds=`ls /boot/initrd-*xen*|sed s/".*initrd-"//` 2>/dev/null
-xenimgs=`ls /boot/xen.gz*` 2>/dev/null
+xenimgs=`ls /boot/xen.gz*|sed s/".*xen.gz-"//` 2>/dev/null
MODULE="}"
@@ -20,7 +20,7 @@
x=`echo $i|sed -e s/xen$//g`
cat << EOF
menuentry "Xen kernel $j" {
- multiboot ${GRUB_DRIVE_BOOT}/xen.gz-$x dom0_mem=256M
+ multiboot ${GRUB_DRIVE_BOOT}/xen.gz-$i dom0_mem=256M
module ${GRUB_DRIVE_BOOT}/vmlinuz-$j root=/dev/sda2 ro console=tty0
${MODULE}
EOF
|