Bug 31375 - Updating an Image does not ensure that the kernel is updated / Copyfiles does not delete
Updating an Image does not ensure that the kernel is updated / Copyfiles does...
Status: CLOSED WORKSFORME
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: initrd
unspecified
Other Linux
: P5 normal
: UCC 2.0
Assigned To: Moritz Muehlenhoff
Erik Damrose
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-16 11:57 CEST by Erik Damrose
Modified: 2014-06-12 09:19 CEST (History)
2 users (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 Erik Damrose univentionstaff 2013-05-16 11:57:21 CEST
When updating an UCC Image the updated kernel is copied to boot if the boot partition has the copyfiles flag in the image.cfg file. The initrd then copies files to the mountpoints. If the target partition is to small there is no error message and files are not copied. 

The rsync command in the initrd does not use the delete flag. This prevents unwanted deletion of older files, but can prevent the installation of a new kernel when the /boot partition is to small. Thus, the kernel modules in the image do not match the started kernel.

A fix could introduce an additional parameter, which defines if rsync should be called with --delete.
Comment 1 Moritz Muehlenhoff univentionstaff 2014-04-24 10:06:21 CEST
We discussed this and came to the conclusion not to fix it: This is is a corner case, which occured in a setup where a strongly trimmed-down thin client image was create. In such a case the client should rather be re-partitioned on updates. Adding an additional option adds quite a bit of complexity and a great deal of potential support problems: If the --delete flag is used on the /home partition all user data would be wiped away.
Comment 2 Erik Damrose univentionstaff 2014-04-24 10:09:24 CEST
Verified
Comment 3 Moritz Muehlenhoff univentionstaff 2014-06-12 09:19:36 CEST
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".