Commit Graph

63 Commits

Author SHA1 Message Date
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
Thomas Lamprecht
5820070022 bootstrap: extract: support zstd
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-12 14:34:41 +02:00
Thomas Lamprecht
2a5a52993b bootstrap: extract: make compressor detection generic
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-12 14:34:31 +02:00
Thomas Lamprecht
dfac2f5de0 read installed: include open-error in die message
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-01 17:23:40 +02:00
Thomas Lamprecht
916b069999 read installed: 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, e.g., getpkgfile

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

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-01 17:23:05 +02:00
Thomas Lamprecht
7b3b1a3514 bootstrap: add simple include/exclude mechanism
Similar to the one from debootstrap, but we do not guarantee 100%
compat.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-29 14:56:25 +02:00
Thomas Lamprecht
09682055ca add usr-merge and enable it for newer Ubuntu and Debian releases
Hard-code enabling usr-merge for Ubuntu releases equal or newer than
21.x and Debian releases equal or newer than Bullseye (11).

We probably want to add a override to the configuration, for force
enabling or disabling.

For now avoid doing so in Devuan, IIRC they do not want to follow
usr-merge at the moment.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-20 13:39:41 +02:00
Thomas Lamprecht
44afe66498 bootstrap: tar extract: pass "keep-directory-symlink" flag
avoid overriding symlinks, e.g., in a (future) usr-merged system

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-20 13:37:23 +02:00
Thomas Lamprecht
4b1134957d add bookworm + some minor cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-20 13:34:01 +02:00
Stoiko Ivanov
df893f5dd7 fix compressor loop-order
commit dbac106eb6 introduced a flaw in
the logic - once a file is downloaded the 'last;' statement exited the
inner loop iterating over the compoentens instead of the outer one
iterating over the compressors.

since both do not inherently depend on each other simply swap them.

noticed while trying to build a pmg-template in a clean environment
with full repository configuration (before the tests worked due to
leftover files in the infodir)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-07-15 11:29:51 +02:00
Thomas Lamprecht
53a5c87ed4 add preliminary support for Ubuntu 21.10 Impish Indri
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 17:41:09 +02:00
Stoiko Ivanov
dbac106eb6 try all available compressors for Packages
Some repositories (e.g. debian-security) only offer .xz compressed
Packages, others (e.g. promox repositories) only .gz compressed ones.

Make the compressors an array and try them in order until successful

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-07-14 17:37:08 +02:00
Thomas Lamprecht
81c4eb55a2 debian 11: use short ostype
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-24 14:49:05 +02:00
Thomas Lamprecht
7ed25022a3 zstd: use higher level by default and add a max option
levle 9 is what Arch Linux uses for their packages, so it's a widely
used level which is a good default tradeoff for such images.

Add also zstd-max level, which uses the highest default level which
is still highly efficient on decompression, i.e., while compression
needs more time and resources the decompression doesn't.

Some number for a Debian 11 minimal template from 2021-05-06:

uncomp.    321M    100.0%
gzip       116M     36.1%
zstd  0    106M     33.0%
zstd  9     98M     30.5%
zstd 19     83M     26.8%

So, the still cheap to extract zstd lvl19 need 33M less than the
current default gzip, the access log from our german cdn server show
about 490 successful access to our system images per day, that would
mean that changes saves `490 download/day * 30.4375 days/month * 33M
saved/download` =~ 490 G/month traffic for us and for users.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-24 14:19:44 +02:00
Thomas Lamprecht
fd8faee52e support Devuan 4 and 5
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-24 14:18:53 +02:00
Thomas Lamprecht
73c34b52a9 add support for Ubuntu 21.04 Hirsute
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-25 17:36:10 +02:00
Thomas Lamprecht
44afd0f42b add basic support for Ubuntu 20.10 Groovy Gorilla
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-16 15:15:57 +01:00
Thomas Lamprecht
f06fe8dc8f allow compressing final archive with zstd
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-08-25 21:01:04 +02:00
Thomas Lamprecht
d112d27987 debian 10 fixup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-08-25 21:00:44 +02:00
Thomas Lamprecht
29e1552693 mask sys-kernel-config.mount: fails and makes no sense in CT
If it somehow really makes sense a user can just unmask it again,
this is just setting the default, nothing permanent

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-25 16:54:58 +02:00
Thomas Lamprecht
420b0857de unify similar branch
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-25 16:54:20 +02:00
Thomas Lamprecht
6a883423ef adapt default 'source' repo urls for bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-25 15:25:06 +02:00
Thomas Lamprecht
b40ae22991 handle .xz compressed Packages file from Bullseye
the security one did not have a fallback .gz, so just adapt already.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-03-13 16:05:33 +01:00
Thomas Lamprecht
3972e782fc finalize: output also restuling archive size for convenience
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-02-21 13:00:47 +01:00
Thomas Lamprecht
f737377690 add support for upcomming Ubuntu 20.04 "Focal Fossa"
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-02-21 11:47:04 +01:00
Thomas Lamprecht
58ef618c95 add experimental support for upcomming Debian Bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-02-21 11:47:04 +01:00
Thomas Lamprecht
a603a5128c move supported suites out to hash
hopefully we can extract some features to this hash in the future so
that the other spaghetti code with big if/else chains in the future

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-02-21 11:47:04 +01:00
Stoiko Ivanov
76ec8d4b2b raise postifx main.cf compatibility_level to 2
otherwise mail received via TCP (localhost port 25) is not accepted, since
there is no default smptd_relay_restriction set, which would make the system an
open relay.

