]> git.ipfire.org Git - thirdparty/mkosi.git/commit
Support direct kernel booting a disk image 1877/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 7 Sep 2023 13:08:41 +0000 (15:08 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 7 Sep 2023 13:44:59 +0000 (15:44 +0200)
commit8f26a6da17e6c56c4135ce0e87426539186a0935
treea47782c11dbae87a730c15c03c93ee6b80f745f6
parent1a50ddea9d87225756961b860032804c0b315c04
Support direct kernel booting a disk image

This requires two things:
1. We need to generate a split initrd again to pass to -initrd
2. We need to synthesize a root= argument as we can't rely on
gpt-auto-generator since we're not using EFI.

We move the partition and root= specific stuff to a new file
partition.py so we can access it from qemu.py as well.

We also introduce extract_pe_section() since we now use the logic
twice.
mkosi/__init__.py
mkosi/config.py
mkosi/partition.py [new file with mode: 0644]
mkosi/qemu.py