2188 Commits

Author SHA1 Message Date
Jason C. McDonald
f75c3254b0 Generate manifest for HyperV desktop images
Manifests are necessary for candidate checking in the
CPC automated workflow for building and publishing
HyperV desktop images.
2021-07-14 06:26:16 -07:00
Ethan Hsieh
f4312118cc functions: download snap packages with correct architecture
Have to set UBUNTU_STORE_ARCH when the architecture of host machine is
different from target machine
2021-07-08 15:16:43 +08:00
Michael Hudson-Doyle
bb0bba1793 address review comments 2021-07-08 11:50:22 +12:00
Michael Hudson-Doyle
2928c3d9cd fix reduce_pass_size behaviour around deleted directories 2021-07-07 19:31:53 +12:00
Michael Hudson-Doyle
fc890b15e7 adjust hooks for move of live-server to layers 2021-07-07 19:31:53 +12:00
Michael Hudson-Doyle
e06046aaa0 move includes around for move of live-server to layers 2021-07-07 19:31:53 +12:00
Michael Hudson-Doyle
f563b310d3 update auto/config for move of live-server to layers 2021-07-07 19:31:53 +12:00
Brian Murray
7a180f8d29 Merge remote-tracking branch 'kajiya/lp-1895104-add-serial-port-to-ovf' into ubuntu/master 2021-07-02 13:34:06 -07:00
Michael Hudson-Doyle
18bf308be0 go back to only running 'lb chroot_archives' on root layers
but still run configure_universe after archive removal, not before
2021-07-01 11:16:11 +12:00
Michael Hudson-Doyle
c4402139a2 go back to only running lb_chroot_hacks on live layers
otherwise each and every layer above a layer with a kernel gets its own
initramfs, which is silly.

Copy/paste the cruft cleaning bit of lb_chroot_hacks to be run on
non-live layers.
2021-07-01 11:16:11 +12:00
Michael Hudson-Doyle
653b925646 attempt to fix obscure failure 2021-07-01 11:16:11 +12:00
Michael Hudson-Doyle
fb8af1fd80 add a way to prevent a layer (and descendants) from being made into a sqashfs
for the live server build, i want to make a layer to install the kernel
into but do not want the layer itself to be published.

