From 0269c78680497aeb68f81b00377fbcab0da0902d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 12 Nov 2024 01:59:24 +0100 Subject: [PATCH] Remove too strict checking for kernel on startup Nowadays empty kernel is automatically converted to pvgrub2, so don't refuse that value. Fixes: ba8bc655 "Allow setting "none" kernel to use in-vm kernel in any virt_mode" QubesOS/qubes-issues#5212 (cherry picked from commit 9498dfe5cdd8cea5b09b62cae27ebdee77ab5efd) --- qubes/vm/qubesvm.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index f5e87ee91..5ad40c9ae 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -1171,9 +1171,6 @@ async def start(self, start_guid=True, notify_function=None, '{} device {} not available'.format( devclass, dev)) - if self.virt_mode == 'pvh' and not self.kernel: - raise qubes.exc.QubesException( - 'virt_mode PVH require kernel to be set') await self.storage.verify() if self.netvm is not None: