Skip to content

Commit cba6d51

Browse files
committed
Fix Ubuntu boot process
This fixes the Ubuntu boot automation, possibly by cheating and using EFI. The previous command didn't have the right series of keys, and just using EFI actually makes the Ubuntu and Mint boot commands nearly identical (it seems like the names for the `initrd` are unfortunately still just slightly different). VirtualBox has pretty seriously improved their EFI support recently so this should be mostly safe.
1 parent c6ecbe6 commit cba6d51

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

packer/main.pkr.hcl

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ source "virtualbox-iso" "base-build" {
102102
boot_wait = "5s"
103103
cpus = 2
104104
disk_size = 20480
105+
firmware = "efi"
105106
format = "ova"
106107
gfx_controller = "vmsvga"
107108
gfx_vram_size = 64
@@ -173,17 +174,13 @@ build {
173174
output_filename = "image-${lower(var.semester)}-ubuntu"
174175
output_directory = "${path.cwd}/artifacts_ubuntu"
175176
boot_command = [
176-
"<esc><wait>",
177-
"<esc><wait>",
178-
"<esc><wait>",
179-
"<enter><wait>",
180-
"/casper/vmlinuz",
177+
"<esc><wait><esc><wait><esc><wait>",
178+
"c<wait>",
179+
"linux /casper/vmlinuz fsck.mode=skip<wait> noprompt",
181180
" auto url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/oem-preseed.cfg",
182-
" automatic-ubiquity",
183-
" debug-ubiquity",
184-
" keymap=us",
185-
" boot=casper initrd=/casper/initrd noprompt --",
186-
"<enter>"
181+
" automatic-ubiquity debug-ubiquity keymap=us<enter>",
182+
"initrd /casper/initrd<enter><wait>",
183+
"boot<enter>"
187184
]
188185
export_opts = [
189186
"--manifest",

0 commit comments

Comments
 (0)