2879 Commits

Author SHA1 Message Date
Brian Murray
6fac135f23 fix an extraneous || 2021-07-28 14:34:54 -07:00
Brian Murray
4b3f3c52dc add missing semicolons 2021-07-28 13:48:09 -07:00
Brian Murray
69afe8fd5d Add support for creating images (ubuntu-core and classic) with a kernel optimized for Intel IoT devices. (LP: #1938338) 2021-07-28 13:37:31 -07:00
Łukasz 'sil2100' Zemczak
d95cb8b344 releasing package livecd-rootfs version 2.664.24 2.664.24 2021-06-18 10:11:33 +02:00
Łukasz 'sil2100' Zemczak
44d443b63f Fix typo in changelog. 2021-06-16 09:52:02 +02:00
Łukasz 'sil2100' Zemczak
1a4312bea7 Add changelog. 2021-06-15 13:55:19 +02:00
Dimitri John Ledkov
acb4de3be0 Cherry-pick 4428dbbf8f998c138093e3208bc7a0e7034714be
riscv64: generalise slightly how preinstalled server images are built, to allow using subarch to pick u-boot binaries to install.
2021-06-15 13:30:29 +02:00
Jean-Baptiste Lallement
f91d09f6b6 releasing package livecd-rootfs version 2.664.23 2.664.23 2021-05-21 16:56:50 +02:00
Jean-Baptiste Lallement
fee8ba22f4 Added hook for AD support
Adding dependencies for Active Directory support to workaround LP: #1921862

Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-05-21 16:56:38 +02:00
Steve Langasek
26cadb7cfe releasing package livecd-rootfs version 2.664.22 2.664.22 2021-05-20 17:07:13 -07:00
Steve Langasek
b558c86764 Merge remote-tracking branch 'codyshepherd/buildd/hide-grub-menu-ff' into ubuntu/focal 2021-05-20 17:06:44 -07:00
Michael Hudson-Doyle
134169ec94 releasing package livecd-rootfs version 2.664.21 2.664.21 2021-05-11 11:38:29 +12:00
Michael Hudson-Doyle
511d78a4fd Merge remote-tracking branch 'toabctl/sru-focal-lp1926732' into ubuntu/focal 2021-05-11 11:38:12 +12:00
Thomas Bechtold
790219907f
add debian/changelog entry 2021-04-30 14:04:19 +02:00
Thomas Bechtold
99add26dc3
add configure_oci function and use it in ubuntu-oci
With that, the Dockerfile modifications[0] currently done externally
are done now here. That means that the created rootfs tarball can be
directly used within a Dockerfile to create a container from scratch:

FROM scratch
ADD livecd.ubuntu-oci.rootfs.tar.gz /
CMD ["/bin/bash"]

[0]
https://github.com/tianon/docker-brew-ubuntu-core/blob/master/update.sh

(cherry picked from commit a81972a58b004897bf3e5c14ff371bc2f6b5e4b8)
2021-04-30 14:02:59 +02:00
Thomas Bechtold
9e15d88f4c
Add new ubuntu-oci project
This is a copy of the ubuntu-base project.
Currently ubuntu-base is used as a base for the docker/OCI container
images. The rootfs tarball that is created with ubuntu-base is
published under [0]. That tarball is used in the FROM statement of the
Dockerfile as base and then a couple of modifications are done inside
of the Dockerfile[1].
The ubuntu-oci project will include the changes that are currently
done in the Dockerfile. With that:

1) a Dockerfile using that tarball will be just a 2 line thing:

   FROM scratch
   ADD ubuntu-hirsute-core-cloudimg-amd64-root.tar.gz /
   CMD ["/bin/bash"]

2) Ubuntu has the full control about the build process of the
docker/OCI container. No external sources (like [1]) need to be
modified anymore.
3) Ubuntu can publish containers without depending on the official
dockerhub containers[2]. Currently the containers for the AWS ECR
registry[3] use as a base[4] the official dockerhub containers. That's
no longer needed because a container just needs a Dockerfile described
in 1)

