Skip to content

Commit

Permalink
Remove too strict checking for kernel on startup
Browse files Browse the repository at this point in the history
Nowadays empty kernel is automatically converted to pvgrub2, so don't
refuse that value.

Fixes: ba8bc65 "Allow setting "none" kernel to use in-vm kernel in any virt_mode"

QubesOS/qubes-issues#5212

(cherry picked from commit 9498dfe)
  • Loading branch information
marmarek committed Dec 8, 2024
1 parent 97885c3 commit 0269c78
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions qubes/vm/qubesvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0269c78

Please sign in to comment.