Commit Graph

163 Commits

Author SHA1 Message Date
Jing Luo
1f2e9fee53 fix a few typos
complained by lintian.

Signed-off-by: Jing Luo <jing@jing.rocks>
2025-01-15 13:02:58 +01:00
Thomas Lamprecht
e248cdb556 bump version to 3.6.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-19 13:28:25 +01:00
Thomas Lamprecht
329ec50ee8 add initial support to build Debian 13 Trixie appliances
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-19 13:27:12 +01:00
Thomas Lamprecht
877ab95c97 add support to build Ubuntu 24.10 Oracular and future Ubuntu 25.04 Plucky
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-11-19 13:24:49 +01:00
Thomas Lamprecht
231f7e3dee bump version to 3.5.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-05-07 11:08:46 +02:00
Thomas Lamprecht
99f0f662d6 various whitespace and tiny code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-05-07 11:07:11 +02:00
Thomas Lamprecht
267c2ecc9e 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 <t.lamprecht@proxmox.com>
2024-05-07 11:04:10 +02:00
Thomas Lamprecht
d2e70cf306 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>
2024-05-07 09:36:51 +02:00
Thomas Lamprecht
a4fd2e2b84 bump version to 3.5.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-05-02 14:54:00 +02:00
Thomas Lamprecht
21d41d86e2 add support for building Ubuntu 24.04 Noble appliances
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-05-02 14:48:03 +02:00
Thomas Lamprecht
15d2a10a51 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 <t.lamprecht@proxmox.com>
2023-06-15 16:58:08 +02:00
Thomas Lamprecht
3f9c3b5025 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 <t.lamprecht@proxmox.com>
2023-06-08 10:58:26 +02:00
Thomas Lamprecht
37c10e648a 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 <t.lamprecht@proxmox.com>
2023-06-08 10:56:46 +02:00
Thomas Lamprecht
635f284d71 make extracting tar archive for /dev opt-in
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-06-08 10:55:54 +02:00
Thomas Lamprecht
92a69a6701 switch upload dist to bookworm
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-03 17:43:34 +02:00
Thomas Lamprecht
1abd06ca73 bump version to 3.5.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-03 17:25:48 +02:00
Thomas Lamprecht
8eaefc2b2e add preliminary support for Ubuntu Lunar 23.04 and Mantic 23.10
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-03 17:24:33 +02:00
Thomas Lamprecht
d022bf4e7b sort and group use statements
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-03 17:24:30 +02:00
Thomas Lamprecht
74e9443f6e d/copyright: update years
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-03 17:24:30 +02:00
Thomas Lamprecht
edf1535c3d d/control: document standards conformance with 4.6.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-03 17:24:30 +02:00
Thomas Lamprecht
e9bccd0df4 d/control: define compat level via build-depends and raise to 13
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-03 17:24:30 +02:00
Fabian Grünbichler
4699ffbd6c build: add missing build-dependency
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-10 10:26:56 +01:00
Fabian Grünbichler
851723196a build: fix make test
it should test the local module, not the installed one (the latter also
requires dab to be a build-dependency of itself, which is bad for
bootstrapping).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-10 10:26:56 +01:00
Thomas Lamprecht
b04908225b bump version to 3.4.3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 15:30:50 +02:00
Thomas Lamprecht
21e40575e2 allow https mirrors
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 14:45:11 +02:00
Thomas Lamprecht
aa00266a8a add targetname command
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 14:43:57 +02:00
Thomas Lamprecht
3a5a17ae0d constructor: factor out getting the target name
get_target_name will be reused later for adding a dab command to get
the final archive name, to be used for a `make upload` target.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 14:20:31 +02:00
Thomas Lamprecht
4dd544fb3b zstd: remove original archive after compression like gz
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 13:42:05 +02:00
Thomas Lamprecht
ceb0913031 debian: future proof mirror selection for trixie and forky
we should get something better to check though, maybe just systemd
support - we got until 2027 to figure that out though.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 13:39:20 +02:00
Thomas Lamprecht
8325d56721 debian bullseye,bookworm: switch apt repos over to deb.debian.org
ftp is a thing of the past and only exists for backward compat, use
the modern CDN backed deb.debian.org directly instead.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 13:37:15 +02:00
Thomas Lamprecht
2d046bf456 switch dab method over to modern prototype syntax
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 13:36:44 +02:00
Thomas Lamprecht
a6f17c8b1e refactor/cleanup constructor
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 13:36:44 +02:00
Thomas Lamprecht
f9dd671c4c bump version to 3.4.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 07:08:35 +02:00
Thomas Lamprecht
21b99e2c7d ubuntu: exclude libdrm* and libplymouth* from the base set
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 07:05:41 +02:00
Thomas Lamprecht
2670aba1f0 ubuntu kinetic support
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-21 07:04:57 +02:00
Thomas Lamprecht
cd85c459f7 php task: restore compat with very old releases using php5 again
note that both, php5 and the affected releases are EOL since years,
but as we do not want to drop the historic releases completely just
yet, restore the task functionality.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-21 10:09:50 +02:00
Thomas Lamprecht
985f0aa823 code style: fix some perl critic errors
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-09-21 09:01:15 +02:00
Fabian Grünbichler
ef0e24f1b1 read_packages: do not be greedy when matching package status value
Else a trailing whitespace is slurped into the $2 value, and that can
trip up users of this data.

Reported in the community forum:
https://forum.proxmox.com/threads/dab-internal-error-at-usr-share-perl5-pve-dab-pm-line-1327.97258/

Commit message copied from previous fix for other RE.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-06-14 09:06:42 +02:00
Thomas Lamprecht
f1b497af2e bump version to 3.4.1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-29 15:11:32 +02:00
Thomas Lamprecht
f1fd728423 buildsys: do very basic perl check
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-29 15:09:57 +02:00
Thomas Lamprecht
e9e4f03e0f ubuntu: exclude some more ct-useless packages
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-29 15:09:12 +02:00
Thomas Lamprecht
0b43ac6864 code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-29 15:08:38 +02:00
Thomas Lamprecht
b0c99d8c9c jammy: add future ubuntu 22.04 jammy release
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-29 14:12:43 +02:00
Thomas Lamprecht
a190e086dd devuan: add future daedalus 5.x release
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-29 12:04:38 +02:00
Thomas Lamprecht
623f9aabd4 avoid big distro codename if clauses, use flags
for now only a systemd flag that defaults to true for all but Devuan,
so set it explicitly to false for older Debian/Ubuntu releases

Could be extended in the future to avoid to much coupling on
codenames/versions.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-03-29 12:04:38 +02:00
Thomas Lamprecht
d587d2b69f bump version to 3.4.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-14 10:46:13 +02:00
Thomas Lamprecht
991067e4bd bootstrap: do not pull in xbase-clients by default
It depends on x11-apps, x11-session-utils, x11-utils, x11-xkb-utils,
x11-xserver-utils, xauth, xinit which in turn depend on mesa/glx/drm
libraries, all in all accumulating to ~200 MiB of disk space for
stuff that most container applicaitons nowadays won't have any use.

Note that the original reasoning was probably `xauth` for X11 display
redirection, but for that there's a package with the same name that
has a much smaller disk usage footprint overall.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-14 10:46:02 +02:00
Thomas Lamprecht
cfe649e720 tasks: php: default to unversioned metapackage
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-14 10:46:02 +02:00
Thomas Lamprecht
093b1acf90 tasks: postgres: default to unversioned metapackage
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-14 10:46:02 +02:00
Thomas Lamprecht
ba599cd091 some whitespace/indentation fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-14 10:46:02 +02:00