Seite 1 von 1

Kopie vom Netboot-Produkt ubuntu funktioniert nicht

Verfasst: 14 Nov 2025, 10:37
von Christian Imhorst
Guten Tag,

ich habe das Netbootprodukt 'ubuntu' geklont.

Code: Alles auswählen

cd /var/lib/opsi/repository/
opsi-package-manager --install ubuntu_4.3.0.5-1.opsi --new-product-id glpi-boot

Die Installation von 'ubuntu klappt super, nur die vom neuen Produkt nicht. Bzw. die Installation funktioniert, nur die Übertragung der Protokolldateien zum Dienst scheitert mit der Fehlermeldung:
RuntimeError('Command `chroot /mnt/hd /bin/bash /tmp/doit.sh` failed (1)\nviper1: warning: Setting locale failed. viper1: warning: Please check that your locale settings\nLANGUAGE = (unset)\nLC_ALL = (unset)\nLANG = de_DE.UTF-8 are supported and installed on your system.viper1: warning: Falling back to the standard locale ("C").\nlocale: Cannot set LC_CTYPE to default locale: No such file or directory\nlocale: Cannot set LC_MESSAGES to default locale: No such file or directory\nlocale: Cannot set LC_ALL to default locale: No such file or directory\nviper1: warning: Setting locale failed. viper1: warning: Please check that your locale ...
Die Einstellungen sind beim neunen Paket glpi-boot erstmal dieselben wie bei 'ubuntu'.
fehlermeldung.png
fehlermeldung.png (535.82 KiB) 2859 mal betrachtet

Re: Kopie vom Netboot-Produkt ubuntu funktioniert nicht

Verfasst: 26 Feb 2026, 10:15
von n.doerrer
Moin,

das Problem hierbei ist, dass wir das gleiche setup script für ubuntu und debian verwenden. Im setup.py wird dann unterschieden:

Code: Alles auswählen

if "ubuntu" in productId:
    online_repository = productProperties.get(
        "online_repository", "http://de.archive.ubuntu.com/ubuntu"
    )
else:
    online_repository = productProperties.get(
        "online_repository", "http://ftp.debian.org"
    )
Solange der custom-Name "ubuntu" enthält, sollte es funktionieren.

Re: Kopie vom Netboot-Produkt ubuntu funktioniert nicht

Verfasst: 26 Feb 2026, 18:54
von Christian Imhorst
Vielen Dank für die Info :)

Ich werde die ProductID entsprechend anpassen.