Commit Graph

116 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
4d4e94fca6 d/copyright: update years
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-14 09:15:45 +02:00
Thomas Lamprecht
882019249a dab: update and add to CLI docs
for man page and usage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-14 09:13:58 +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
b02da6e130 add code cleanup fatal_usage helper
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-29 12:03:46 +02:00
Thomas Lamprecht
ef6cc5d5de bump version to 3.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-09-20 14:07:13 +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
Thomas Lamprecht
422da3ad6b bump version to 3.2-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-15 11:31:10 +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
0bca1545cb buildsys: change upload dist to bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 17:42:53 +02:00
Thomas Lamprecht
b6899e1c90 bump version to 3.2-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-14 17:41:58 +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
253f66eba9 bump version to 3.2-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-24 14:50:57 +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
c0ed1345f3 bump version to 3.1-3
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-11-16 15:17:38 +01: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
300bd06dcf add help and output all available commands
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-08-24 13:36:36 +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
a9801fd738 bump version to 3.1-2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-02-21 13:00:47 +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
451a55464c buildsys: switch upload dist over to buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-23 18:18:23 +02:00
Thomas Lamprecht
d79a0f4d1c bump version to 3.1-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-23 17:52:05 +02:00
Thomas Lamprecht
fe711ec045 buildsys: improve make clean
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-23 17:51:58 +02:00
Thomas Lamprecht
1f9e7476e0 buildsys: use dpkg-dev makefile helpers for pkg info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-23 17:50:04 +02:00
Thomas Lamprecht
a7f33e0c1a bump version to 3.0-12
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-20 16:36:18 +01:00
Thomas Lamprecht
3af6edfdaf move from dpkgdeb to buildpackage and add dsc target
can surely be improved, but it's a start

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-03-20 16:36:00 +01: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