~proxmox-arm/proxmox-amr64/+git/DAB:master

Last commit made on 2024-05-07
Get this branch:
git clone -b master https://git.launchpad.net/~proxmox-arm/proxmox-amr64/+git/DAB

Branch merges

Branch information

Name:
master
Repository:
lp:~proxmox-arm/proxmox-amr64/+git/DAB

Recent commits

231f7e3... by Thomas Lamprecht

bump version to 3.5.2

Signed-off-by: Thomas Lamprecht <email address hidden>

99f0f66... by Thomas Lamprecht

various whitespace and tiny code cleanups

Signed-off-by: Thomas Lamprecht <email address hidden>

267c2ec... by Thomas Lamprecht

bootstrap: die if init binary could not get diverted

This is a safe guard check, as otherwise DAB might end up putting the
wrong 'init' executable in the final image, like it happened for
Ubuntu 24.04 before the fixing commit d2e70cf ("explicitly add
systemd-syv to required packages for systemd based releases").

Signed-off-by: Thomas Lamprecht <email address hidden>

d2e70cf... by Thomas Lamprecht

explicitly add systemd-syv to required packages for systemd based releases

This fixes template creations for some newer releases that do not have
the `init` meta package as "required" priority anymore, like Ubuntu
24.04.

Without that the /sbin/init did not exist after unpacking the required
packages, which broke DABs assumption it holds when creating a
diversion for the PID 1 init for bootstrap setup.

The order of events went as follows:

1. extract required packages
2. rename init to init.org (but no init exists at this point)
3. copy fake init to init (that works)
4. unpack required packages
5. rename init.org to init (doesn't work, since 2 failed)
6. divert init (still fake init!) to init.distrib
7. copy fake init (again) to init
8. .. install, including now really installing systemd-sysv which
   overwrites init
9. remove divert, copying back fake init to init

So, in the end the CT image shipped the very basic DAB init, which was
only intended to be used for during the appliance building process.

Fix this by explicitly adding `systemd-sysv` as required package for
all distros and releases using systemd.

Signed-off-by: Thomas Lamprecht <email address hidden>

a4fd2e2... by Thomas Lamprecht

bump version to 3.5.1

Signed-off-by: Thomas Lamprecht <email address hidden>

21d41d8... by Thomas Lamprecht

add support for building Ubuntu 24.04 Noble appliances

Signed-off-by: Thomas Lamprecht <email address hidden>

15d2a10... by Thomas Lamprecht

bootstrap: mask more systemd units that fail in containers

well in unprivileged ones, but if one has a privileged CT and really
wants those things, they can just unmask those units..

Signed-off-by: Thomas Lamprecht <email address hidden>

3f9c3b5... by Thomas Lamprecht

preliminary unprivileged support

just added the more straight-forward things, albeit userid mappings
might mess with file owner in the tar assembled at the end?

Signed-off-by: Thomas Lamprecht <email address hidden>

37c10e6... by Thomas Lamprecht

deprecate old releases

the systemd ones won't work on modern cgroupv2 systems anyway and the
other ones are just ancient.

Signed-off-by: Thomas Lamprecht <email address hidden>

635f284... by Thomas Lamprecht

make extracting tar archive for /dev opt-in

Signed-off-by: Thomas Lamprecht <email address hidden>