]> git.proxmox.com Git - dab.git/commit
explicitly add systemd-syv to required packages for systemd based releases
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 May 2024 07:36:47 +0000 (09:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 May 2024 07:36:51 +0000 (09:36 +0200)
commitd2e70cf3065930e46162663d239f15287b44d8c6
tree7acf3df854d745ec327bd5c2f297777f6efb25c9
parenta4fd2e2b84218e648b38d09cf1a05e98e84048ea
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 <t.lamprecht@proxmox.com>
PVE/DAB.pm