Univention Bugzilla – Bug 31020
pre post Update Hook in /usr/sbin/univention-ucc-software-update
Last modified: 2014-06-12 09:19:54 CEST
We need a pre and post update hook in /usr/sbin/univention-ucc-software-update.
> - Da wir uns nicht darauf verlassen können, dass für das Update immer unser > Tool verwendet wird, sollten wir ein neues Paket bauen, welches keine (!) > Abhängigkeiten hat und von allen UCC Paketen als Pre-Depends aufgeführt > wird. Das ist zwar nicht optimal, vor allem nicht aus Sicht des Debian > Paketformat, aber das sollte uns die Möglichkeit geben, vor jedem Update > bestimmte Skripte auszuführen. Hier sollten wir für unterschiedliche Updates eigene Binary Pakete verwenden, also: Pre-Depends: ucc-update-helper-1.0rev2
Relevant for ucc1.1
Maybe a similar mechanism to preup/postup can be implemented
We discussed the potential benefits and disadvantages and came to the conclusion that updates should rather be pushed through software updates alone. The handling of updates in UCC is different in comparison to UCS: In UCS the /etc/apt.sources.list.d gets automatically updated in case an update is available, while in UCC the entire system partition is replaced. We rather need the equivalent of preup.sh and postup.sh when updating images in the initramfs. A bug for that already exists and I've tagged it for evaluation in the next release (Bug 31384). For the standard software updates separate updates scripts are rather problematic in conparison to packages: - they are not validated compared to DEB packages/Secure Apt unless separate signing logic is implemented - they need a separate logic to track when and how often they should be executed (e.g. should they be executed with every apt-get dist-upgrade?)
As discussed per comment 4
Verified
UCC 2.0 has been released: http://docs.univention.de/release-notes-ucc-2.0.html If this error occurs again, please use "Clone This Bug".