bullseye migration: higher treshold for low space detection in /boot/ because some people still experience the issue on 4.4.2.6

This commit is contained in:
Alexandre Aubin 2022-08-17 01:21:12 +02:00
parent 87f0eff955
commit d283c900f4

View file

@ -373,8 +373,8 @@ class MyMigration(Migration):
if free_space_in_directory("/var/") / (1024**3) < 1.0:
raise YunohostError("migration_0021_not_enough_free_space")
if free_space_in_directory("/boot/") / (70**3) < 1.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 some space in /boot/.", raw_msg=True)
if free_space_in_directory("/boot/") / (120**3) < 1.0:
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)
# Check system is up to date
# (but we don't if 'bullseye' is already in the sources.list ...