diff options
author | rbalocca <rbalocca@vyatta.com> | 2008-04-24 16:49:00 -0700 |
---|---|---|
committer | rbalocca <rbalocca@vyatta.com> | 2008-04-24 16:49:00 -0700 |
commit | 5153700e574890da954e2fc90d06762339ccbee8 (patch) | |
tree | 524966f65e01f531d59d3d2f05f3a1abafb0464d | |
parent | b312b6082905800a9d5f5aaeb73af508ba710efe (diff) | |
download | vyatta-cfg-system-hollister.tar.gz vyatta-cfg-system-hollister.zip |
Pretty print the grub.cfg filehollister
-rwxr-xr-x | scripts/install-system | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/scripts/install-system b/scripts/install-system index 3b00ecbf..56803420 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -561,9 +561,9 @@ install_grub () { root=$(grep $orig_install_drive $rootfsdir/boot/grub/device.map | /usr/bin/awk -F')' '{ print $1 }') root="$root,$part)" else - echo "This looks like a removable device. Setting root grub device to (0,0)." - echo "This looks like a removable device. Setting root grub device to (0,0)." >> $INSTALL_LOG root="(hd0,$part)" + echo "This looks like a removable device. Setting root grub device to $root." + echo "This looks like a removable device. Setting root grub device to $root." >> $INSTALL_LOG fi # Figure out whether we are running on the serial or KVM console: @@ -592,17 +592,16 @@ install_grub () { # Set first system boot option. Make KVM the default console in this one. echo -e "menuentry \"Vyatta OFR (KVM console)\" {" - #echo "set root=$root" - echo -en "linux $root/boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=ttyS0,9600 console=tty0 \n" - echo -e "initrd $root/boot/initrd.img" + echo -en "\tlinux /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=ttyS0,9600 console=tty0 \n" + echo -e "\tinitrd /boot/initrd.img" echo -e "}" # Set the second system boot option. Make the serial port be the default # console in this one. echo echo -e "menuentry \"Vyatta OFR (Serial console)\" {" - echo -en "linux $root/boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=tty0 console=ttyS0,9600 \n" - echo -e "initrd $root/boot/initrd.img" + echo -en "\tlinux /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=tty0 console=ttyS0,9600 \n" + echo -e "\tinitrd /boot/initrd.img" echo -e "}" # Set third and fourth boot options for root password reset. Offer @@ -610,14 +609,14 @@ install_grub () { echo echo -e "menuentry \"Root password reset to factory (KVM console)\" {" - echo -e "linux $root/boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=ttyS0,9600 console=tty0 init=$PWRESET" - echo -e "initrd $root/boot/initrd.img" + echo -e "\tlinux /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=ttyS0,9600 console=tty0 init=$PWRESET" + echo -e "\tinitrd /boot/initrd.img" echo -e "}" echo echo -e "menuentry \"Root password reset to factory (Serial console)\" {" - echo -e "kernel $root/boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=tty0 console=ttyS0,9600 init=$PWRESET" - echo -e "initrd $root/boot/initrd.img" + echo -e "\tkernel /boot/vmlinuz root=/dev/$ROOT_PARTITION $ISCF console=tty0 console=ttyS0,9600 init=$PWRESET" + echo -e "\tinitrd /boot/initrd.img" echo -e "}" ) >"$rootfsdir/boot/grub/grub.cfg" |