27 Commits

Author SHA1 Message Date
Michał Sawicz
997fd08e62 Add arm64 buildd bootable image 2022-04-11 23:02:23 +05:30
Cody Shepherd
4acd2e3085
Install lxd-agent-loader in bootable buildd image to improve user
experience with lxd vms
2021-02-12 13:24:54 -08:00
Cody Shepherd
5de661e137
Set grub configs to hide boot menu and enable output on ttyS0 2021-02-10 10:11:22 -08:00
Dimitri John Ledkov
33b7272a23
Perform fsck on all rootfs.
LP: #1912835
2021-02-01 14:45:42 +00:00
Cody Shepherd
edaab1def3
Omit file type exensions in manifest names 2020-11-20 12:36:23 -08:00
Cody Shepherd
762124dbd7
Create manifests for buildd tarballs 2020-11-19 12:59:06 -08:00
Dimitri John Ledkov
3a20f2669c
Merge remote-tracking branch 'davidkrauser/buildd-image-perform-upgrade' into ubuntu/master 2020-11-19 17:39:26 +00:00
David Krauser
065c823144 Produce buildd kernel and initrd as separate artifacts
Multipass on Mac OS X requires standalone kernel and initrd artifacts
to boot.

Also call update-initramfs on all installed kernels. We only have one
kernel installed, so we don't need to specify an explicit version.
2020-10-20 15:00:23 -04:00
Cody Shepherd
7ad64297f7
Remove explicit install of grub-efi-* package as it is not necessary,
and potentially overexplicit
2020-07-13 09:10:50 -07:00
Cody Shepherd
5136ee4104
Perform a dist-upgrade prior to installing packages for bootable-buildd
image in order to pull in package updates
2020-07-09 13:00:04 -07:00
David Krauser
8bc9cb77a1 Safely set /etc/resolv.conf to an empty file in buildd images
In the buildd image chroot, /etc/resolv.conf is a symbolic link to
a configuration file in the /run directory. A call to truncate will
modify that file, which we should not do. Instead, we want to remove
the symbolic link and replace it with an empty file.
2020-03-27 15:17:05 -04:00
David Krauser
1aef616afd Include -security and -updates packages in bootable buildd images
The base image is built with packages from the release pocket; however,
we want the latest from updates and security. Those pockets are already
enabled, we just need to perform an upgrade to pull in the latest
packages.
2020-03-26 15:44:05 -04:00
David Krauser
b71d1f990e Only build bootable buildd images for amd64 2019-12-12 13:54:32 -05:00
David Krauser
4a0b757dc7 Properly setup the chroot before using the network in buildd hook. 2019-12-12 13:51:25 -05:00
David Krauser
612c731b26 Fix broken DNS in buildd image builds.
Instead of injecting an empty resolv.conf with an includes.chroot, we'll
inject it in late with a hook. The empty resolv.conf breaks DNS early in
the build, and causes some binary hooks to fail.
2019-12-11 15:06:11 -05:00
Łukasz 'sil2100' Zemczak
be4ebf2309 Add +x to 49-policy-rc-d.binary 2019-11-08 20:57:24 +01:00
David Krauser
3bf032853b Include empty resolv.conf only in buildd lxd tarballs. 2019-11-08 11:59:40 -05:00
David Krauser
52a3471922 Add hooks to build bootable buildd images.
Only install policyrcd-script-zg2 in lxd tarball.
2019-11-07 13:55:37 -05:00
David Krauser
0eb16a4b14 Enable building buildd artifacts with an ext4 image target. 2019-11-06 13:29:57 -05:00
Colin Watson
3b22ad381a Make sure buildd images have a /usr/sbin/policy-rc.d symlink
Installing policyrcd-script-zg2 doesn't quite do this because of the way
that live-build installs its own temporary version of policy-rc.d.  The
only remotely sensible way I can see to deal with this is to create the
symlink manually.
2019-02-18 14:58:59 +00:00
Colin Watson
46942330d8 Move buildd image building to binary hooks 2018-12-20 01:20:57 +00:00
Colin Watson
2c782e076c Add an empty /etc/resolv.conf to buildd chroots.
We don't want the symlink to /run/systemd/resolve/stub-resolv.conf, and
launchpad-buildd will inject its own version if it doesn't get confused by a
symlink.
2018-05-01 11:30:51 +01:00
Colin Watson
9bd386caa1 Explicitly order remaining buildd hooks. 2018-04-30 09:57:54 +01:00
Colin Watson
2a9efb44a6 Move some buildd hooks to includes.chroot. 2018-04-30 09:57:12 +01:00
Colin Watson
9e99d9f1cf Fix sedding of /etc/apt/sources.list. 2018-04-29 22:54:24 +01:00
Colin Watson
416093beec Use a public-facing mirror URL in the final buildd /etc/apt/sources.list. 2018-04-29 21:42:41 +01:00
Colin Watson
cb22177287 Add a buildd subproject. 2018-04-27 16:07:44 +01:00