When the ubuntu-oci project has the modifications from [1] included,
we'll also update [1] to use the ubuntu-oci rootfs tarball as a base
and drop the modifications done at [1].

Note: Creating a new ubuntu-oci project instead of using ubuntu-base
will make sure that we don't break users who are currently using
ubuntu-base rootfs tarballs for doing their own thing.

[0] https://partner-images.canonical.com/core/
[1]
https://github.com/tianon/docker-brew-ubuntu-core/blob/master/update.sh
[2] https://hub.docker.com/_/ubuntu
[3] https://gallery.ecr.aws/ubuntu/ubuntu
[4]
https://launchpad.net/~ubuntu-docker-images/ubuntu-docker-images/+oci/ubuntu/+recipe/ubuntu-20.04

(cherry picked from commit ac4a95b9314cf1f8ce01f42016c271c0a6078372)
2021-04-30 14:02:59 +02:00
Robert C Jennings
3a78492327
releasing package livecd-rootfs version 2.664.20 2.664.20 2021-04-10 05:20:52 -05:00
Robert C Jennings
1a43fa5937
Merge remote-tracking branch 'gjolly/consistent_fstab-focal' into ubuntu/focal 2021-04-10 05:19:52 -05:00
Robert C Jennings
29c00d23a9
Fix release hirsute to focal 2021-03-22 11:04:37 -05:00
Robert C Jennings
9e58629c89
releasing package livecd-rootfs version 2.664.19 2.664.19 2021-03-22 11:00:47 -05:00
David Krauser
597d678e17
Fix broken minimal cloud image boot on amd64 (LP: #1920043)
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.
2021-03-22 10:26:06 -05:00
Gauthier Jolly
330720f686
ubuntu-cpc: secure esp mountpoint (LP: #1881006)
Change mount option for ubuntu-cpc images from "defaults" to
"umask=0077". ESP partitions might contain sensitive data and
non-root users shouldn't have read access on it.
2021-03-18 10:10:43 +00:00
Cody Shepherd
7e0f6453f7
Update changelog 2021-03-01 09:05:14 -08:00
Cody Shepherd
69bb7fc4a1
Install lxd-agent-loader in bootable buildd image to improve user
experience with lxd vms
2021-03-01 09:04:26 -08:00
Cody Shepherd
61a422f553
Set grub configs to hide boot menu and enable output on ttyS0 2021-03-01 09:04:26 -08:00
Robert C Jennings
82f69612c7
releasing package livecd-rootfs version 2.664.18 2.664.18 2021-02-23 14:45:48 -06:00
Pat Viafore
0775862a25
Add mechanism to detect initrdless boot fallback
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.

Addresses LP: #1870189
2021-02-18 15:47:20 -06:00
David Krauser
4030c8bc5a
Drop hack in kvm image that forces initramfs-less boot
Since the kvm image now boots without an initramfs by default, we
don't need to force it in the build hook.
2021-02-18 15:40:46 -06:00
David Krauser
c81f4ca2e3
Boot without an initramfs by default if running a custom kernel
Initramfs-less boot, which is a boot optimization, should only be
applied where we know it could work for users and provide an improved
boot boot experience; images with custom kernels are candidates for
that.
2021-02-18 15:40:45 -06:00
David Krauser
6a37833973
Boot with an initramfs by default in cloud images
Generic cloud images with the linux-generic kernel are not able to
boot without an initramfs. Previously, these images attempted to boot
without an initramfs, would fail, and then retry with an initramfs.
This slows the boot and is confusing behavior.
2021-02-18 15:40:42 -06:00
Dimitri John Ledkov
d059742988
releasing package livecd-rootfs version 2.664.17 2.664.17 2021-02-09 00:52:25 +00:00
Dimitri John Ledkov
6b32cd5fb1
functions: stop removing systemd-detect-virt unconditionally in undivert_grub
One can call divert_grub; replace_kernel; undivert_grub. And
replace_kernel will call into force_boot_without_initramfs, which
under certain conditions can call divert_grub &
undivert_grub. Resulting in undivert_grub called twice in a row.

When undivert_grub is called twice in a row it wipes
systemd-detect-virt binary from disk, as the rm call is unguarded to
check that there is something to divert if systemd package is
installed. And if the systemd package is not installed, it does not
check that systemd-detect-virt file is in-fact what divert_grub has
created.

Add a guard to check that systemd-detect-virt is the placeholder one,
before removing it.

LP: #1902260
(cherry picked from commit 096a00f40459187719840ccad99e86c7ade2ec12)
2021-02-09 00:51:00 +00:00
Dimitri John Ledkov
e1bea4d00e
Perform fsck on all rootfs.
LP: #1912835
(cherry picked from commit 33b7272a2331279b4c7aa8de73ed8a9069d0bd39)
2021-02-09 00:50:52 +00:00
Dimitri John Ledkov
5c802316f2
esp: perform fsck.
LP: #1912835
(cherry picked from commit 53b28d5f58284657ee8efd08a633d557af1fcd97)
2021-02-09 00:50:46 +00:00
Dimitri John Ledkov
2646b9c459
esp: install grub in ubuntu bootloader id path, instead of removable.
Do not use removable uefi bootloader path in the cloud-images by
default, as that prevents upgrades of the bootloader.

LP: #1912830
(cherry picked from commit 7c760864fdcb278ca37396f06f5e3f297428d63d)
2021-02-09 00:50:38 +00:00
Dimitri John Ledkov
cc13644b6a
Merge branch 'dk/focal-buildd-unpack-kernel-initrd' of git+ssh://git.launchpad.net/~davidkrauser/livecd-rootfs/+git/livecd-rootfs into ubuntu/focal
(Cherry-pick commit 065c82314464fa78337d5122e1d4826a7d6edbb0)
2021-02-09 00:50:00 +00:00
Robert C Jennings
94778745f4
releasing package livecd-rootfs version 2.664.16 2.664.16 2021-02-05 15:06:13 -06:00
Cody Shepherd
d1c83f0ab4
Update changelog 2021-02-03 07:46:17 -08:00
Cody Shepherd
ff91fd7da4
Omit file type exensions in manifest names 2021-02-03 07:27:40 -08:00
Cody Shepherd
7af37be61a
Create manifests for buildd tarballs 2021-02-03 07:27:30 -08:00
Łukasz 'sil2100' Zemczak
47bf29b619 releasing package livecd-rootfs version 2.664.15 2.664.15 2021-02-02 11:51:38 +01:00
Łukasz 'sil2100' Zemczak
befad641dc Support the lowlatency-hwe-* when handling kernel flavours. 2021-02-02 11:51:21 +01:00
Łukasz 'sil2100' Zemczak
3b0ebedf8a releasing package livecd-rootfs version 2.664.14 2.664.14 2021-02-01 22:34:05 +01:00
Łukasz 'sil2100' Zemczak
e22a16b068 Enable the HWE kernel for all flavours. 2021-02-01 22:25:00 +01:00
Łukasz 'sil2100' Zemczak
02c011ab8e releasing package livecd-rootfs version 2.664.13 2.664.13 2021-01-26 15:53:32 +01:00
Łukasz 'sil2100' Zemczak
eaf9ca8b17 Changelog entry. 2021-01-26 15:50:44 +01:00
Łukasz 'sil2100' Zemczak
e88f07a6e8 enable hwe variant 2021-01-26 15:46:11 +01:00
Dimitri John Ledkov
3e56c4c82e
releasing package livecd-rootfs version 2.664.12 2.664.12 2021-01-15 17:22:31 +00:00
Dimitri John Ledkov
4be305fedc
chroot: disable amd64 codepath on riscv64 2021-01-15 17:22:01 +00:00
Dimitri John Ledkov
bf0b1401ff
releasing package livecd-rootfs version 2.664.11 2.664.11 2021-01-15 17:08:41 +00:00