lp:~mitchellaugustin/curtin/+git/curtin-1

Get this repository:
git clone https://git.qastaging.paddev.net/~mitchellaugustin/curtin/+git/curtin-1
Only Mitchell Augustin can upload to this repository. If you are Mitchell Augustin please log in for upload directions.

Branches

Name Last Modified Last Commit
missing-ischroot-mitigation 2024-03-04 19:06:31 UTC
Check to ensure ischroot exists before ChrootableTarget bind mount

Author: Mitchell Augustin
Author Date: 2024-03-04 17:20:05 UTC

Check to ensure ischroot exists before ChrootableTarget bind mount

Some systems (such as centos7) do not include /usr/bin/ischroot,
which will cause the bind mount to it in ChrootableTarget to fail.

Adding a check for this ensures that the file exists before
mounting and aborts the mount if it does not.

master 2024-03-01 20:34:03 UTC
Bind ischroot->true in ChrootableTarget and --mount-proc in unshare

Author: Mitchell Augustin
Author Date: 2024-03-01 20:34:03 UTC

Bind ischroot->true in ChrootableTarget and --mount-proc in unshare

Some programs that are installed by default in Ubuntu rely on checking
/proc/$pid to determine if certain processes are still alive. Curtin's
current default behavior for "curtin in-target" is to run children
inside a separate PID namespace without also isolating /proc,
meaning checks for /proc/$pid usually wait on the wrong process
entirely. One such example is in any DKMS package, as DKMS checks
/proc/$pid. (I have submitted a similar patch to them to address
this as well: https://github.com/dell/dkms/pull/403).

Adding --mount-proc to unshare --pid args resolves that issue since
/proc is already mounted in util.py. However, it introduces a new
issue with postinstall scripts that rely on ischroot to determine
whether to restart systemd, since ischroot behavior is undefined
in pid namespaces. Bind-mounting /usr/bin/ischroot to /usr/bin/true
resolves this issue and is always correct since the symlink is
added only within ChrootableTargets.

nvme-initramfs 2024-02-29 09:45:27 UTC
curthooks: nvmeotcp: check if network in initramfs is needed

Author: Olivier Gayot
Author Date: 2024-02-28 13:35:22 UTC

curthooks: nvmeotcp: check if network in initramfs is needed

To decide if we should bring up the network in the initramfs and then
run `nvme connect-all` commands, we now look for mounpoints that have
the `_netdev` option. Those are the ones that require the network to be
up before mounting. If any of those mounpoints corresponds to something
essential for booting (e.g., /, /usr, /var or alike), then we decide
that the network is required in the initramfs.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>

release/23.1 2024-02-27 22:26:37 UTC
raise exception on bcache validation errors

Author: Alexsander de Souza
Author Date: 2024-02-23 22:35:58 UTC

raise exception on bcache validation errors

returning the exception is probably a typo

(cherry picked from commit a85f7d6ed856994d8ddbaac2a67e4eb7ff4ec421)

builddeps+parameterized 2023-12-11 15:50:17 UTC
Add python3-parameterized as a build-depends

Author: Olivier Gayot
Author Date: 2023-12-11 15:47:11 UTC

Add python3-parameterized as a build-depends

The test build of curtin as a .deb package for LTS-es has been failing
recently because python3-parameterized is not in the list of
build-depends.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>

ubuntu/mantic 2023-10-26 21:04:39 UTC
curtooks/install-grub: workaround the efivarfs statfs kernel regression

Author: Olivier Gayot
Author Date: 2023-10-26 21:02:55 UTC

curtooks/install-grub: workaround the efivarfs statfs kernel regression

On systems affected by the statfs kernel bug for efivarfs, we now export
the LIBEFIVAR_OPS=efivarfs variable to work around the issue. The variable
instructs libefivar (and therefore efibootmgr) to access EFI variables
through /sys/firmware/efi/efivars without leaning on statfs.

LP: #2040190
(cherry picked from commit a349105809af6188cb394e300a99846df3d117f0)

integration-memory-error 2023-05-11 14:00:36 UTC
tests: fix memory error in integration test when we allocate a 2GiB string

Author: Olivier Gayot
Author Date: 2023-05-11 11:37:57 UTC

tests: fix memory error in integration test when we allocate a 2GiB string

When create=True, the function add_image does something similar to what
'dd if=/dev/zero bs=1 count={size}' would do.

That said, our implementation allocates a string of the requested size
in memory. This fails with MemoryError on systems with limited RAM
available.

Instead, we now call 'dd', which is more memory efficient.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>

test-branch 2023-05-02 14:49:32 UTC
do not merge

Author: Olivier Gayot
Author Date: 2023-05-02 14:49:32 UTC

do not merge

snap 2023-04-26 11:23:31 UTC
more deps

Author: Dan Bungert
Author Date: 2023-04-26 11:23:31 UTC

more deps

ubuntu/lunar 2023-04-18 17:25:39 UTC
block: ntfsresize with force options

Author: Dan Bungert
Author Date: 2023-04-18 14:31:48 UTC

block: ntfsresize with force options

To match Ubiquity behavior, we should run ntfsresize with the force
options and sending 'y\n' on input.

(cherry picked from commit 6caa799551b19dc85cb1e901e013b12be326aff1)

revert-curthooks-apt-config-hacks 2023-03-02 09:50:23 UTC
Revert "Make sure curthooks do not discard supplied proxy settings"

Author: Olivier Gayot
Author Date: 2023-03-02 09:49:51 UTC

Revert "Make sure curthooks do not discard supplied proxy settings"

This reverts commit b49f5b1505d6597a5c64e3220bb45a291d9a78f7.

usage-json-double-quotes 2022-07-20 17:29:47 UTC
usage: fix help that showed invalid json in examples

Author: Olivier Gayot
Author Date: 2022-07-13 08:40:12 UTC

usage: fix help that showed invalid json in examples

The usage showed examples to override the stages that are executed when
running curtin install. That said, JSON only accepts strings surrounded
by double quotes and the examples use single quotes. This leads to
invalid JSON syntax if the examples are copied.

Fixed by inverting the quotes used in the examples so that the examples
are valid.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>

ubuntu/devel 2022-06-27 22:26:32 UTC
changelog: 22.1-0ubuntu1

Author: Dan Bungert
Author Date: 2022-06-27 22:26:32 UTC

changelog: 22.1-0ubuntu1

ubuntu/jammy 2022-05-06 15:07:18 UTC
Make sure curthooks do not discard supplied proxy settings

Author: Olivier Gayot
Author Date: 2022-04-27 16:55:18 UTC

Make sure curthooks do not discard supplied proxy settings

Just like we witnessed for the APT preferences, the proxy settings are
not honored when Subiquity installs packages from the "packages"
autoinstall section. This also applies for unattended-upgrades.

This happened because the installation of packages and execution of
unattended-upgrades occur after running curthooks.
Curtooks call handle_apt with an almost empty configuration.

Therefore, we would discard the proxy settings by removing the
etc/apt/apt.conf.d/90curtin-aptproxy file.

Fixed by not removing etc/apt/preferences.d/90curtin.pref when the
configuration does not contain APT preferences.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>

focal-maas-2021-10 2021-09-20 20:54:57 UTC
commands/apt: use python-apt for sources.list

Author: Dan Bungert
Author Date: 2021-09-20 20:54:57 UTC

commands/apt: use python-apt for sources.list

Start using python{,3}-apt for sources.list handling.
generate_sources_list now operates in a pipeline-like model, where each
stage performs one specific transformation on the list of entries.

ubuntu/xenial 2021-01-27 20:47:05 UTC
releasing curtin version 21.2-0ubuntu1~16.04.1

Author: Paride Legovini
Author Date: 2021-01-27 20:47:05 UTC

releasing curtin version 21.2-0ubuntu1~16.04.1

ubuntu/bionic 2021-01-27 20:39:57 UTC
releasing curtin version 21.2-0ubuntu1~18.04.1

Author: Paride Legovini
Author Date: 2021-01-27 20:39:57 UTC

releasing curtin version 21.2-0ubuntu1~18.04.1

ubuntu/focal 2021-01-27 20:26:44 UTC
releasing curtin version 21.2-0ubuntu1~20.04.1

Author: Paride Legovini
Author Date: 2021-01-27 20:26:44 UTC

releasing curtin version 21.2-0ubuntu1~20.04.1

ubuntu/groovy 2020-09-25 20:46:55 UTC
releasing curtin version 20.2-0ubuntu1

Author: Paride Legovini
Author Date: 2020-09-25 20:46:55 UTC

releasing curtin version 20.2-0ubuntu1

ubuntu/eoan 2020-02-14 15:44:17 UTC
releasing curtin version 19.3-26-g82f23e3d-0ubuntu1~19.10.1

Author: Ryan Harper
Author Date: 2020-02-14 15:44:17 UTC

releasing curtin version 19.3-26-g82f23e3d-0ubuntu1~19.10.1

ubuntu/disco 2019-09-10 21:57:21 UTC
Revert "d/control: update Depends for new probert package names"

Author: Dan Watkins
Author Date: 2019-09-10 21:57:21 UTC

Revert "d/control: update Depends for new probert package names"

This reverts commit 43c0a1474c4d32cebf0e940e555a7ac6851dbe9c.

(I incorrectly didn't fix the Depends during the preceding merge, but
its existence is still sufficient for this revert to not cause merge
conflicts into master.)

ubuntu/cosmic 2019-06-12 20:55:08 UTC
update changelog

Author: Ryan Harper
Author Date: 2019-06-12 20:55:08 UTC

update changelog

19.1 2019-05-21 21:03:54 UTC
release 19.1

Author: Dan Watkins
Author Date: 2019-05-21 21:03:54 UTC

release 19.1

ubuntu/artful 2018-05-18 19:02:29 UTC
releasing curtin version 18.1-17-gae48e86f-0ubuntu1~17.10.1

Author: Ryan Harper
Author Date: 2018-05-18 19:02:29 UTC

releasing curtin version 18.1-17-gae48e86f-0ubuntu1~17.10.1

ubuntu/zesty 2017-12-19 18:34:42 UTC
Import version 0.1.0~bzr532-0ubuntu1~17.04.1

Author: Scott Moser
Author Date: 2017-12-19 18:34:42 UTC

Import version 0.1.0~bzr532-0ubuntu1~17.04.1

125 of 25 results
This repository contains Public information 
Everyone can see this information.