mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
upgrades: Requires at least 5 GB free space for dist upgrade
With all apps installed, the used space increases by 4.9 GB. Helps: #1644. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
9fae2e9d47
commit
37a38549bf
@ -366,7 +366,7 @@ def _check_dist_upgrade(test_upgrade=False):
|
||||
output = subprocess.check_output(['df', '--output=avail,pcent', '/'])
|
||||
output = output.decode().split('\n')[1].split()
|
||||
free_space, free_percent = int(output[0]), int(output[1][:-1])
|
||||
if free_space < 1000000 or free_percent < 10:
|
||||
if free_space < 5000000 or free_percent < 10:
|
||||
print('Not enough free space in /.')
|
||||
return False
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user