Trying to upgrade from UCS 5.0-1 to 5.0-2 and I’m getting this error right after I click upgrade. I’m using the UCS VM I downloaded years ago. Can somebody help me out, how to expand the boot partition of my UCS VM. I already set the UCR to prune old kernels, but it seems it wasn’t enough.
Thank you!
"
disk_space:
Not enough space in /boot, need at least 100 MB.
This may interrupt the update and result in an inconsistent system!
This check can be disabled by setting the UCR variable 'update50/ignore_free_space' to 'yes'.
But be aware that this is not recommended!
Error: Update aborted by pre-update script of release 5.0-2
"
PS: My sda1 is 487M, so I’m not sure about the error
without knowing how big the partition is I cannot promise that this is sufficient, but there might be old kernels polluting your /boot partition. To clean them univention-prune-kernels can be used.
From looking at the provided output you should have enough space (at least 100 MB are needed and 307 MB are usable), so maybe you can try again? If the problem persists it should be ok to ignore the check as shown via UCR.
If you want to debug this further I looked into the concerning code - You could to calculate the size by hand to see if it tells you something different:
“echo " Not enough space in $partition, need at least $usersize.”
also returns what it FOUND, size wise, rather than assuming is Is less than 100m
my first idea would be to change the source line so that is WHAT it is doing. (displaying WHAT it thinks it is)
maybe some funky boot sequence where it is looking at the wrong drive or maybe the user is…?