Univention Bugzilla – Bug 32575
univention-ucc-software-update führt für jedes zu installierende Paket apt-get update aus
Last modified: 2014-02-19 13:58:07 CET
Created attachment 5429 [details] Patch Bedingt durch das "for I in $install" in der Datei univention-ucc-software-update wird unnötig oft apt-get update aufgerufen. Die Paketlisten wurden schon an einer vorherigen Stelle aktualisiert, daher sollte das apt-get update in der Schleife an dieser Stelle überflüssig sein. Verteilt man per Software-Update Richtlinie viele Pakete, so verzögert sich der Start des Systems spürbar.
Created attachment 5430 [details] Bild
Should be checked for 1.1
Für meinen Kunden mit geringer Bandbreite und hoher Latenz ist das ein großer Bug. Mit 26 Einträgen in der software policy dauert das booten zum grafischen Login geschlagene 15 Minuten! Wenn ein fix während der Laufzeit von UCC 1.0-rev2 möglich wäre - wäre er sehr glücklich.
Created attachment 5794 [details] Patch to fix several issues in univention-ucc-software-update This patch fixes several issues in univention-ucc-software-update: * Run apt-get update only once (every 10 minutes) * Fix language in commands (LANG=C is not enough for apt-get) * Only remove packages that need to be removed * Only install packages that need to be installed/updated * Log all output and status messages to logfile * Use timestamps in logfile Added dependency to moreutils because of the use of "ts" (timestamps in logfile)
The patch will be applied with slight modifications. We can not depend on moreutils, because that will install perl and some libraries that need 30+MB of disc space. This is not possible on thin clients. Timestamps will be logged at the beginning and exit of the script.
Fixed in r47895 univention-corporate-client 1.0.24-5.83.201402181608 r47897 2014-02-18-univention-corporate-client.yaml
The package list is now only updated once during a bigger update (e.g. the current mirror update). Logging has been improved as well.
http://errata.univention.de/ucc/1.0/31.html