Univention Bugzilla – Bug 31375
Updating an Image does not ensure that the kernel is updated / Copyfiles does not delete
Last modified: 2014-06-12 09:19:36 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.
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.
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".