Merge lp:~blake-rouse/curtin/curtin-no-nvram into lp:~curtin-dev/curtin/trunk

Proposed by Blake Rouse
Status: Merged
Merged at revision: 206
Proposed branch: lp:~blake-rouse/curtin/curtin-no-nvram
Merge into: lp:~curtin-dev/curtin/trunk
Diff against target: 21 lines (+2/-2)
1 file modified
helpers/common (+2/-2)
To merge this branch: bzr merge lp:~blake-rouse/curtin/curtin-no-nvram
Reviewer Review Type Date Requested Status
curtin developers Pending
Review via email: mp+259938@code.launchpad.net

Commit message

Add --no-nvram to the grub-install command for UEFI.

This stops grub from changing the EFI boot options, keeping machines booting from network instead of the newly installed system.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'helpers/common'
--- helpers/common 2015-05-15 16:44:54 +0000
+++ helpers/common 2015-05-22 15:10:26 +0000
@@ -312,7 +312,7 @@
312 wipe_partitions "$target" 1 ||312 wipe_partitions "$target" 1 ||
313 { error "failed to wipe partition 1 on $target"; return 1; }313 { error "failed to wipe partition 1 on $target"; return 1; }
314 fi314 fi
315 315
316}316}
317317
318pt_prep() {318pt_prep() {
@@ -608,7 +608,7 @@
608 dpkg-reconfigure "$1"608 dpkg-reconfigure "$1"
609 update-grub609 update-grub
610 grub-install --target=$2 --efi-directory=/boot/efi \610 grub-install --target=$2 --efi-directory=/boot/efi \
611 --bootloader-id=ubuntu --recheck' -- \611 --bootloader-id=ubuntu --recheck --no-nvram' -- \
612 "${grub_name}" "${grub_target}" </dev/null ||612 "${grub_name}" "${grub_target}" </dev/null ||
613 { error "failed to install grub!"; return 1; }613 { error "failed to install grub!"; return 1; }
614 else614 else

Subscribers

People subscribed via source and target branches