Commit 37660030 authored by Leigh Stoller's avatar Leigh Stoller

Fix up grub.cfg in disk_hacks() so that a disk image will boot the

correct (non-xen) kernel.
parent d71cb327
...@@ -2369,6 +2369,9 @@ sub disk_hacks($) ...@@ -2369,6 +2369,9 @@ sub disk_hacks($)
# Run prepare inside to clean up. # Run prepare inside to clean up.
system("/usr/sbin/chroot $path /usr/local/etc/emulab/prepare -N"); system("/usr/sbin/chroot $path /usr/local/etc/emulab/prepare -N");
# Fix of grub to boot non-xen env.
system("sed -i.bak -e 's/default=.*/default=0/' $path/boot/grub/grub.cfg");
# don't try to recursively boot vnodes! # don't try to recursively boot vnodes!
unlink("$path/usr/local/etc/emulab/bootvnodes"); unlink("$path/usr/local/etc/emulab/bootvnodes");
......
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