livecd-rootfs:desktop-preinstalled-fixes

Last commit made on 2021-10-28
Get this branch:
git clone -b desktop-preinstalled-fixes https://git.launchpad.net/livecd-rootfs
Members of Ubuntu Core Development Team can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
desktop-preinstalled-fixes
Repository:
lp:livecd-rootfs

Recent commits

f62113f... by Łukasz Zemczak

Changelog entry.

498b83f... by Łukasz Zemczak

Add the 099-ubuntu-image-customization.chroot hook for desktop-preinstalled similarly to what we have in groovy+ for the pi desktop, but improved for amd64 platforms. We use it to generate a valid grub.cfg on the rootfs (similar to ubuntu-cpc)

cfe9c86... by Brian Murray

fix release in the changelog

becc507... by Brian Murray

releasing package livecd-rootfs version 2.664.30

1ed399c... by Brian Murray

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)

da3c71a... by Thomas Bechtold

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)

efd0641... by Dimitri John Ledkov

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 <email address hidden>
(cherry picked from commit dc2a472871907bbed3ab89d2a46d924ece80d514)

3d65dbb... by Dimitri John Ledkov

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)

8cb5a7d... by Michael Hudson-Doyle

releasing package livecd-rootfs version 2.664.29

1cef501... by Michael Hudson-Doyle

adjust changelog