summaryrefslogtreecommitdiffstats
path: root/mkosi.conf (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: Various mkosi integration test improvementsDaan De Meyer2024-04-231-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Stop using logging module since the default output formatting is pretty bad. Prefer print() for now. - Log less, logging the full mkosi command line is rather verbose, especially when it contains multi-line dropins. - Streamline the journalctl command we output for debugging failed tests. - Don't force usage of the disk image format. - Don't force running without unit tests. - Don't force disabling RuntimeBuildSources. - Update documentation to streamline the command for running a single test and remove sudo as it's not required anymore. - Improve the console output by having the test unit's output logged to both the journal and the console. - Disable journal console log forwarding as we have journal forwarding as a better alternative. - Delete existing journal file before running test. - Delete journal files of succeeded tests to reduce disk usage. - Rename system_mkosi target to just mkosi - Pass in mkosi source directory explicitly to accomodate arbitrary build directory locations. - Add test interactive debugging if stdout is connected to a tty - Stop explicitly using the 'system' image since it'll likely be dropped soon. - Only forward journal if we're not running in debugging mode. - Stop using testsuite.target and instead just add the necessary extras to the main testsuite unit via the credential dropin. - Override type to idle so test output is not interleaved with status output. - Don't build mkosi target by default - Always add the mkosi target if mkosi is found - Remove dependency of the integration tests on the mkosi target as otherwise the image is always built, even though we configure it to not be built by default. - Move mkosi output, cache and build directory into build/ so that invocations from meson and regular invocations share the same directories. - Various aesthetic cleanups.
* mkosi: Build command line into the imageDaan De Meyer2024-04-191-20/+21
| | | | | This allows using systemd-vmspawn itself while still getting a decent experience.
* test: Add mkosi-based integration test runnerRichard Maw2024-04-181-1/+2
| | | | | The first two tests are included to ensure parallel test execution is demonstrable.
* mkosi: Extend default device timeout to 20 secondsRichard Maw2024-04-181-1/+1
| | | | | | A moderately heavily loaded system booting an image without a rootfs may timeout before the root device appears. 20 seconds is enough for a VM with 2 CPUs and 2GB RAM.
* Update debugging with vscode sectionDaan De Meyer2024-04-161-0/+1
| | | | | | | - We have ssh-generator now, so need for mkosi's Ssh= option anymore. - By enabling RuntimeBuildSources= by default, we don't need the gdb config file in the image anymore, since the build and source directories will be mounted at the expected locations.
* mkosi: Don't log debug logs to consoleDaan De Meyer2024-04-141-1/+1
| | | | | | | We have various tools that log directly to the console, as well as pid1 which logs directly to the console when running in a container. Let's make sure that we don't log debug messages to the console by default, but keep the behavior when running in CI.
* mkosi: Update to latestDaan De Meyer2024-04-141-1/+1
|
* mkosi: Switch to linux-virtual on UbuntuDaan De Meyer2024-03-291-2/+0
| | | | | This now finally has support for credentials and erofs so let's switch to this much smaller kernel package that doesn't pull in linux-firmware.
* mkosi: Enable log contextDaan De Meyer2024-03-221-0/+2
|
* mkosi: Add BuildSourcesEphemeral=yesDaan De Meyer2024-03-081-0/+1
| | | | | | Required to make sure that any changes packaging specs make to the source files are thrown away after the build so they don't mess with the source tree.
* Build distribution packages in mkosiDaan De Meyer2024-03-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Instead of running meson install and hoping for the best, let's build distribution packages from the downstream packaging specs. This gets us the following: - Vastly simplified mkosi scripts since we don't need a separate initrd image anymore but can just reuse the default mkosi initrd. - Almost everything can move to the base image as its not the basis anymore for the initrd and as such we don't need to care about the size anymore. - The systemd packages that get pulled in as dependencies of other packages get properly uninstalled and replaced with our packages that we built instead of just installing on top of an existing systemd installation with no guarantee that everything from that previous installation was removed. - Much better testing coverage as what we're testing is much closer to what will actually be deployed in distributions. - Immediate feedback if something we change breaks distribution packaging - We get integration with the distribution for free as we'll automatically use the proper directories and such instead of having to hack this into a mkosi build script. - ...
* mkosi: Allow users to configure the build and cache directoryDaan De Meyer2024-03-051-2/+2
|
* mkosi: Set minimum versionDaan De Meyer2024-03-051-0/+1
| | | | | This will only be taken into account by newer mkosi versions but it'll at least save some pain from running on a too old version.
* mkosi: Build a directory image by defaultDaan De Meyer2024-01-121-0/+1
| | | | | | | | | | | | | | | | | | | Both building and booting a directory image is much faster than building or booting a disk image so let's default to a directory image. In CI, we stick to a disk image to make sure that keeps working as well. The only extra dependency this introduces is virtiofsd which is packaged in all distributions except Debian stable. For users hacking on systemd on Debian stable, a disk image can be built by writing the following to mkosi.local.conf: ``` [Output] Format=disk ```
* Merge pull request #30464 from CodethinkLabs/misc-integration-test-fixesLuca Boccassi2023-12-181-1/+1
|\ | | | | Misc integration test fixes
| * mkosi: Allow the output directory to be overriddenRichard Maw2023-12-131-1/+1
| | | | | | | | | | For integration tests it would be preferable to operate on a copy so tests can be run in parallel and avoid interfering.
* | mkosi: use systemd.firstboot=no to turn of interactivity at bootLennart Poettering2023-12-181-2/+1
|/ | | | | | Now that creds are processed even if systemd.firstboot=no is set, we can use it to disable the root pw prompt *and* the new homectl prompt at the same time, without breaking the creds stuff.
* Update to mkosi v19Daan De Meyer2023-11-281-0/+39
- Use mkosi.images/ instead of mkosi.presets/ - Use the .chroot suffix to run scripts in the image - Use BuildSources= match for the kernel build - Move 10-systemd.conf to mkosi.conf and rely on mkosi.local.conf for local configuration