Merge lp:~rcj/vmbuilder/jenkins_kvm into lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm

Proposed by Robert C Jennings
Status: Merged
Merged at revision: 825
Proposed branch: lp:~rcj/vmbuilder/jenkins_kvm
Merge into: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm
Diff against target: 15 lines (+5/-0)
1 file modified
templates/img-update.tmpl (+5/-0)
To merge this branch: bzr merge lp:~rcj/vmbuilder/jenkins_kvm
Reviewer Review Type Date Requested Status
Cody Shepherd (community) Approve
Francis Ginther (community) Approve
Review via email: mp+366522@code.launchpad.net

Commit message

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 the 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.

To post a comment you must log in.
Revision history for this message
Francis Ginther (fginther) :
review: Approve
Revision history for this message
Robert C Jennings (rcj) wrote :

With this change the disco builder does boot in production and begin image customization.

Revision history for this message
Cody Shepherd (codyshepherd) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'templates/img-update.tmpl'
--- templates/img-update.tmpl 2019-04-18 22:19:04 +0000
+++ templates/img-update.tmpl 2019-04-25 15:24:32 +0000
@@ -296,6 +296,11 @@
296esac296esac
297xchroot update-grub297xchroot update-grub
298298
299# Force boot with initramfs on disco
300if [ "$suite" == "disco" ] ; then
301 xchroot /usr/bin/grub-editenv /boot/grub/grubenv set initrdfail=1
302fi
303
299# builder requirements304# builder requirements
300[ -e ${mp}/etc/resolvconf/resolv.conf.d/original ] &&305[ -e ${mp}/etc/resolvconf/resolv.conf.d/original ] &&
301 rm ${mp}/etc/resolvconf/resolv.conf.d/original306 rm ${mp}/etc/resolvconf/resolv.conf.d/original

Subscribers

People subscribed via source and target branches