-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mintupgrade doesn't ask for enough space in low disk conditions #83
Comments
Thanks, but that doesn't address my concerns at all. I understand perfectly well how to check for free space on my mounts. In order to assemble the bug report, I had to do so multiple times; and to work around the problem I had to do quite a bit more advanced things. The problem is that the amount of free space that |
Is there a good reason for running with a minimal |
I'm using a separate small partition for At any rate, I don't see why anyone would accept hardware purchase decisions being driven by individual programs, especially ones that are only intended to update the system and then not be used again. |
Fair enough. |
Mintupgrade version: 2024.01.12
Attempted upgrade: 20.3 -> 21
Steps to reproduce: on a system where
/home
is separated out to a large partition and a smaller one is used for/
, load up the latter such that around 4GB or so of free space remains, then run mintupgrade. If the "update simulation" complains that there is not enough disk space, free up only enough space to satisfy the tool.Expected result: the tool should be able to work with the amount of space that it requested.
Actual result: on typical setups, the process will fail with no meaningful guidance in the gui and tons of scary output in the terminal window, and take quite a long time before waiting for user intervention.
The apparent cause is that
mintupgrade
only computes (really, it trustsapt
) the space needed to download and install the packages. It doesn't account for the fact that, after this process, it will need to build the kernel and set up initramfs, and these steps will put several hundred MB of data into/tmp
. Presumably, users could avoid the problem by e.g. having/tmp
mounted on tmpfs, but:/
and/home
partitions this way in the first place)The installer also doesn't account for the system logs that will be generated in
/var/log/journal
as part of the process, which could also add up to a significant amount.Possible mitigations:
/tmp
is mounted on the same partition as/
, and only add extra space in this situation. Explain in the GUI why this extra space is needed. (But maybe it should request some space anyway, just because of/var/log/journal
.)apt
installation phase.apt autoremove
at this. Better yet, if the upgrade logic doesn't prevent it, just download/install/cleanup the packages one at a time - this would also greatly reduce the required space.At the very least, if the first attempt fails due to a disk space error, the installer should not blindly try 4 more times. It should also ideally be able to translate some common failure modes like this into the GUI, with canned advice.
The text was updated successfully, but these errors were encountered: