mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
bullseye migration: fix check about free space in /boot/ ...
This commit is contained in:
parent
b306df2c3b
commit
a2d4abc1f8
1 changed files with 3 additions and 2 deletions
|
@ -373,8 +373,9 @@ class MyMigration(Migration):
|
||||||
if free_space_in_directory("/var/") / (1024**3) < 1.0:
|
if free_space_in_directory("/var/") / (1024**3) < 1.0:
|
||||||
raise YunohostError("migration_0021_not_enough_free_space")
|
raise YunohostError("migration_0021_not_enough_free_space")
|
||||||
|
|
||||||
if free_space_in_directory("/boot/") / (120**3) < 1.0:
|
# Have > 70 MB free space on /var/ ?
|
||||||
raise YunohostError("/boot/ has less than 120MB available. This will probably trigger a crash during the upgrade because a new kernel needs to be installed. Please look for advice on the forum on how to remove old, unused kernels to free up some space in /boot/.", raw_msg=True)
|
if free_space_in_directory("/boot/") / (1024**2) < 70.0:
|
||||||
|
raise YunohostError("/boot/ has less than 70MB available. This will probably trigger a crash during the upgrade because a new kernel needs to be installed. Please look for advice on the forum on how to remove old, unused kernels to free up some space in /boot/.", raw_msg=True)
|
||||||
|
|
||||||
# Check system is up to date
|
# Check system is up to date
|
||||||
# (but we don't if 'bullseye' is already in the sources.list ...
|
# (but we don't if 'bullseye' is already in the sources.list ...
|
||||||
|
|
Loading…
Add table
Reference in a new issue