postinstall: don't skip migrate_to_bullseye migration when installing a fresh buster

This commit is contained in:
Alexandre Aubin 2022-01-03 16:32:34 +01:00 committed by GitHub
parent fa9365d5fa
commit e98ba46e4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1045,6 +1045,10 @@ def _skip_all_migrations():
all_migrations = _get_migrations_list()
new_states = {"migrations": {}}
for migration in all_migrations:
# Don't skip bullseye migration while we're
# still on buster
if "migrate_to_bullseye" in migration.id:
continue
new_states["migrations"][migration.id] = "skipped"
write_to_yaml(MIGRATIONS_STATE_PATH, new_states)