in compatibility_level 2 the default is sensibly set to:
'permit_mynetworks, permit_sasl_authenticated, defer_unauth_destination'

reported via the pve-user list:

https://pve.proxmox.com/pipermail/pve-user/2020-February/171368.html

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-02-21 09:47:10 +01:00
Thomas Lamprecht
230e447198 support Ubuntu 19.10 Eoan
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-02 17:25:14 +02:00
Thomas Lamprecht
9210dcfb43 add support for Ubuntu 19.04 Disco Dingo
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-19 11:18:33 +01:00
Thomas Lamprecht
139be0640a add support for Debian 10 Buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-19 11:18:16 +01:00
Thomas Lamprecht
40c4a19f0c add support for Ubuntu 18.10 (Cosmic Cuttlefish)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-10-22 10:14:57 +02:00
Dietmar Maurer
e8fed6ff86 add support for ubuntu 18.04 (bionic beaver) 2018-04-23 10:46:18 +02:00
Thomas Lamprecht
9313f84a1f use new config properties for sample lxc config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-04-05 10:05:27 +02:00
Thomas Lamprecht
77b1a1e94e correctly check for devuan ascii suite
commit b5583827a5 introduced
support for Devuan 1 and 2 (ascii), the check for ascii wasn't
correct and thus always evaluated to true.

Reported-by: Joe Burleson [1]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>

[1]: https://forum.proxmox.com/threads/dab-version-3-0-8-ubuntu-16-04-issues.42685/
2018-04-05 09:29:37 +02:00
Thomas Lamprecht
b5583827a5 close #1668: add support for devuan jessie and ascii
Use devuan-jessie as suite name to avoid conflict.
Allow both versions for Devuan ascii.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-02-16 05:57:01 +01:00
Thomas Lamprecht
cc5bcdf5d6 add support for Ubuntu 17.10 (artful)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2017-12-12 12:00:25 +01:00
Dietmar Maurer
e30a192859 closure: fix package ordering
We cannot use perl 'keys', because that return a list with random
order. Some packages use preinst scripts (run at unpack time), so
package order is important.

(cherry picked from commit a922f88f4a)
2017-06-26 10:10:38 +02:00
Dietmar Maurer
dfdfb6681c Revert "trusty: add hack to avoid util-linux preinst bug"
This reverts commit 0aa30d54c6.

Ubuntu fixed this upstream. Seems sysv-rc now generates
/etc/init.d/.legacy-bootordering to avoid calling insserv.
2017-06-26 07:42:09 +02:00
Dietmar Maurer
0aa30d54c6 trusty: add hack to avoid util-linux preinst bug 2017-06-26 06:47:06 +02:00
Dietmar Maurer
92146ce512 add support for Ubuntu 17.04 (zesty) 2017-05-02 06:25:21 +02:00
Dietmar Maurer
b6a1907e3f add support for Debian stretch 2017-03-16 16:35:26 +01:00
Dietmar Maurer
ef8522345d support ubuntu 16.10 (Yakkety) 2016-11-02 08:19:35 +01:00
Wolfgang Bumiller
6fe8088faf use --rcfile to work with newer lxc 2016-08-18 14:05:41 +02:00
Dietmar Maurer
281483b6a6 add support for ubuntu xenial, bump version to 2.0-4 2016-04-20 11:14:47 +02:00
Dietmar Maurer
881f309928 ubuntu vivid/wily: exclude libmodule-build-perl 2015-10-31 17:27:23 +01:00
Dietmar Maurer
ae2443bc83 do not write /etc/network/interfaces for ubuntu wily 2015-10-31 17:16:53 +01:00
Dietmar Maurer
306c21dc3d add support for ubuntu wily (15.10) 2015-10-31 17:02:27 +01:00