2346 Commits

Author SHA1 Message Date
Cody Shepherd
64ca75261f
Remove explicit install of grub-efi-* package as it is not necessary,
and potentially overexplicit
2020-07-13 09:08:33 -07:00
Cody Shepherd
75a1408d0e
Perform a dist-upgrade prior to installing packages for bootable-buildd
image in order to pull in package updates
2020-07-08 13:59:04 -07:00
Robert C Jennings
eb708c9ab6
Releasing package livecd-rootfs version 2.525.43 2.525.43 2020-03-30 09:40:48 -05:00
Robert C Jennings
6430ba477e
Merge buildd-bootable/bionic into ubuntu/bionic
Backports to enable building of bootable buildd images LP: #1863024

MP: https://code.launchpad.net/~davidkrauser/livecd-rootfs/+git/livecd-rootfs/+merge/380908
2020-03-30 09:37:13 -05:00
Robert C Jennings
bb6c17545f
Releasing package livecd-rootfs version 2.525.42 2.525.42 2020-03-27 14:32:46 -05:00
Robert C Jennings
a00ac033d9
Merge buildd-bootable/bionic into ubuntu/bionic
Backports to enable building of bootable buildd images LP: #1863024

MP: https://code.launchpad.net/~davidkrauser/livecd-rootfs/+git/livecd-rootfs/+merge/380908
2020-03-27 14:27:30 -05:00
David Krauser
77cb232e8b Safely set /etc/resolv.conf to an empty file in buildd images
In bionic 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-25 18:24:27 -04:00
David Krauser
f60c01ef0b Don't install live packages in buildd images. 2020-03-25 18:23:10 -04:00
Cody Shepherd
9ad6d93a2f Updating changelong for bootable buildd image changes. LP: #1863024 2020-03-23 13:27:19 -04:00
Cody Shepherd
127ed59fb1 Only build bootable buildd images for amd64. 2020-03-23 13:27:19 -04:00
Cody Shepherd
68e8afd528 Properly setup the chroot before using the network in buildd hook. 2020-03-23 13:27:19 -04:00
Cody Shepherd
f5c65024a3 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-03-23 13:27:19 -04:00
Cody Shepherd
d74b68f9aa Include empty resolv.conf only in buildd lxd tarballs. 2020-03-23 13:27:19 -04:00
Cody Shepherd
075d1e85bf Add hooks to build bootable buildd images
Only install policyrd-script-zg2 in lxd tarball
2020-03-23 13:27:19 -04:00
Cody Shepherd
0cd622e863 Enable building buildd artifacts with an ext4 image target 2020-03-23 13:27:09 -04:00
Cody Shepherd
7d5a52d8f2 Updating changelong for bootable buildd image changes. LP: #1863024 2020-03-19 13:44:49 -04:00
Cody Shepherd
15a0b598d1 Only build bootable buildd images for amd64. 2020-03-19 13:43:33 -04:00
Cody Shepherd
a668e09ac4 Properly setup the chroot before using the network in buildd hook. 2020-03-19 13:43:33 -04:00
Cody Shepherd
6fed316068 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-03-19 13:43:33 -04:00
Cody Shepherd
b628d90ef8 Include empty resolv.conf only in buildd lxd tarballs. 2020-03-19 13:43:33 -04:00
Cody Shepherd
58962d67d0 Add hooks to build bootable buildd images
Only install policyrd-script-zg2 in lxd tarball
2020-03-19 13:43:33 -04:00
Cody Shepherd
686425a634 Enable building buildd artifacts with an ext4 image target 2020-03-19 13:43:33 -04:00
Steve Langasek
6b8bcf00ad changelog fixup 2.525.41 2020-02-28 09:18:14 -08:00
Robert C Jennings
15c419eafb
Fix core_snap variable scope issue
The prior change to pre-seed the correct base added a case to handle
installation of the core snap.  When that was added it created a case
where the $core_snap variable would not be defined when we reach the
end of the _snap_preseed function and evaluate if $core_snap is defined
by empty.  Previous if the snap to preseed was core or core18 then
$core_snap would be "" so this patch addresses that by ensuring the
variable exists and is empty by default.
2020-02-28 08:36:56 -06:00
Steve Langasek
b8865cb17d releasing package livecd-rootfs version 2.525.41 2020-02-27 14:42:34 -08:00
Robert C Jennings
632ab2b982
Address snap base regression after snap-tool removal
With the removal of snap-tool failures are seen in image builds that do
not have the 'core' snap included by the seed.  This is the case for the
minimized subproject of the ubuntu-cpc project where lxd/core is removed.
In that subproject, any binary hook which adds a snap that is based
on 'core' will not add 'core' and fail 'snap debug validate-seed'.
snap-tool included the following logic in the 'snap-tool info' when
determining snap bases:

    # Have "base" initialized to something meaningful.
    if self.is_core_snap():
        snap_data["snap"]["base"] = ""
    elif snap_data["snap"].get("base") is None:
        snap_data["snap"]["base"] = "core"

