2080 Commits

Author SHA1 Message Date
Steve Langasek
a2a0ec7d7c releasing package livecd-rootfs version 2.683 2020-08-12 11:35:49 -07:00
Steve Langasek
484c5fa8b1 Changelog entry 2020-08-12 11:35:29 -07:00
Robert C Jennings
b907a03f54
Release package livecd-rootfs version 2.682 2020-08-12 04:53:17 -05:00
Steve Langasek
c39b9b2d54 releasing package livecd-rootfs version 2.681 2020-08-10 14:54:28 -07:00
Steve Langasek
57d487b11d Use the Azure kernel for the HyperV gallery images. 2020-08-10 14:54:21 -07:00
Steve Langasek
fa8398d671 releasing package livecd-rootfs version 2.680 2020-08-04 12:30:37 -07:00
Steve Langasek
e1c745e193 Merge remote-tracking branch 'codyshepherd/bootable-buildd/dist-upgrade/groovy' into ubuntu/master 2020-08-04 12:29:52 -07:00
Robert C Jennings
e3dce0ab17
Handle seeded lxd snap with channel name for ubuntu-cpc:minimized
The seed now specifies the lxd snap in focal as
'lxd=4.0/stable/ubuntu-20.04' which doesn't match the expectations of
the code with looks for lxd as the only snap in the seed for minimized
images.  This patch updates the pattern to accept 'lxd' or 'lxd=*'.
2020-07-29 14:56:26 -05:00
Dimitri John Ledkov
c69c79ea75
releasing package livecd-rootfs version 2.678 2020-07-27 17:38:35 +01:00
David Krauser
83499f1a95 Add mechanism to detect initrdless boot fallback
In v2.672 the default boot behavior of cloud images changed:

- Prior to v2.672, cloud images with the linux-generic kernel attempt
  to boot without an initramfs, would fail, and then retry with an
  initramfs.

- After v2.672, cloud images with the linux-generic kernel boot with
  an initramfs on the first try.

While the behavior is different between the two, they both result in
an instance that has booted with an initramfs. To ensure the changes
in v2.672 do not regress, we need an automated way to check if we are
attempting to boot without an initramfs and failing.

