opsi-makepackage

Antworten
busabernhardg
Beiträge: 131
Registriert: 07 Jul 2008, 16:53

opsi-makepackage

Beitrag von busabernhardg »

Hallo Suppport Team,

hat sich beim opsi-makepackage etwas geändert, meine Pakete werden nur mehr im archiv-format = tar erstellt. Wenn ich explizit cpio als archiv-format angebe, erhalte ich eine Fehlermeldung:

Code: Alles auswählen

opsi-makepackage . --archive-format cpio --no-zsync --no-md5
usage: opsi-makepackage [--help] [--version] [--quiet] [--verbose] [--log-level {0,1,2,3,4,5,6,7,8,9}] [--no-compression] [--compression {zstd,bz2,bzip2,gz,gzip}]
                        [--archive-format {tar}] [--no-pigz] [--no-set-rights] [--follow-symlinks] [--custom-name custom name | --custom-only custom name]
                        [--temp-directory directory] [--control-to-toml] [--md5 | --no-md5] [--zsync | --no-zsync] [--keep-versions] [--package-version packageversion]
                        [--product-version productversion]
                        [source directory]
opsi-makepackage: error: argument --archive-format/-F: invalid choice: 'cpio' (choose from 'tar')
Versionen
dpkg -l | grep opsi
ii opsi-linux-bootimage 20240110-1 all opsi bootimage for netboot tasks.
ii opsi-server-full 4.3.1.2-1 all opsi server
ii opsi-tftpd-hpa 5.2.8-78 amd64 HPA's tftp server
ii opsi-utils 4.3.2.8-1 amd64 Utilities for working with opsi
ii opsi-webgui 4.3.25-1 all opsi webgui
ii opsiconfd 4.3.7.1-1 amd64 opsi configuration service
ii opsipxeconfd 4.3.2.5-1 amd64 opsi pxe configuration service
thomas.besser
Beiträge: 461
Registriert: 09 Sep 2009, 09:40

Re: opsi-makepackage

Beitrag von thomas.besser »

https://opsi.org/de/blog/opsi-43-release/

Insbesondere unter "Weitere Neuerungen"...
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: opsi-makepackage

Beitrag von wolfbardo »

wird beim Packen nicht mehr unterstützt.

Um kompatible Pakete für opsi 4.2 zu erstellen kann man Pakete mittels

Code: Alles auswählen

opsi-make-package --compression gzip
oder eine Datei in
/etc/opsi
anlegen:

Code: Alles auswählen

/etc/opsi$ cat makepackage_marker_use_gz 
# As long as this file exists, all calls to opsi-makepackage (>=4.3.0.4) will override the compression parameter to use gzip, which is compatible with depots <=4.2
# New default (without this marker file) is zstd which is at least 4 times as fast while also producing smaller archives
Gruss
Bardo Wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
busabernhardg
Beiträge: 131
Registriert: 07 Jul 2008, 16:53

Re: opsi-makepackage

Beitrag von busabernhardg »

Dann sollte die Dokumentation (V4.3) noch korrigiert werden:
opsi-makepackage --help
usage: opsi-makepackage [--help] [--version] [--quiet] [--verbose] [--log-level {0,1,2,3,4,5,6,7,8,9}] [--no-compression]
[--compression {gzip,zstd}] [--archive-format {cpio,tar}] [--no-pigz] [--no-set-rights]
[--follow-symlinks] [--custom-name custom name | --custom-only custom name] [--temp-directory directory]
[--control-to-toml] [--md5 | --no-md5] [--zsync | --no-zsync] [--keep-versions]
[--package-version packageversion] [--product-version productversion]
[source directory]
Benutzeravatar
fkalweit
uib-Team
Beiträge: 182
Registriert: 23 Okt 2020, 16:14

Re: opsi-makepackage

Beitrag von fkalweit »

Hallo,

vielen Dank für den Hinweis. Das ist wohl untergegangen. Wir passen das schnellst möglich an.

Hinweis: tar Pakete funktionieren auch mit älteren opsi Versionen.

Viele Grüße
Fabian
Benutzeravatar
SisterOfMercy
Beiträge: 1524
Registriert: 22 Jun 2012, 19:18

Re: opsi-makepackage

Beitrag von SisterOfMercy »

fkalweit hat geschrieben: 22 Feb 2024, 10:46 vielen Dank für den Hinweis. Das ist wohl untergegangen. Wir passen das schnellst möglich an.
https://opsi.org/en/blog/opsi-43-release/
This doesn't sound right, measurement bus?
"Optional: set the opsiclientd.config_service.permanent_connection = true configuration to enable client and server communication via the opsi measurement bus."
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten