summaryrefslogtreecommitdiffstats
path: root/mkosi.images (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: Disable debug package generation on Arch LinuxDaan De Meyer2024-03-221-1/+1
| | | | | This is extremely slow since the latest pacman release, and since we don't strip binaries, not really needed either.
* mkosi: Make sure man and man-db are installed everywhereDaan De Meyer2024-03-223-0/+3
|
* mkosi: Install systemd-experimental in OpenSUSE initrdDaan De Meyer2024-03-181-1/+1
| | | | | systemd-repart is part of systemd-experimental and we need systemd-repart in the initrd so let's install systemd-experimental in the initrd.
* mkosi: Install python3-pefile in OpenSUSE imageDaan De Meyer2024-03-181-0/+1
| | | | | | | ukify is part of systemd-experimental on OpenSUSE and not its own package. Because the OpenSUSE systemd maintainers do not want to introduce a python dependency for systemd-experimental, we have to install python3-pefile manually to make sure ukify works properly.
* mkosi: Allow booting without secure bootDaan De Meyer2024-03-131-2/+3
| | | | | Don't fail if SecureBoot is not enabled. Instead, only execute the secure boot related checks if secure boot is actually enabled.
* mkosi: Introduce packaging sources as submodulesDaan De Meyer2024-03-136-18/+3
| | | | | | | | | | | | | | | | By always cloning the latest branch commit, we can't bisect properly using mkosi as when bisecting wildly different packaging sources will be used compared to when the commit was merged. By using submodules, we track individual commits which means when bisecting the same packaging sources will be used. We use git submodules as dependabot has support for automatically making PRs to update git submodules. This commit also includes the necessary dependabot configuration to enable this. We make ubuntu/debian use the same submodule instead of adding the debian packaging sources twice by introducing a new $PKG_SUBDIR environment variable and using it instead of $DISTRIBUTION.
* mkosi: Remove some leftover shell debuggingDaan De Meyer2024-03-133-3/+3
|
* mkosi: Use same pkg/ subdirectory for debian and ubuntuDaan De Meyer2024-03-1314-44/+49
| | | | | Instead of cloning the same repository twice, let's make sure we use the same directory for both debian/ubuntu.
* mkosi: fix typoYu Watanabe2024-03-101-1/+1
| | | | Follow-up for 4d0f1451b58dbd4b94da579b800adef4f4e42c34.
* mkosi: fix typoYu Watanabe2024-03-081-1/+1
| | | | Follow-up for 4d0f1451b58dbd4b94da579b800adef4f4e42c34.
* Build distribution packages in mkosiDaan De Meyer2024-03-0753-776/+735
| | | | | | | | | | | | | | | | | | | | | | | | 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: Use specifier to refer to the output directoryDaan De Meyer2024-03-053-5/+5
| | | | Otherwise the output directory cannot be configured by users.
* mkosi: make shellcheck happyFrantisek Sumsal2024-03-051-1/+1
|
* Revert "mkosi: Don't fail on systemd-vconsole-setup.service failure for now"Frantisek Sumsal2024-03-051-3/+0
| | | | | | This doesn't seem to fail anymore. This reverts commit 84c7929cd461f6f1cc2c44c69877b9fd0676c794.
* Revert "mkosi: Disable cmdline addon test for now"Frantisek Sumsal2024-03-051-3/+6
| | | | | | Let's see if this finally works. This reverts commit e167a8283d5964ca0f903b3e362ab7e48a1ed2ab.
* mkosi: fix UKI addons testFrantisek Sumsal2024-03-056-13/+14
| | | | | | | The test hasn't been working for a while, since there's no /efi or /boot in $DESTDIR. Resolves: #31618
* Install pacman in Arch Linux imageDaan De Meyer2024-02-091-0/+1
| | | | | We install apt and dnf in the other images as well, so lets be consistent and install pacman in the Arch image as well.
* mkosi: Stop using file provides with CentOS/FedoraDaan De Meyer2024-01-311-1/+1
| | | | | | | dnf5 does not download filelists metadata by default anymore as this consists of a pretty big chunk of the repository metadata. Let's make sure the filelists metadata doesn't have to be downloaded by dnf5 by removing any usage of file provides from our package lists.
* mkosi: Use --auto-features=enabled for mesonDaan De Meyer2024-01-264-58/+19
|
* mkosi: Fix formatting in build scriptDaan De Meyer2024-01-251-20/+20
|
* dissect: add --make-archive option to convert DDI to tarballLennart Poettering2024-01-255-0/+8
|
* mkosi: install libip4tc2 in debian/ubuntuLuca Boccassi2024-01-241-0/+1
| | | | | | | It's now a dlopen library and it is installed at build time via libiptc-dev, but was never added to the running image. Follow-up for 5b5f8f8b9aef405cdc42771e7876988d5aefb51e
* mkosi: Use authselect local profile if it existsDaan De Meyer2024-01-221-2/+10
| | | | | | authselect 1.5.0 removed the "minimal" profile and added the "local" profile instead. Let's modify our post-installation script to take these changes into account.
* mkosi: Build a directory image by defaultDaan De Meyer2024-01-121-0/+3
| | | | | | | | | | | | | | | | | | | 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 ```
* mkosi: also add ssh client, to make it easier to test ssh logins via ↵Lennart Poettering2024-01-113-0/+3
| | | | AF_UNIX/AF_VSOCK
* mkosi: Update to latestDaan De Meyer2024-01-091-0/+3
| | | | | | | The mkosi github action doesn't set up the host machine for building full images anymore. Instead, only sufficient packages are installed to be able to build tools trees so we configure a fedora tools tree to build the actual images.
* mkosi: don't turn off installation of our PAM snippetsLennart Poettering2023-12-211-1/+1
| | | | | Otherwise we don't get the new PAM snippet for the uid0 PAM stack installed.
* mkosi: Add strace and gdb to base image build packagesDaan De Meyer2023-12-191-2/+4
| | | | For debugging failing tests in combination with mkosi's --debug-shell.
* Revert "mkosi: pin CentOS8 kernel to working version"Frantisek Sumsal2023-12-195-19/+5
| | | | | | | A fixed kernel finally landed on mirrors, so let's revert the C8S kernel pin. This reverts commit a64398b2ca1cdaee291550face0d1ce5f8ea52f6.
* mkosi: make sysvinit path inference consistentRichard Maw2023-12-141-1/+1
| | | | | | | | | | The integration tests use /etc/rc.d/init.d if it exists or falls back to /etc/init.d, while the mkosi.build.chroot script dereferenced /etc/init.d. This produces inconsistent results, as sometimes an image can be made that has systemd built to expect /etc/init.d but /etc/rc.d/init.d also exists.
* mkosi: Install locales in fedoraRichard Maw2023-12-141-0/+1
| | | | | | | | locale files are not generated on-demand in Fedora like they are in Debian-like systems and are typically installed from package instead. This is necessary for the locale tests, which expect en_US.UTF-8 to be available.
* mkosi: Add testuser and tar to system imageRichard Maw2023-12-132-0/+10
| | | | | | | The integration tests are installed into the image with the intention that it should be possible to run those tests, but those tests require the named user testuser and tar is needed for machined-import
* mkosi: Copy /boot into the ESP as wellDaan De Meyer2023-12-101-0/+1
| | | | | Newer mkosi will start installing UKIs to /boot so prepare for that by making sure we also copy /boot into the ESP.
* mkosi: Update comment why we can't use linux-kvm yetDaan De Meyer2023-12-041-2/+1
|
* mkosi: Drop building custom kernel logicDaan De Meyer2023-11-2913-335/+0
| | | | | | | | Now that mkosi-kernel is a thing, this logic in systemd is just mostly bitrotting since I just use mkosi-kernel these days. If I ever need to hack on systemd and the kernel in tandem, I'll just add support for building systemd to mkosi-kernel instead, so let's drop the support for building a custom kernel in systemd's mkosi configuration.
* mkosi: Install integritysetup on CentOS/FedoraDaan De Meyer2023-11-291-0/+1
| | | | Required for running integration tests
* mkosi: pin CentOS8 kernel to working versionDaan De Meyer2023-11-285-5/+19
| | | | | | Newer kernels are affected by a regression that causes a kernel panic on boot when using cgroupv2, so pin them for now. Can be reverted once that problem is fixed.
* Update to mkosi v19Daan De Meyer2023-11-2857-0/+1416
- 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