With this change, when we attempt to boot with an initramfs and fail,
initrdless_boot_fallback_triggered is set to non-zero in the grubenv.
This value can be checked after boot by looking in /boot/grub/grubenv
or by using the grub-editenv list command.
2020-07-22 16:41:10 -04:00
Robert C Jennings
84397b5098
Avoid rbind /sys for chroot snap pre-seeding (cgroups fail to unmount)
Builds in LP with the Xenial kernel were happy with the recursive mount of
/sys inside the chroot while performing snap-preseeding but autopkgtests
with the groovy kernel failed.  With the groovy kernel the build was
unable to unmount sys/kernel/slab/*/cgroup/* (Operation not permitted).

This patch mounts /sys and /sys/kernel/security in the chroot in the
same way we've added for binary hooks.  This provides the paths under
/sys needed for snap-preseed while avoiding issues unmounting other
paths.
2020-07-18 16:52:18 -05:00
Dimitri John Ledkov
b22d7dc38c
releasing package livecd-rootfs version 2.676 2020-07-18 01:18:18 +01:00
Dimitri John Ledkov
3694cf3f75
releasing package livecd-rootfs version 2.675 2020-07-17 21:19:57 +01:00
Steve Langasek
2513613002 releasing package livecd-rootfs version 2.674 2020-07-16 15:40:22 -07:00
David Krauser
4c504f6781 Fix broken minimal cloud image boot on amd64
I recently pulled initramfs logic out of the base build hook, and
dropped that into the `replace_kernel` function. Any cloud image that
does not leverage the generic virtual kernel was expected to call
`replace_kernel` to pull in a custom kernel. That function will
disable initramfs boot for images that use a custom kernel.

Minimal cloud images on amd64 use the linux-kvm kernel, but the build
hook does not utilize the `replace_kernel` function. Instead, the
kernel flavor is set in `auto/config`. I pulled that logic out of
`auto/config` and am now calling `replace_kernel` in the build hook.

I also moved a call to generate the package list so that it will pick
up the change to the linux-kvm kernel.
2020-07-16 17:25:46 -04:00
Michael Hudson-Doyle
83ce5e32a8 releasing package livecd-rootfs version 2.673 2020-07-14 14:58:45 +12:00
Michael Hudson-Doyle
f277d1f355 update changelog 2020-07-14 14:57:16 +12:00
Robert C Jennings
a6a7be7c18
Release package livecd-rootfs version 2.672
* Boot with an initramfs by default in cloud images, except when using a non-generic kernel.
   MP: https://code.launchpad.net/~davidkrauser/livecd-rootfs/+git/livecd-rootfs/+merge/386913
2020-07-10 07:48:22 -05:00
Dimitri John Ledkov
2976a99f29 Fix-up seeding snaps with tracks. 2020-07-10 01:56:10 +01:00
Dimitri John Ledkov
c60421ae57 releasing package livecd-rootfs version 2.670 2020-07-09 18:35:03 +01:00
David Krauser
5a4541b01e Add changelog entry for initramfs changes 2020-07-08 17:29:15 -04:00
Dimitri John Ledkov
4f11f40c96 releasing package livecd-rootfs version 2.669 2020-06-25 18:02:57 +01:00
Dimitri John Ledkov
04c2fda36c releasing package livecd-rootfs version 2.668 2020-06-23 15:05:15 +01:00
Steve Langasek
05d219a319 add changelog entry for hyperv changes 2020-06-22 08:46:23 -07:00
Łukasz 'sil2100' Zemczak
40103430d8 Enable overrides of UC20 grade dangerous channels 2020-05-25 19:11:22 +02:00
Philip Roche
60665a434b Revert of initramfs package removal in KVM image (LP: #1875400)
It was reported and confirmed in LP bug #1875400
(https://bugs.launchpad.net/cloud-images/+bug/1875400) that on the public
KVM cloud image there exists a large list of packages marked for auto-removal.

This should never be the case on a released cloud image.

These packages are marked for auto-removal because in the KVM image binary hook
we removed both initramfs-tools and busybox-initramfs packages. Due to package
dependencies this also removed:

busybox-initramfs* cloud-initramfs-copymods* cloud-initramfs-dyn-netconf*
cryptsetup-initramfs* initramfs-tools* initramfs-tools-core* multipath-tools*
overlayroot* sg3-utils-udev* ubuntu-server*

But it did not remove all the packages that the above list depended on.
This resulted in all those packages being marked for auto-removal because they
were not manually installed nor did they have any manually installed packages
that depended on them.

The removal of initramfs-tools and busybox-initramfs was to avoid the
generation of initramfs in images that should boot initramfsless.

This requirement is obsolete now because the initramfsless boot handling
is now handled via setting GRUB_FORCE_PARTUUID in /etc/default/grub.d/40-force-partuuid.cfg.

In test images I have verified that GRUB_FORCE_PARTUUID is set and that
boot speeds have not regressed.

LP: #1875400
2020-05-18 17:08:30 +01:00
Dimitri John Ledkov
9640e60515 releasing package livecd-rootfs version 2.666 2020-05-12 12:29:58 +01:00
Dimitri John Ledkov
3575edfb4d releasing package livecd-rootfs version 2.665 2020-05-01 20:00:13 +01:00
Dimitri John Ledkov
50dc35bb17 ubuntu-image: drop ubuntu-image dep on riscv64, as not installable yet. (LP: #1876359) 2020-05-01 19:56:18 +01:00
Dimitri John Ledkov
e25aec1ca2 ubuntu-image: fix focal+ pi images for armhf to use pi-armhf model name. (LP: #1876358) 2020-05-01 19:52:02 +01:00
Dimitri John Ledkov
e013459a08 Bump only the UC20 pc image to 8GB, and keep Pi images as small as possible. (LP: #1875430) 2020-05-01 19:47:17 +01:00
Robert C Jennings
1f120d7c89
Release 2.664 2020-04-17 11:03:44 -05:00
Pat Viafore
2c70ed158b
Make Ubuntu Vagrant box 40G. (LP: #1580596)
Vagrant images were previously put at 10G, but this was a regression
from Trusty, in which they were 40G.  This made it a tough sell for
users to upgrade if they were using a Ubuntu desktop experience.

This change does not impact disk usage as Vagrant with the virtualbox
provider dynamically allocates space with the VMDK.  On a test system,
the VMDK took up 1.1G of disk space according to df, and after
creating a 2G file in Vagrant, the VMDK grew to 3.1G.

Therefore, users who are running on a system with little free space will
not see adverse effects if they upgrade to a new vagrant image
2020-04-17 10:17:18 -05:00
Dimitri John Ledkov
85e91ddc79 releasing package livecd-rootfs version 2.663 2020-04-17 00:58:42 +01:00
Dimitri John Ledkov
ad64e38c48 Run snap info on the downloaded snap, rather than against the store. First of all snap info doesn't have --channel argument, thus queries the wrong channel, and depening on the cohort, a different snap might be visible too. Thus seed the base of the snap revision we dowanloaded, rather than some random one from the store. 2020-04-17 00:58:32 +01:00
Dimitri John Ledkov
28b531d1ea releasing package livecd-rootfs version 2.662 2020-04-16 23:54:41 +01:00
Dimitri John Ledkov
a21a67ab52 Print subiquity ssh login details on s390x line based consoles. 2020-04-16 23:54:27 +01:00
Dimitri John Ledkov
d5850291ca releasing package livecd-rootfs version 2.661 2020-04-16 01:33:53 +01:00
Dimitri John Ledkov
56ac1865f7 Switch Ubuntu desktop to only hwe-20.04 kernel flavour. 2020-04-16 01:30:31 +01:00
Dimitri John Ledkov
f93108006f releasing package livecd-rootfs version 2.660 2020-04-12 15:42:09 +01:00
Dimitri John Ledkov
a80c68d47b Remove dependencies on qemu-utils and snapd on riscv64, we don't have those yet, but at least we can be on parity with i386 livecd-rootfs already. 2020-04-12 15:42:00 +01:00
Robert C Jennings
903e743c79
Release 2.659 2020-04-09 15:36:27 -05:00
Dimitri John Ledkov
528ec787ed Remove dependencies on qemu-utils and snapd on riscv64, we don't have those yet, but at least we can be on parity with i386 livecd-rootfs already. 2020-04-09 17:05:49 +01:00
Łukasz 'sil2100' Zemczak
50f3d90c9f releasing package livecd-rootfs version 2.658 2020-04-08 10:08:23 +02:00
Łukasz 'sil2100' Zemczak
d2a2ac41a4 Use the raspi KERNEL_FLAVOUR for the raspi images. 2020-04-08 10:06:09 +02:00
Dimitri John Ledkov
c6febea65e releasing package livecd-rootfs version 2.657 2020-04-03 13:03:01 +01:00
Dimitri John Ledkov
0415e42026 server: networkd applies the first sorted matching network file, thus prefix 'all' fallback networks with 'zz-'. 2020-04-03 12:59:05 +01:00
Robert C Jennings
3b6cb7e19e
releasing package livecd-rootfs version 2.656 2020-03-31 09:57:04 -05:00
Dimitri John Ledkov
8f76e539b1 releasing package livecd-rootfs version 2.655 2020-03-16 10:42:39 +00:00
Dimitri John Ledkov
cb574d4cb3 minimized: reinstall packages one by one, instead of all of them together, as otherwise apt fails to immediately configure libc6:amd64 & libgcc-s1. LP: #1867607 2020-03-16 10:42:30 +00:00