From faaf0c53b367679bd4a57f371221ac6c1fe6680f Mon Sep 17 00:00:00 2001 From: Kevin Olbrich Date: Wed, 31 Jan 2024 14:06:26 +0100 Subject: [PATCH] fix bookworm import --- bootstrapvz/providers/kvm/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrapvz/providers/kvm/__init__.py b/bootstrapvz/providers/kvm/__init__.py index 24f0045..42c1974 100644 --- a/bootstrapvz/providers/kvm/__init__.py +++ b/bootstrapvz/providers/kvm/__init__.py @@ -35,12 +35,13 @@ def resolve_tasks(taskset, manifest): if manifest.provider['console'] == 'virtual': taskset.update([boot.SetGrubConsolOutputDeviceToVirtual]) - from bootstrapvz.common.releases import jessie, bookworm + from bootstrapvz.common.releases import jessie if manifest.release >= jessie: taskset.update([boot.SetGrubConsolOutputDeviceToVirtual, boot.SetSystemdTTYVTDisallocate, ]) + from bootstrapvz.common.releases import bookworm if manifest.release >= bookworm: if filesystem.CopyMountTable in taskset: taskset.remove(filesystem.CopyMountTable)