the implementation is a bit clunky but it works.
2021-07-01 11:16:10 +12:00
Michael Hudson-Doyle
e4ca30e351 lb_binary_layered: use create_squashfs function to pick up some default excludes 2021-07-01 11:16:10 +12:00
Michael Hudson-Doyle
30cc2f1982 lb_chroot_layered: install archives on each layer
also only call configure_universe after packages are installed.
2021-07-01 11:16:10 +12:00
Michael Hudson-Doyle
3a3558203b run chroot_hacks on each layer in lb_chroot_layered
the comment says this was not done to avoid overlay size inflation but aiui reduce_pass_size
deals with that now
2021-07-01 11:16:10 +12:00
Michael Hudson-Doyle
ce458ba31e run binary hooks on each layer in lb_binary_layered 2021-07-01 11:16:10 +12:00
Michael Hudson-Doyle
75165aeb34 replace call to Echo_warning with plan echo as former is not defined at this point 2021-07-01 11:16:10 +12:00
Brian Murray
89ff3c4f87 Merge branch 'bdmurray/iotg' which adds the ability to create an image for Intel IOT devices. 2021-06-30 15:52:36 -07:00
Brian Murray
ad3e755974 rename iotg to intel-iotg so its slightly more descriptive 2021-06-30 15:43:47 -07:00
Michael Hudson-Doyle
093fbb1404 Merge branch 'more-subiquity-serial-pain' into ubuntu/master 2021-07-01 09:46:58 +12:00
Michael Hudson-Doyle
48c3a11a70 Make sure the process that prints SSH connection info on s390x has its output connected to the console. (LP: #1933523) 2021-07-01 09:31:31 +12:00
Dan Bungert
5b0825a297 Remove custom final_message
At this point all of the custom final_message is now obsolete.
Remove it, letting us instead use the default final_message.
Leave a note about the above.
2021-06-29 16:43:19 -06:00
Dan Bungert
bfce7c126f Remove reference to password for ssh usage
This reference to a temporary password being logged for the installer
user for SSH usage is obsolete.
2021-06-28 17:02:10 -06:00
Michael Hudson-Doyle
9a983305ee Remove assumption in 032-installer-squashfs.binary that all core snaps needed for subiquity are already in the filesystem layer. (LP: #1933352) 2021-06-24 11:49:21 +12:00
Brian Murray
066422894b also support building an ubuntu-cpc amd64 iotg image 2021-06-23 11:09:19 -07:00
Brian Murray
d8b24aaae6 add iotg as a subarch of amd64 w/ image-intel kernel 2021-06-23 09:12:44 -07:00
Chloé Smith
ffab8ceac4
Add a serial port to OVF template (LP: #1895104)
groovy hangs during boot on ESXi when the version is greater than
10. Adding a serial port by default fixes this specific bug - increasing
the HW version will be for another branch.

This is because more investigation is needed into whether it is possible to
increment ddb.virtualHWVersion without disrupting Oracle VirtualBox images.
2021-06-21 21:29:47 +01:00
Michael Hudson-Doyle
e1e992d295 Fix overriding of ExecStart in serial-getty@sclp_line0.service.d/subiquity-serial.conf. 2021-06-19 11:44:04 +12:00
Łukasz 'sil2100' Zemczak
83852ca96b Revert previous change, use ubuntu-server-raspi task name. 2021-06-15 09:45:40 +02:00
Łukasz 'sil2100' Zemczak
d2cfa41ec2 Use the server-raspi task name instead of ubuntu-server-raspi 2021-06-09 11:30:38 +02:00
Sebastien Bacher
48f3682969 Define a new add_snap and use it for canary
We can install the new ubuntu-desktop-installer on the iso this way
2021-06-08 15:20:41 +02:00
Sebastien Bacher
740c960575 The u-boot-tools package was typoed
Should fix the ubuntu-preinstalled impish build
2021-05-19 16:05:15 +02:00
Michael Hudson-Doyle
5c3bb6896c Remove all references to the "base" project, which has not been built since 16.04 release day. 2021-05-13 05:24:48 +12:00
Steve Langasek
c7b751e401 Drop code for the 'ubuntu-core' project when not using image_format: ubuntu-image, as this is obsolete and not used to build core* snaps in recent series. 2021-05-11 17:12:20 -07:00
Jean-Baptiste Lallement
0c3bbd7d99 Use -updates for germinate
Some packages are in universe at release time then promoted to
the main pocket in -updates during the release lifecycle.
These packages should be considered by germinate when the root fs is
built (LP: #1921862)

Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-05-11 15:05:28 +02:00
Michael Hudson-Doyle
7cd7f1e0bf Merge branch 'ubuntu/master' into live-server-serial-argh 2021-05-06 10:28:28 +12:00
Dimitri John Ledkov
f58b0693f6
Merge branch 'raspi-server-seed' of git+ssh://git.launchpad.net/livecd-rootfs into ubuntu/master 2021-05-05 12:01:37 +01:00
Dimitri John Ledkov
9596134d8a
Merge branch 'remove-1893818-workaround' of git+ssh://git.launchpad.net/~mwhudson/livecd-rootfs/+git/livecd-rootfs into ubuntu/master 2021-05-05 11:42:22 +01:00
Michael Hudson-Doyle
c64c81d7fe remove the workaround for bug #1893818
subiquity now contains a version of curtin that can cope with the
partition nodes for a multipathed disk going away
2021-05-05 13:58:56 +12:00
Dimitri John Ledkov
dd79c5c75d
buildd: Re-enable merged /usr by default, as it is now required
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
2021-04-30 17:54:00 +01:00
Dimitri John Ledkov
dc2a472871
magic-proxy: replace http.client with urllib calls
Initialize passwords from sources.list.
Use urllib everywhere.
This way authentication is added to all the required requests.
And incoming headers, are passed to the outgoing requests.
And all the response headers, are passed to the original client.
And all the TCP & HTTP errors are passed back to the client.
Thus should avoiding hanging requests upon failure.
Also rewrite the URI when requesting things.
This allows to use private-ppa.buildd outside of launchpad.

Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
2021-04-30 17:50:28 +01:00
Dimitri John Ledkov
1cd8fe14b7
Change iptables calls, to query rules and quickly check that connectivity works after transparent proxy has been installed. LP: #1917920 2021-04-30 17:48:09 +01:00
Dimitri John Ledkov
20f76e7cf8
Merge branch 'preinstalled' of git+ssh://git.launchpad.net/~xnox/livecd-rootfs into ubuntu/master 2021-04-30 17:46:20 +01:00
Dimitri John Ledkov
143e72abdc
Merge branch 'fix-grub-images' of git+ssh://git.launchpad.net/~xnox/livecd-rootfs into ubuntu/master 2021-04-30 17:39:45 +01:00
Michael Hudson-Doyle
749bdeac44 Merge branch 'ubuntu/master' into new-ubuntu-oci 2021-04-30 11:46:16 +12:00
Dimitri John Ledkov
d5a8116428
Add support for generic preinstalled images. LP: #1923832 2021-04-26 11:04:37 +01:00
Dimitri John Ledkov
41fd537bc2
999-cpc-fixes: enable more code on grub2 armhf & arm64
armhf & arm64 images use grub. And despite disk-image &
disk-image-uefi installing all the grubs, some of the configuration is
done in the 999-cpc-fixes. Specifically removal of "quiet splash" is
done there, but not active on armhf & arm64. This results in arm
images to boot with "quiet splash".

Enable running the later portions of 999-cpc-fixes on armhf & arm64.

Drop duplicate call to update-grub, as update-grub2 is simply a
symlink to update-grub.

Add a guard around the call to reconfigure grub-pc, to only do that
when it is installed.

This makes armhf & arm64 uefi images consistent with amd64 uefi
images.

LP: #1925780
2021-04-23 12:47:18 +01:00
Thomas Bechtold
a81972a58b
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
2021-04-22 08:48:00 +02:00
Thomas Bechtold
ac4a95b931
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
2021-04-22 07:39:15 +02:00
Michael Hudson-Doyle
c1cb61a8f6 just plain mask getty@tty1, ExecStart is a list 2021-04-21 14:54:03 +12:00