summaryrefslogtreecommitdiffstats
path: root/mkosi.presets/system (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: Use RuntimeTrees= to mount sourcesDaan De Meyer2023-10-202-2/+1
| | | | | | | Instead of using ExtraTrees=, let's use the new RuntimeTrees= option to mount the full repository into the VM/container. Let's also store the sources under /usr/src/systemd and update the gdbinit file and vscode HACKING guide section to match the new location.
* mkosi: use different configs for Debian kernel package listLuca Boccassi2023-10-092-0/+11
| | | | | The kernel package is named after the architecture, so builds will fail if mkosi --architecture arm64 is used
* mkosi: Don't skip initrd dependency when building a directory imageDaan De Meyer2023-09-221-1/+2
| | | | | | | | mkosi now supports booting directory images in qemu using virtiofs. However, until distribution kernels build the virtiofs driver directly into the kernel, we need an initrd to make this work, so make sure to pull in the initrd preset when building a directory image that could be bootable to make this work.
* mkosi: Stop installing kernel-modules on FedoraDaan De Meyer2023-09-192-1/+4
| | | | | squashfs has been moved to kernel-modules-core so no need to install kernel-modules anymore on Fedora.
* Revert "mkosi: pin CentOS9 kernel to working version"Frantisek Sumsal2023-09-134-22/+2
| | | | | | The original issue should be fixed in kernel-5.14.0-362.el9. This reverts commit b0881b65a69e83decab3df0d2b23206cea59bb1b.
* Merge pull request #29143 from DaanDeMeyer/mkosi-presetsLuca Boccassi2023-09-092-2/+11
|\ | | | | Various mkosi improvements
| * mkosi: Only build system preset by defaultDaan De Meyer2023-09-092-2/+11
| | | | | | | | | | | | | | | | Let's not build all presets by default, but only the system preset. Also, let's only make the system preset depend on the initrd preset if we're building a bootable disk image. This means that if we build the system image as a cpio, uki or directory, the initrd preset will be skipped as it's not necessary, making the build a little faster.
* | mkosi: Make sure custom installkernel scripts are not usedDaan De Meyer2023-09-091-0/+5
| | | | | | | | | | | | | | | | The kernel has this horrible build system feature where distros can ship /sbin/installkernel and it'll automatically be used by make install. Let's make sure that doesn't happen as on Debian this script puts the kernel under the wrong name causing mkosi build failures.
* | mkosi: Allow configuring whether to do secure boot and pcrs from CLIDaan De Meyer2023-09-091-2/+2
|/
* mkosi: Don't build hid selftestsDaan De Meyer2023-09-061-1/+1
| | | | | We don't build our kernel with hid support so don't build the selftests either.
* Merge pull request #29035 from DaanDeMeyer/update-mkosiDaan De Meyer2023-09-051-0/+2
|\ | | | | mkosi: Update to latest
| * mkosi: Update to latestDaan De Meyer2023-09-051-0/+2
| | | | | | | | | | | | | | | | | | Configuration now takes priority over CLI options so we have to configure the defaults for settings that we want to allow overriding from the CLI. We also explicitly set some other settings so that they can't be overridden from the CLI anymore. For example the base and initrd image should never be made bootable so we set Bootable=no explicitly for both.
* | mkosi: Make sure gzip is installed in initrd/system imageDaan De Meyer2023-09-051-0/+1
|/ | | | | Required by loadkeys but not always a hard dependency so let's install it explicitly.
* mkosi: pin CentOS9 kernel to working versionLuca Boccassi2023-08-304-2/+22
| | | | | | | | Newer kernels are affected by a regression that causes a kernel panic on shutdown, so pin them for now. Can be reverted once that problem is fixed. https://bugzilla.redhat.com/show_bug.cgi?id=2234390
* mkosi: Add a swap partitionDaan De Meyer2023-08-161-0/+6
| | | | | systemd-oomd keeps complaining about the lack of swap partition, so let's add one.
* mkosi: Create a few subvolumes in the root partitionDaan De Meyer2023-08-151-0/+2
| | | | | Let's exercise the repart Subvolumes= setting by creating a few subvolumes in the root partition when we create it.
* mkosi: Copy sources under /usr in the imageMichal Koutný2023-08-102-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Originally, the source code was copied under /root/src. This home directory is part of root FS and the new mkosi building paradigm has only ephemeral root FS that is generated lazily. Any files placed on the root FS in the build environment are that excluded from the final image. It is useful to have source codes available in the image's runtime (not build time) environment for debugging. ExtraTrees= as used currently are ineffective, so change the destination to copy files under /usr to achieve the intention. gdb sees source files as: > 1354 ../src/src/systemctl/systemctl.c: No such file or directory. Modify gdb configration in the built image accordingly (that file cannot be in /root neither) to resolve to the moved sources. (Commit fdecbf7 ("Enable unprivileged image builds") envisions bind mounting or virtiofsd for nspawn or qemu containers respectively.)
* mkosi: Update to latestDaan De Meyer2023-08-0931-0/+572
This update introduces the explicit Dependencies= setting, instead of relying on implicit dependencies via alphanumerical ordering. We also take the opportunity to rename the "final" preset to the "system" preset, which seems like a better name.