1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-25 10:04:04 +03:00

mkosi: Build a disk image by default again

Now that we have a way to rebuild and reinstall systemd without
having to rebuild the image, let's default to building a disk image
again.
This commit is contained in:
Daan De Meyer 2024-07-04 12:13:31 +02:00
parent 646ed5af00
commit 96110261ee
2 changed files with 4 additions and 22 deletions

View File

@ -45,27 +45,10 @@ or:
$ mkosi qemu $ mkosi qemu
``` ```
Every time you rerun the `mkosi` command a fresh image is built, Every time you rerun the `mkosi` command a fresh image is built, incorporating
incorporating all current changes you made to the project tree. all current changes you made to the project tree. To avoid having to build a new
image all the time when iterating on a patch, add the following to
By default a directory image is built. `mkosi.local.conf`:
This requires `virtiofsd` to be installed on the host.
To build a disk image instead which does not require `virtiofsd`, add the following to `mkosi.local.conf`:
```conf
[Output]
Format=disk
```
To boot in UEFI mode instead of using QEMU's direct kernel boot, add the following to `mkosi.local.conf`:
```conf
[Host]
QemuFirmware=uefi
```
To avoid having to build a new image all the time when iterating on a patch,
add the following to `mkosi.local.conf`:
```conf ```conf
[Host] [Host]

View File

@ -4,7 +4,6 @@
InitrdInclude=initrd/ InitrdInclude=initrd/
[Output] [Output]
@Format=directory
RepartDirectories=mkosi.repart RepartDirectories=mkosi.repart
[Content] [Content]