24 Commits

Author SHA1 Message Date
Dimitri John Ledkov
d2e70ab48e
Perform fsck on all rootfs.
LP: #1912835
(cherry picked from commit 33b7272a2331279b4c7aa8de73ed8a9069d0bd39)
2021-02-09 01:17:12 +00:00
David Krauser
c1a71f933b 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.
2021-01-08 14:58:25 -05:00
Cody Shepherd
695b4de393
Omit file type exensions in manifest names 2020-11-20 12:41:32 -08:00
Cody Shepherd
c5102d998e
Create manifests for buildd tarballs 2020-11-20 07:52:21 -08:00
Cody Shepherd
bacc18b6b3
Change tar transform target to match changes in bionic+, allowing for
ext4 image format to be built correctly
2020-10-09 09:25:23 -07:00
Cody Shepherd
e1e3fec767
Don't install recommends for bootable buildd image 2020-10-06 10:22:12 -07:00
Cody Shepherd
c9043b2697
Call function to set up resolvconf to enable DNS for buildd 2020-10-06 10:20:46 -07:00
Cody Shepherd
f7512b21a0
Remove bind9 from buildd installed packages 2020-10-06 10:20:46 -07:00
Cody Shepherd
4a9592601d
Disable buildd console output on ttyS0 2020-10-06 10:20:46 -07:00
Cody Shepherd
515bc1430b
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-10-06 10:20:45 -07:00
Cody Shepherd
e23685134e
* Remove explicit install of grub-efi* packages for amd64
* Remove systemd-networkd artifacts from includes.chroot
2020-10-06 10:20:45 -07:00
Cody Shepherd
7981a08c2c
Install packages and perform dist-upgrade necessary for secure xenial
bootable-buildd image
2020-10-06 10:20:44 -07:00
Cody Shepherd
2d9243e499
Fork buildd disk-image-uefi hook from the ubuntu-cpc/base/
disk-image-uefi hook; it was originally a backported fork of the hook
from the ubuntu/focal branch
2020-10-06 10:20:44 -07:00
Cody Shepherd
e30aefc83b
Only build bootable buildd images for amd64. 2020-10-06 10:20:43 -07:00
Cody Shepherd
9b93c0c613
Properly setup the chroot before using the network in buildd hook. 2020-10-06 10:20:42 -07:00
Cody Shepherd
9b1fe7a820
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
2020-10-06 10:20:42 -07:00
Cody Shepherd
a29e886fe1
Include empty resolv.conf only in buildd lxd tarballs. 2020-10-06 10:20:41 -07:00
Cody Shepherd
172a7dd55c
Add hooks to build bootable buildd images
Only install policyrd-script-zg2 in lxd tarball
2020-10-06 10:20:41 -07:00
Cody Shepherd
934cb358e1
Enable building buildd artifacts with an ext4 image target 2020-10-06 10:20:32 -07:00
Colin Watson
27ef9b07b4 Fix /dev/ptmx rather than excluding makedev
Revert exclusion of makedev from buildd chroots, as it turned out not to
be the problem.  Instead, fix up /dev/ptmx to be a character device node
rather than a symlink to /dev/pts/ptmx, in line with the discussion in
https://bugs.debian.org/817236; I think this is safer than
cherry-picking the fix to debootstrap at this point in a stable release
cycle.

LP: #1844504
2019-09-26 10:32:04 +01:00
Colin Watson
6049019a8b Fix exclusion of makedev from buildd chroots
debootstrap doesn't respect --exclude for "Priority: required" packages,
so we have to purge makedev later.

LP: #1844504
2019-09-24 14:31:40 +01:00
Colin Watson
493035c7d2 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 16:05:27 +00:00
Colin Watson
6c9fc6f3ec Move buildd image building to binary hooks 2019-01-16 12:53:33 +00:00
Colin Watson
aec5f3666a Add a buildd subproject 2019-01-16 12:53:30 +00:00