summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2009-11-05 19:03:09 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2009-11-05 19:03:09 -0800
commita8045ac8ed24356e6d6431010811043f87a1b37f (patch)
tree5c68a2723acf173be974af7bccaeaecce88ac190
parentbfb9a5b9f8cae8dad0be32ad9e10c71dd4f7d932 (diff)
downloadvyatta-cfg-quagga-a8045ac8ed24356e6d6431010811043f87a1b37f.tar.gz
vyatta-cfg-quagga-a8045ac8ed24356e6d6431010811043f87a1b37f.zip
use new vyatta-union arg to reduce kernel cmdline length.
-rwxr-xr-xscripts/vyatta-grub-setup14
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/vyatta-grub-setup b/scripts/vyatta-grub-setup
index 817223b3..487356c4 100755
--- a/scripts/vyatta-grub-setup
+++ b/scripts/vyatta-grub-setup
@@ -88,7 +88,7 @@ else
fi
if eval "$UNION"; then
- GRUB_OPTIONS="boot=live live-media-path=/boot/$livedir persistent-path=/boot/$livedir quiet persistent noautologin nonetworking nouser hostname=vyatta"
+ GRUB_OPTIONS="boot=live quiet vyatta-union=/boot/$livedir"
union_xen_kernel_version=$(ls $ROOTFSDIR/boot/$livedir/vmlinuz*-xen* \
2>/dev/null \
| awk -F/ '{ print $6 }' \
@@ -253,17 +253,21 @@ fi
# Set options for root password reset. Offer
# options for both serial and KVM console.
+ reset_boot_path=/boot
+ if eval "$UNION"; then
+ reset_boot_path=/boot/$livedir
+ fi
echo
echo -e "menuentry \"Lost password change (KVM console)\" {"
- echo -e "\tlinux /boot/vmlinuz $GRUB_OPTIONS $vga_logo $vty_console init=$pass_reset"
- echo -e "\tinitrd /boot/initrd.img"
+ echo -e "\tlinux $reset_boot_path/vmlinuz $GRUB_OPTIONS $vga_logo $vty_console init=$pass_reset"
+ echo -e "\tinitrd $reset_boot_path/initrd.img"
echo -e "}"
echo
echo -e "menuentry \"Lost password change (Serial console)\" {"
- echo -e "\tlinux /boot/vmlinuz $GRUB_OPTIONS $serial_console init=$pass_reset"
- echo -e "\tinitrd /boot/initrd.img"
+ echo -e "\tlinux $reset_boot_path/vmlinuz $GRUB_OPTIONS $serial_console init=$pass_reset"
+ echo -e "\tinitrd $reset_boot_path/initrd.img"
echo -e "}"
if [ -n "$diag_drive_number" ]; then