diff options
author | Michael Larson <slioch@slioch.vyatta.com> | 2009-11-13 13:43:40 -0800 |
---|---|---|
committer | Michael Larson <slioch@slioch.vyatta.com> | 2009-11-13 13:43:40 -0800 |
commit | bd04893b403c5979ecb6fa5d5f8b8aa215b19e82 (patch) | |
tree | 4516f67e6f20304a77116bab03958c5cb4b9d0d0 /scripts/vyatta-grub-setup | |
parent | 41e01b6cf6993d473ac251be251e5f7489081b17 (diff) | |
parent | 3b5ccd729ad0236cfc0350035c294a4b0d395f51 (diff) | |
download | vyatta-cfg-quagga-bd04893b403c5979ecb6fa5d5f8b8aa215b19e82.tar.gz vyatta-cfg-quagga-bd04893b403c5979ecb6fa5d5f8b8aa215b19e82.zip |
dependency update
Merge branch 'kenwood' of http://git.vyatta.com/vyatta-cfg-system into kenwood
Conflicts:
debian/control
Diffstat (limited to 'scripts/vyatta-grub-setup')
-rwxr-xr-x | scripts/vyatta-grub-setup | 14 |
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 |