The snap store does not return a base if the base is core which makes
this necessary.  This patch looks for the base in 'snap info' output
and if none is found (and the snap is not snapd or core) it assumes the
base is 'core' and installs it.  This restores the behavior lost in the
migration from snap-tool to snap cli.
2020-02-27 16:40:23 -06:00
Robert C Jennings
ec954a80b9
Use snap cli rather than custom snap-tool (LP: #1864252)
snap-tool was added to support a deprecate cohort-key feature of the
snap store.  Recent changes in snap assertions have added additional
fields which snap-tool is not retrieving.  This resulted in snap install
failures on first boot.

This patch removes snap-tool and returns to using the snap cli.
This ensures snap downloads will function without odd incompatibilities.
2020-02-27 16:39:06 -06:00
Steve Langasek
d516e68807 Stop building per-pi-flavor images and only build a pi generic image for core18. (LP: #1861520) 2.525.40 2020-02-27 12:17:28 -08:00
Łukasz 'sil2100' Zemczak
e2dd084fe0 releasing package livecd-rootfs version 2.525.39 2.525.39 2020-01-24 18:56:19 +01:00
Łukasz 'sil2100' Zemczak
fcaa6d447c Ensure seed part. is mounted; wait for getty 2020-01-24 18:55:34 +01:00
Łukasz 'sil2100' Zemczak
ddb9c7f127 releasing package livecd-rootfs version 2.525.38 2.525.38 2020-01-22 10:23:42 +01:00
Łukasz 'sil2100' Zemczak
efd428856b Switch raspi2-hwe-18.04-edge to raspi2-hwe-18.04. 2020-01-22 09:29:37 +01:00
Łukasz 'sil2100' Zemczak
89bcec68c5 Support generating a .disk/info file via ubuntu-image. 2020-01-22 09:20:21 +01:00
Łukasz 'sil2100' Zemczak
b47acc9456 Actually, modify 2.525.37 and re-release since the kernel flavour name was wrong. 2020-01-14 10:29:23 +01:00
Łukasz 'sil2100' Zemczak
ffc33b6904 releasing package livecd-rootfs version 2.525.37 2.525.37 2020-01-13 16:14:27 +01:00
Łukasz 'sil2100' Zemczak
38cfb82a84 Use the 5.3 kernel for the bionic raspi3 images. 2020-01-13 16:14:12 +01:00
Michael Hudson-Doyle
2f29a62ec5 releasing package livecd-rootfs version 2.525.36 2.525.36 2019-12-19 22:43:39 +13:00
Michael Hudson-Doyle
d381420065 Preserve apt preferences created by any package we install (i.e. ubuntu-advantage-tools) against live-build's attempt to delete them. (LP: #1855354) 2019-12-19 15:45:17 +13:00
Łukasz 'sil2100' Zemczak
e0c02f2c28 releasing package livecd-rootfs version 2.525.35 2.525.35 2019-11-12 21:21:17 +01:00
Łukasz 'sil2100' Zemczak
42f2ccd60a Enable core18 builds 2019-11-12 21:20:59 +01:00
Łukasz 'sil2100' Zemczak
d4ea6dff58 releasing package livecd-rootfs version 2.525.34 2.525.34 2019-11-12 21:17:35 +01:00
Łukasz 'sil2100' Zemczak
f212eb9a73 Merge branch 'hyperv-bionic' of git+ssh://git.launchpad.net/~davidkrauser/livecd-rootfs/+git/livecd-rootfs into ubuntu/bionic 2019-11-12 21:17:15 +01:00
Łukasz 'sil2100' Zemczak
d614407bd4 releasing package livecd-rootfs version 2.525.33 2.525.33 2019-10-30 18:12:48 +01:00
Łukasz 'sil2100' Zemczak
98f52a0f7b Support amd64+kassel in bionic 2019-10-30 18:12:18 +01:00
Łukasz 'sil2100' Zemczak
6e35342592 releasing package livecd-rootfs version 2.525.32 2.525.32 2019-10-25 15:24:42 +02:00
Łukasz 'sil2100' Zemczak
f38122e070 Support EXTRA_SNAPS 2019-10-23 16:02:36 +02:00
Łukasz 'sil2100' Zemczak
ce1b1cf815 Backport the 999-ubuntu-image-customization changes, add a delta on top to still support the old legacy raspi2 images. 2019-10-23 12:41:40 +02:00
Łukasz 'sil2100' Zemczak
f8dd8502ce Fix typo in auto/build regarding core builds. 2019-10-22 17:17:38 +02:00
David Krauser
5604820cc1 Updating changelog for hyperv gallery images. 2019-10-09 16:05:14 -04:00
David Krauser
78aa0844cf Fixing broken binary hook symlinks for hyperv gallery image builds. 2019-10-09 16:05:14 -04:00