-
Committer:
Robert C Jennings
-
Date:
2019-04-25 15:20:08 UTC
-
Revision ID:
robert.jennings@canonical.com-20190425152008-tes13z9c0pvx127a
builder: Force boot with initramfs on disco
The initramfs-less boot causes a panic on initial boot for disco.
This should send it back to grub to reboot with an initramfs,
but builder image is invoked with -no-reboot on the kvm command
line so the initramfs-less boot mechanism results in a panic and
no recovery. Rather than change how we launch to remove -no-reboot
this patch alters the grub environment to boot the first time with
an initrd.
Setting the initrdfail=1 grub variable for the builder means
that we boot correctly on the first boot and find the rootfs.