Bug 27097 - pruneOldKernel aus preup wird bei OXASE nicht mehr ausgeführt
pruneOldKernel aus preup wird bei OXASE nicht mehr ausgeführt
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Sönke Schwardt-Krummrich
Stefan Gohmann
: interim-2
Depends on: 27091
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-11 15:44 CEST by Felix Botner
Modified: 2012-07-20 15:25 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2012-05-11 15:44:37 CEST
+++ This bug was initially created as a clone of Bug #27091 +++

Im 3.0-1 preup wird folgendes gemacht

if [ "$update30_pruneoldkernel" = "yes" -o
"$univention_ox_directory_integration_oxae" = "true" ]; then
        echo "Purging old kernel..." | tee -a /var/log/univention/updater.log


Auf meinem aktualisiertem System gibt es aber "oxae"  nicht mehr, nur noch
"oxase". Damit werden alte Kernel nicht deinstalliert und das Update bricht ab. 


Die Variable im preup müsste auf oxase geändert werden.
Comment 1 Felix Botner univentionstaff 2012-06-20 11:55:46 CEST
oxae wurde im preup durch oxase ersetzt.
Comment 2 Stefan Gohmann univentionstaff 2012-07-02 13:32:24 CEST
Es sollte im Standardprodukt keine Referenz auf OXASE oder OXAE geben. Dafür kann das preup Skript von OX verwendet werden.
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2012-07-03 13:11:59 CEST
Im preup.sh der Component ox4ucs bzw. oxseforucs werden bereits alte Kernel entfernt, sofern es sich um ein OXASE handelt:

# pre preup.sh 3.0-*
if [ "$UPDATE_STEP" = "pre" ] ; then
  if [ "$univention_ox_directory_integration_oxae" = "true" -o \
       "$univention_ox_directory_integration_oxase" = "true" ]; then
    ...
      pruneOldKernel "2.6.18"
      pruneOldKernel "2.6.26"
      pruneOldKernel "2.6.32"
    ...
  fi
fi

Der OXASE-spezifische Test in der preup.sh von univention-updater wurde daher entfernt.

univention-updater (7.0.169-2) unstable; urgency=low
Comment 4 Stefan Gohmann univentionstaff 2012-07-03 13:54:53 CEST
OK
Comment 5 Stefan Gohmann univentionstaff 2012-07-20 15:25:05 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".