summaryrefslogtreecommitdiff
path: root/scripts/install-system
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2009-06-25 17:39:15 -0700
committerBob Gilligan <gilligan@vyatta.com>2009-06-25 17:40:57 -0700
commitd04408d14141264703d4d1262a0334f801fc7b6b (patch)
tree0355665b8fec9fd4181beef192e1389c84ee489a /scripts/install-system
parentf371341241d62466fad8021a27524688ff9b5a17 (diff)
downloadvyatta-cfg-quagga-d04408d14141264703d4d1262a0334f801fc7b6b.tar.gz
vyatta-cfg-quagga-d04408d14141264703d4d1262a0334f801fc7b6b.zip
Update hooks to setup config files for installing to a Xen VM.
Diffstat (limited to 'scripts/install-system')
-rwxr-xr-xscripts/install-system22
1 files changed, 13 insertions, 9 deletions
diff --git a/scripts/install-system b/scripts/install-system
index 80fdf33e..d816c159 100755
--- a/scripts/install-system
+++ b/scripts/install-system
@@ -1236,19 +1236,22 @@ setup_xen_partition_images () {
setup_xen_extras () {
echo "Setting up config files for Xen..."
# Set up /boot/grub/menu.lst for use by pygrub
- echo "timeout 5" >> $rootfsdir/boot/grub/menu.lst
- echo "" >> $rootfsdir/boot/grub/menu.lst
- echo "title vyatta-virt" >> $rootfsdir/boot/grub/menu.lst
- echo "root (hd0,0)" >> $rootfsdir/boot/grub/menu.lst
- echo "kernel /boot/vmlinuz root=/dev/xvda1 ro console=hvc0" >> $rootfsdir/boot/grub/menu.lst
+ grubfile=$rootfsdir/boot/grub/menu.lst
+ echo "timeout 5" >> $grubfile
+ echo "" >> $grubfile
+ echo "title vyatta-virt" >> $grubfile
+ echo "root (hd0,0)" >> $grubfile
+ echo "kernel /boot/vmlinuz root=/dev/xvda1 ro console=hvc0" >> $grubfile
+ echo "initrd /boot/initrd.img" >> $grubfile
# Add /proc/xen entry to fstab
echo "xenfs /proc/xen xenfs defaults 0 0" >> $rootfsdir/etc/fstab
# Comment out serial port entry and add Xen console entry to inittab.
- sed -i -e 's/T0/#T0/' $rootfsdir/etc/inittab
- echo "" >> $rootfsdiretc/inittab
- echo "h0:12345:respawn:/sbin/getty 38400 hvc0" >> $rootfsdir/etc/inittab
+ inittab=$rootfsdir/etc/inittab
+ sed -i -e 's/T0/#T0/' $inittab
+ echo "" >> $inittab
+ echo "h0:12345:respawn:/sbin/getty 38400 hvc0" >> $inittab
}
check_for_xen_extras () {
@@ -1256,7 +1259,8 @@ check_for_xen_extras () {
prod=`/usr/sbin/dmidecode -s system-product-name`
if [ "$manuf" = "Xen" -a "$prod" = "HVM domU" ]; then
echo "You are installing to a $manuf $prod virtual machine."
- echo -n "Would you like to set up config files for Xen? [No]: "
+ echo "Would you like to set up config files to prepare for the"
+ echo -n "conversion to PV domU? [No]: "
response=$(get_response "No" "Yes No Y N")
if [ "$response" == "yes" ] || [ "$response" == "y" ]; then
setup_xen_extras