3001 Commits

Author SHA1 Message Date
Brian Murray
8254a9fe93 releasing package livecd-rootfs version 2.719.3 2021-10-21 11:18:09 -07:00
Brian Murray
2bd98fe849 magic-proxy: Replace http.client with urllib calls. live-build/auto/build: change iptables calls to query rules and quickly check that connectivity works after transparent proxy has been installed. (LP: #1917920)
* magic-proxy: Replace http.client with urllib calls. live-build/auto/build:
  change iptables calls to query rules and quickly check that connectivity
  works after transparent proxy has been installed. (LP: #1917920)
* magic-proxy: fix TypeError when trying to call get_uri() (LP: #1944906)
2021-10-21 11:17:15 -07:00
Thomas Bechtold
c4c783f8b0 magic-proxy: fix TypeError when trying to call get_uri() LP:#1944906
Currently the uri that is passed into urllib.parse.urlparse() is not
prefixed with "http(s)://" which leads urlparse() to return a wrong
scheme/netloc/path. Currently it looks like:

ParseResult(scheme='', netloc='',
  path='de.archive.ubuntu.com/ubuntu/dists/impish-backports/InRelease'
 , params='', query='', fragment='')

That's wrong. The path should look like
'ubuntu/dists/impish-backports/InRelease'.
Prefixing the 'host' header with 'http://' in case it's not there does
fix the problem.

This fixes:

Traceback (most recent call last):
  File "/usr/lib/python3.9/socketserver.py", line 683, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python3.9/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.9/socketserver.py", line 747, in __init__
    self.handle()
  File "/usr/lib/python3.9/http/server.py", line 427, in handle
    self.handle_one_request()
  File "/usr/lib/python3.9/http/server.py", line 415, in handle_one_request
    method()
  File "/home/tom/devel/livecd-rootfs/./magic-proxy", line 787, in do_GET
  File "/home/tom/devel/livecd-rootfs/./magic-proxy", line 838, in __get_request
  File "/home/tom/devel/livecd-rootfs/./magic-proxy", line 84, in get_uri
TypeError: can only concatenate str (not "NoneType") to str

(cherry picked from commit 3559153c7d91dfb25e6aaf1d18152e945411d503)
2021-09-28 12:59:37 +02:00
Dimitri John Ledkov
838e2a6f64 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>
(cherry picked from commit dc2a472871907bbed3ab89d2a46d924ece80d514)
2021-09-28 12:59:13 +02:00
Dimitri John Ledkov
63184732f8 Change iptables calls, to query rules and quickly check that connectivity works after transparent proxy has been installed. LP: #1917920
(cherry picked from commit 1cd8fe14b70e98220c519d679217737672ee9019)
2021-09-28 12:14:47 +02:00
Michael Hudson-Doyle
f830e5c02a releasing package livecd-rootfs version 2.719.2 2.719.2 2021-09-15 23:38:12 +12:00
Michael Hudson-Doyle
25073336df adjust changelog 2021-09-15 23:37:52 +12:00
Jason C. McDonald
4a994fb02e Generate manifest for HyperV desktop images
Manifests are necessary for candidate checking in the
CPC automated workflow for building and publishing
HyperV desktop images. (#1940136)
2021-08-20 09:15:03 -07:00
Michael Hudson-Doyle
9d03006f87 releasing package livecd-rootfs version 2.719.1 2.719.1 2021-05-11 11:35:11 +12:00
Michael Hudson-Doyle
6270e4d7ad Merge branch 'sru-hirsute-lp1926732' into ubuntu/hirsute 2021-05-11 11:34:52 +12:00
Michael Hudson-Doyle
57f126ae4d fix version number for initial SRU 2021-05-11 11:34:36 +12:00
Thomas Bechtold
dc0990939e
add debian/changelog entry 2021-04-30 13:24:00 +02:00
Thomas Bechtold
77d998829a
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 13:13:34 +02:00
Thomas Bechtold
3ad6996779
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 13:13:18 +02:00
Łukasz 'sil2100' Zemczak
05023332bc releasing package livecd-rootfs version 2.719 2.719 2021-04-19 23:57:39 +02:00
Łukasz 'sil2100' Zemczak
37e3826d69 Changelog 2021-04-19 22:57:59 +02:00
Łukasz 'sil2100' Zemczak
1d537bf78d Temporarily hack in ubuntu-raspi-settings for raspi images (we should be using seeds tho). 2021-04-19 21:49:43 +02:00
Michael Hudson-Doyle
fbdf8bf063 releasing package livecd-rootfs version 2.718 2.718 2021-03-30 10:57:49 +13:00
Michael Hudson-Doyle
e28938b482 Do not have cloud-init set the installer user's password to something random during boot, as cloud-init now hides the value it was set to much better. Instead, subiquity will reset the password itself. 2021-03-24 14:09:12 +13:00
Dimitri John Ledkov
f700f07d59
releasing package livecd-rootfs version 2.717 2.717 2021-03-11 17:08:58 +00:00
Dimitri John Ledkov
4428dbbf8f
riscv64: generalise slightly how preinstalled server images are built, to allow using subarch to pick u-boot binaries to install. 2021-03-11 17:08:15 +00:00
Michael Hudson-Doyle
4514901328 releasing package livecd-rootfs version 2.716 2.716 2021-03-11 10:50:11 +13:00
Michael Hudson-Doyle
d5bc59f2fb Use the correct config keys in suppressing cloud-init output during boot of live server ISO. 2021-03-10 12:03:56 +13:00
Robert C Jennings
49c01ef0a0
releasing package livecd-rootfs version 2.715 2.715 2021-03-02 11:59:59 -06:00
Gauthier Jolly
76330897dc ubuntu-cpc: make /etc/fstab consistent with other ubuntu images
Modify the mount options in fstab to make the Cloud images consistent
with the default we have elsewhere.

LP: #1902103
LP: #1881006
2021-03-02 14:21:36 +00:00
Michael Hudson-Doyle
8725445e01 releasing package livecd-rootfs version 2.714 2.714 2021-02-26 09:58:07 +13:00
Michael Hudson-Doyle
974bb5bfd1 Merge branch 'quieter-live-server-boot' into ubuntu/master 2021-02-25 15:26:23 +13:00
Łukasz 'sil2100' Zemczak
bf4be0a585 releasing package livecd-rootfs version 2.713 2.713 2021-02-24 12:58:35 +01:00
Łukasz 'sil2100' Zemczak
1b0212a76c Use the full name of the 'boot' flag in parted calls 2021-02-24 12:58:08 +01:00
Robert C Jennings
81fe9de42f
releasing package livecd-rootfs version 2.712 2.712 2021-02-23 14:33:04 -06:00
Michael Hudson-Doyle
8ab15a145d set new cloud-init option to suppress final bit of output during boot 2021-02-23 11:06:19 +13:00
Michael Hudson-Doyle
52c8985454 Suppress cloud-init output during boot of live server ISO. 2021-02-18 13:08:09 +13:00
Cody Shepherd
265ef9797b
Update changelog 2021-02-12 13:59:51 -08:00
Cody Shepherd
4acd2e3085
Install lxd-agent-loader in bootable buildd image to improve user
experience with lxd vms
2021-02-12 13:24:54 -08:00
Cody Shepherd
5de661e137
Set grub configs to hide boot menu and enable output on ttyS0 2021-02-10 10:11:22 -08:00
Dimitri John Ledkov
87454604ec
releasing package livecd-rootfs version 2.711 2.711 2021-02-05 12:48:57 +00:00
Dimitri John Ledkov
82aca610dc
Merge remote-tracking branch 'xnox/fix-misisng-systemd-detect-virt' into ubuntu/master 2021-02-05 12:48:18 +00:00
Dimitri John Ledkov
72f2647eb0
Merge remote-tracking branch 'xnox/fsck-all-the-things' into ubuntu/master 2021-02-05 12:47:53 +00:00
Dimitri John Ledkov
096a00f404
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
2021-02-03 14:45:54 +00:00
Dimitri John Ledkov
33b7272a23
Perform fsck on all rootfs.
LP: #1912835
2021-02-01 14:45:42 +00:00
Dimitri John Ledkov
d699d8db19
releasing package livecd-rootfs version 2.710 2.710 2021-01-28 10:43:37 +00:00
Dimitri John Ledkov
0e2208121e
Merge branch 'fix-esp' of git+ssh://git.launchpad.net/~xnox/livecd-rootfs into ubuntu/master 2021-01-28 10:43:13 +00:00
Dimitri John Ledkov
53b28d5f58
esp: perform fsck.
LP: #1912835
2021-01-22 19:16:47 +00:00
Dimitri John Ledkov
7c760864fd
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
2021-01-22 19:09:25 +00:00
Iain Lane
126ed87783
Update & finalise changelog 2.709 2021-01-04 10:38:25 +00:00
Iain Lane
42409e7068
auto/config: Install pi-bluetooth for raspi images
These are in restricted, and so cannot be depended on by the
metapackages which are in main.
2021-01-04 10:25:09 +00:00
Sebastien Bacher
1a979b1528 Desktop is using the hwe kernel, do the same on canary 2020-12-15 16:51:32 +01:00
Dimitri John Ledkov
890f24c0e1
releasing package livecd-rootfs version 2.708 2.708 2020-12-08 09:15:57 +00:00
Dimitri John Ledkov
6746d9fbd9
disk-image-uefi: fix riscv64 subarch user-data. 2020-12-08 09:15:09 +00:00
Dimitri John Ledkov
e0095d8c47
releasing package livecd-rootfs version 2.707 2.707 2020-12-05 15:18:50 +00:00