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
1=== modified file 'helpers/common'
2--- helpers/common 2015-05-15 16:44:54 +0000
3+++ helpers/common 2015-05-22 15:10:26 +0000
4@@ -312,7 +312,7 @@
5 wipe_partitions "$target" 1 ||
6 { error "failed to wipe partition 1 on $target"; return 1; }
7 fi
8-
9+
10 }
11
12 pt_prep() {
13@@ -608,7 +608,7 @@
14 dpkg-reconfigure "$1"
15 update-grub
16 grub-install --target=$2 --efi-directory=/boot/efi \
17- --bootloader-id=ubuntu --recheck' -- \
18+ --bootloader-id=ubuntu --recheck --no-nvram' -- \
19 "${grub_name}" "${grub_target}" </dev/null ||
20 { error "failed to install grub!"; return 1; }
21 else

Subscribers

People subscribed via source and target branches