]> git.ipfire.org Git - thirdparty/mkosi.git/log
thirdparty/mkosi.git
23 months agoIntroduce config_default_compression() default factory 1836/head
Daan De Meyer [Fri, 25 Aug 2023 09:41:15 +0000 (11:41 +0200)] 
Introduce config_default_compression() default factory

23 months agoMove all environment handling into load_environment()
Daan De Meyer [Fri, 25 Aug 2023 09:33:12 +0000 (11:33 +0200)] 
Move all environment handling into load_environment()

23 months agoSupport configuring default values for settings
Daan De Meyer [Fri, 25 Aug 2023 07:27:53 +0000 (09:27 +0200)] 
Support configuring default values for settings

This allows configuring the default value for a setting. This is
useful to set a custom default value for a setting while still
allowing an explicit value from the CLI to take precedence.

To make this work properly in combination with default_factory, we
also introduce a new default_factory_depends field that lists all
the other settings that a setting's default_factory implementation
depends on. Then, when we finalize a setting's default value, we also
finalize the default value of settings it depends on so that its
default_factory function can do the right thing.

We also integrate the "paths" field from MkosiConfigSetting in this.
By default, paths will modify the defaults namespace instead of the
regular namespace, meaning their values will only be used if the
setting is not explicitly configured. The only exception to this are
mkosi.extra/, mkosi.skeleton/ and mkosi.repart/, whose values are just
merged with any explicitly specified directories.

23 months agoFix globbing
Daan De Meyer [Thu, 24 Aug 2023 14:46:16 +0000 (16:46 +0200)] 
Fix globbing

23 months agoDrop list reset on empty value
Daan De Meyer [Thu, 24 Aug 2023 14:19:41 +0000 (16:19 +0200)] 
Drop list reset on empty value

This does not work properly with python's configparser, which will
insert empty lines when doing something like the following:

```
Packages=
       abc
```

Instead, we restore the "!" operator for lists to remove values from
the list as it did originally instead of preventing values from being
added.

23 months agoMention backward compat break regarding overrides in man page
Daan De Meyer [Thu, 24 Aug 2023 11:37:20 +0000 (13:37 +0200)] 
Mention backward compat break regarding overrides in man page

23 months agoMerge pull request #1830 from DaanDeMeyer/config
Daan De Meyer [Thu, 24 Aug 2023 11:35:09 +0000 (13:35 +0200)] 
Merge pull request #1830 from DaanDeMeyer/config

Drop "first assignment wins" logic

23 months agoDrop "first assignment wins" logic 1830/head
Daan De Meyer [Thu, 24 Aug 2023 10:25:47 +0000 (12:25 +0200)] 
Drop "first assignment wins" logic

From experience in the systemd repository's usage of presets, we've
learned that we want to have fixed values for certain settings for
presets that cannot be overridden by either the CLI options or by
global config. Good examples are that the Format= of a base image
should always be "directory" and the Format= of an initrd image
should always be "cpio" or that Bootable= should always be "no" for
both the base image and the initrd image and their list of packages
should not be affected by any packages specified on the CLI.

The issue is that with "first assignment wins" logic, we need to add
an explicit "override" mechanism which almost all settings in these
presets would then use to make sure they can't be changed by CLI
options. This seems rather backwards, and is a good indication that
any settings configured in config should not be overridden by settings
set on the CLI.

Even disregarding usage of presets, any existing mkosi config will almost
certainly not be written to expect arbitrary changes in the config due
to options set on the CLI.

Also, it's currently not entirely trivial to set default values for
presets from the global config, because any values set in the global
config cannot be overridden anymore by presets. By not doing "first
assignment wins" logic, this becomes trivial as the global config can
simply set a default value and it can be overridden by presets.

Of course by removing "first assignment wins" logic, we do introduce
the issue again that "first assignment wins" solves in the first place,
which is that it becomes possible to assign a value to a setting, match
on that value and then change the setting later. We acknowledge this by
documenting it in the manual. Also, in some cases, this is exactly what
you want. For example, if you want to use a Fedora rawhide tools tree to
build CentOS 8 images, you have to first match on distribution == centos
and then set Distribution=fedora afterwards for the tools tree preset, so
this actually makes perfect sense in some cases.

While this is technically a compat break, it will only be noticed by users
doing advanced stuff with mkosi, which AFAIK does not exist yet outside of
the systemd repo. In fact even the systemd repo was not broken by this change,
so we should be OK with making it, given the large benefits we get out of it.

This commit also simplifies the interfaces of the parser and matching callbacks
to not take the namespace as an argument anymore, but to simply take the existing
value as an argument instead.

23 months agoUse logging instead of print()
Daan De Meyer [Thu, 24 Aug 2023 10:22:42 +0000 (12:22 +0200)] 
Use logging instead of print()

23 months agoReword output docs a bit
Daan De Meyer [Thu, 24 Aug 2023 07:07:22 +0000 (09:07 +0200)] 
Reword output docs a bit

23 months agoMerge pull request #1827 from DaanDeMeyer/manifest
Jörg Behrmann [Thu, 24 Aug 2023 07:04:52 +0000 (09:04 +0200)] 
Merge pull request #1827 from DaanDeMeyer/manifest

Manifest fixes

23 months agoDo not generate manifest if it is not enabled 1827/head
Daan De Meyer [Thu, 24 Aug 2023 06:46:09 +0000 (08:46 +0200)] 
Do not generate manifest if it is not enabled

23 months agoDo not generate manifest by default
Daan De Meyer [Thu, 24 Aug 2023 06:43:27 +0000 (08:43 +0200)] 
Do not generate manifest by default

Generally users are not going to be interested in the manifest so
let's not generate it by default to avoid cluttering the output
directory.

23 months agodoc: Suggest using a reflink supported FS
Michael A Cassaniti [Thu, 24 Aug 2023 05:14:42 +0000 (15:14 +1000)] 
doc: Suggest using a reflink supported FS

2 years agoMerge pull request #1822 from DaanDeMeyer/fix-archive
Daan De Meyer [Wed, 23 Aug 2023 12:21:24 +0000 (14:21 +0200)] 
Merge pull request #1822 from DaanDeMeyer/fix-archive

Archive fixes

2 years agoMake's bwrap() read-only logic optional 1822/head
Daan De Meyer [Wed, 23 Aug 2023 11:16:44 +0000 (13:16 +0200)] 
Make's bwrap() read-only logic optional

We only really need this when running scripts, so let's make it
configurable and only enable it when running scripts.

2 years agoUse default_factory to evaluate Path.cwd() later
Daan De Meyer [Wed, 23 Aug 2023 10:58:36 +0000 (12:58 +0200)] 
Use default_factory to evaluate Path.cwd() later

Otherwise, we don't take --directory into account as Path.cwd() is
evaluated on module import.

2 years agoDocument our default systemd-repart definition files
Daan De Meyer [Tue, 22 Aug 2023 17:50:50 +0000 (19:50 +0200)] 
Document our default systemd-repart definition files

2 years agoMake sure we remove /var/lib/dbus/machine-id from the image
Daan De Meyer [Tue, 22 Aug 2023 19:26:14 +0000 (21:26 +0200)] 
Make sure we remove /var/lib/dbus/machine-id from the image

Fixes #1818

2 years agomkosi: adjust messages about missing cert+key
Zbigniew Jędrzejewski-Szmek [Tue, 22 Aug 2023 11:38:03 +0000 (13:38 +0200)] 
mkosi: adjust messages about missing cert+key

2 years agoRename mount_image() to mount_base_trees()
Daan De Meyer [Tue, 22 Aug 2023 10:26:07 +0000 (12:26 +0200)] 
Rename mount_image() to mount_base_trees()

Also don't log about mounting the base trees if we're not actually
going to mount them.

2 years agoMerge pull request #1814 from DaanDeMeyer/uki-name
Daan De Meyer [Tue, 22 Aug 2023 10:41:40 +0000 (12:41 +0200)] 
Merge pull request #1814 from DaanDeMeyer/uki-name

Drop "mkosi" from UKI names

2 years agoDrop outdated comment 1814/head
Daan De Meyer [Tue, 22 Aug 2023 10:09:21 +0000 (12:09 +0200)] 
Drop outdated comment

2 years agoDrop "mkosi" from UKI names
Daan De Meyer [Tue, 22 Aug 2023 10:05:45 +0000 (12:05 +0200)] 
Drop "mkosi" from UKI names

Let's not leak that the image was generated by mkosi into the image
via the UKI name.

2 years agoFix bootloader path
Daan De Meyer [Tue, 22 Aug 2023 09:13:12 +0000 (11:13 +0200)] 
Fix bootloader path

2 years agoMake sure unit and preset directories exist in configure_ssh()
Daan De Meyer [Tue, 22 Aug 2023 07:08:18 +0000 (09:08 +0200)] 
Make sure unit and preset directories exist in configure_ssh()

Fixes #1811

2 years agoMerge pull request #1797 from DaanDeMeyer/grub
Daan De Meyer [Mon, 21 Aug 2023 15:56:57 +0000 (17:56 +0200)] 
Merge pull request #1797 from DaanDeMeyer/grub

Add back BIOS support using grub

2 years agoAdd mention of BuildSources= change to NEWS.
Daan De Meyer [Mon, 21 Aug 2023 14:56:45 +0000 (16:56 +0200)] 
Add mention of BuildSources= change to NEWS.

2 years agoAdd grub EFI support 1797/head
Daan De Meyer [Fri, 18 Aug 2023 11:58:08 +0000 (13:58 +0200)] 
Add grub EFI support

Note that we only generate the necessary menu entries for the grub
configuration to chainload into our generated UKIs, we do not yet
install grub for EFI ourselves as this is a distribution specific
mess that we still need to figure out. On Fedora, because the
shim and grub2-efi packages install directly to /boot which we
redirect to /efi, this is sufficient to boot with grub on EFI by
simply installing the shim and grub2-efi packages.

For other distributions, a post install or finalize script will be
necessary that installs grub (and optionally shim) to the correct
locations in the ESP.

2 years agoAdd back BIOS support using grub
Daan De Meyer [Mon, 14 Aug 2023 11:52:29 +0000 (13:52 +0200)] 
Add back BIOS support using grub

Let's add back support for booting on BIOS using grub. This comes
with the following limitations:

- grub does not support UKIs on BIOS, so we set up the individual
components instead
- grub cannot search partitions by PARTUUID, so we're forced to have
it find the ESP by partition number instead.

We opt to generate grub.cfg ourselves instead of relying on grub-mkconfig.
grub-mkconfig is basically like kernel-install but for grub configuration,
it has a ton of distro specific cruft that we want to ignore, so we simply
don't use it and generate the grub configuration ourselves.

To allow for unprivileged installation of grub, we can't use grub-install
as it insists on opening the root device and probing its filesystem, which
isn't possible unprivileged. Instead, we run grub-mkimage and grub-bios-setup
ourselves, and manually copy the required files to the ESP.

We use the ESP to store the kernels, initrds and grub config. In the event
that grub adds support for UKIs on BIOS in the future, we can simply modify
the generated grub configuration to use our generated UKIs instead.

2 years agoAdd QemuBios= option
Daan De Meyer [Sun, 13 Aug 2023 22:16:37 +0000 (00:16 +0200)] 
Add QemuBios= option

2 years agoMake ESP logic bootloader independent
Daan De Meyer [Mon, 21 Aug 2023 10:13:04 +0000 (12:13 +0200)] 
Make ESP logic bootloader independent

Let's simply check if a bootloader was placed in the right location
instead of having systemd-boot specific checks.

2 years agoAdd none Bootloader option
Daan De Meyer [Fri, 18 Aug 2023 11:23:52 +0000 (13:23 +0200)] 
Add none Bootloader option

This disables adding any EFI bootloader altogether. Preparation
for adding BIOS support.

2 years agoRun tput smam to make sure line wrapping is reenabled
Daan De Meyer [Fri, 18 Aug 2023 19:11:34 +0000 (21:11 +0200)] 
Run tput smam to make sure line wrapping is reenabled

When running seabios, it disables line wrapping for some weird
reason, so let's make sure we reenable it before we exit.

2 years agoDrop XFS workaround
Daan De Meyer [Thu, 17 Aug 2023 12:08:23 +0000 (14:08 +0200)] 
Drop XFS workaround

Heuristic was changed upstream so should work OOTB now.

2 years agoMake /boot/efi a symlink to /efi
Daan De Meyer [Thu, 17 Aug 2023 22:25:40 +0000 (00:25 +0200)] 
Make /boot/efi a symlink to /efi

Let's make sure all EFI stuff is installed to /efi by making
/boot/efi a symlink to /efi.

2 years agoci: Install tzdata on Debian/Ubuntu
Daan De Meyer [Thu, 17 Aug 2023 19:25:48 +0000 (21:25 +0200)] 
ci: Install tzdata on Debian/Ubuntu

To make sure a timezone is set up so systemd-firstboot doesn't
prompt for it on boot.

2 years agoUnset TMPDIR in apivfs_cmd()
Daan De Meyer [Thu, 17 Aug 2023 18:54:36 +0000 (20:54 +0200)] 
Unset TMPDIR in apivfs_cmd()

dnf seems to have issues with this as well so let's unset TMPDIR
whenever we set up APIVFS as that's a good indication something is
going to chroot and we should unset TMPDIR.

2 years agoci: Install base group for Arch
Daan De Meyer [Thu, 17 Aug 2023 15:47:47 +0000 (17:47 +0200)] 
ci: Install base group for Arch

Packages have implicit dependencies on base so let's install it.

2 years agoReset terminal cursor if tput is available
Daan De Meyer [Thu, 17 Aug 2023 12:40:23 +0000 (14:40 +0200)] 
Reset terminal cursor if tput is available

When interrupting dnf5 or other programs, they sometimes mess up
the terminal cursor. So let's make sure we reset the cursor state
when we exit mkosi if tput is available.

2 years agoMerge pull request #1804 from DaanDeMeyer/boot
Luca Boccassi [Thu, 17 Aug 2023 08:29:58 +0000 (09:29 +0100)] 
Merge pull request #1804 from DaanDeMeyer/boot

systemd-boot improvements

2 years agoSet --no-variables when we invoke bootctl 1804/head
Daan De Meyer [Thu, 17 Aug 2023 08:15:00 +0000 (10:15 +0200)] 
Set --no-variables when we invoke bootctl

We already don't install variables because we're operating on a
root directory, but if we set --no-variables we don't get warnings
from bootctl about it.

2 years agoRename install_bootloader() to install_systemd_boot()
Daan De Meyer [Thu, 17 Aug 2023 08:14:40 +0000 (10:14 +0200)] 
Rename install_bootloader() to install_systemd_boot()

2 years agoAdd Bootloader option
Daan De Meyer [Wed, 16 Aug 2023 13:33:29 +0000 (15:33 +0200)] 
Add Bootloader option

For some use cases, we don't want systemd-boot but to boot directly
from a UKI, so let's support that by bringing back the --bootloader
option.

2 years agorepart: Set sector size using SectorSize=
Michael A Cassaniti [Wed, 16 Aug 2023 10:38:55 +0000 (20:38 +1000)] 
repart: Set sector size using SectorSize=

2 years agoUse paths and path_read_text to process mkosi.version file
Daan De Meyer [Wed, 16 Aug 2023 08:18:00 +0000 (10:18 +0200)] 
Use paths and path_read_text to process mkosi.version file

2 years agoReword systemd version requirement a bit
Daan De Meyer [Tue, 15 Aug 2023 08:03:13 +0000 (10:03 +0200)] 
Reword systemd version requirement a bit

We should use wording that still makes sense when reading documentation
from the distro packaged version of mkosi as well. Let's also mention
that the systemd requirement is only for bootable disk images.

2 years agoMake sure we pass through TMPDIR to run()
Daan De Meyer [Mon, 14 Aug 2023 18:57:30 +0000 (20:57 +0200)] 
Make sure we pass through TMPDIR to run()

2 years agoRun with --offline=no when Subvolumes= is used in repart definition files
Daan De Meyer [Mon, 14 Aug 2023 16:46:36 +0000 (18:46 +0200)] 
Run with --offline=no when Subvolumes= is used in repart definition files

2 years agoskip passwd bind mounts if the path does not exist on the host
Malte Poll [Mon, 14 Aug 2023 18:03:14 +0000 (20:03 +0200)] 
skip passwd bind mounts if the path does not exist on the host

2 years agoMerge pull request #1790 from DaanDeMeyer/grub
Daan De Meyer [Mon, 14 Aug 2023 09:30:27 +0000 (11:30 +0200)] 
Merge pull request #1790 from DaanDeMeyer/grub

Various cleanups

2 years agoDocument QemuCdrom= 1790/head
Daan De Meyer [Sun, 13 Aug 2023 22:14:54 +0000 (00:14 +0200)] 
Document QemuCdrom=

2 years agoFix typo
Daan De Meyer [Sun, 13 Aug 2023 22:13:26 +0000 (00:13 +0200)] 
Fix typo

2 years agoMake sure we Clean up cd-rom image after qemu exits
Daan De Meyer [Sun, 13 Aug 2023 20:30:03 +0000 (22:30 +0200)] 
Make sure we Clean up cd-rom image after qemu exits

2 years agoFix gray ansi color definition
Daan De Meyer [Sun, 13 Aug 2023 20:22:23 +0000 (22:22 +0200)] 
Fix gray ansi color definition

We weren't actually getting gray output with the previous definition.
Let's steal the one from systemd to make it work.

2 years agoImport full modules instead of individual members
Daan De Meyer [Sun, 13 Aug 2023 18:30:03 +0000 (20:30 +0200)] 
Import full modules instead of individual members

Let's lean more towards importing full modules except for a few
exceptions like typing and Path from pathlib.

2 years agoRework make_image_output()
Daan De Meyer [Sun, 13 Aug 2023 17:40:01 +0000 (19:40 +0200)] 
Rework make_image_output()

Instead of returning a tuple containing all the bits we're interested
in, let's just return a typed version of the repart json output and
calculate what we need based on that in install_unified_kernel(). We
also move the split paths logic into make_image().

2 years agoIntroduce build_initrd() and build_kernel_modules_initrd()
Daan De Meyer [Sun, 13 Aug 2023 14:40:48 +0000 (16:40 +0200)] 
Introduce build_initrd() and build_kernel_modules_initrd()

2 years agoRemove git blame section from README
Dridi Boukelmoune [Sun, 13 Aug 2023 20:52:42 +0000 (20:52 +0000)] 
Remove git blame section from README

The paragraph introduced in #585 became stale after #1777 was merged.

2 years agoupdate man page link
Leif Liddy [Sun, 13 Aug 2023 17:10:15 +0000 (19:10 +0200)] 
update man page link

2 years agoLog systemd-repart json output at debug level
Daan De Meyer [Sun, 13 Aug 2023 13:54:37 +0000 (15:54 +0200)] 
Log systemd-repart json output at debug level

2 years agoUse copy.deepcopy() to copy os.environ
Daan De Meyer [Sat, 12 Aug 2023 20:57:41 +0000 (22:57 +0200)] 
Use copy.deepcopy() to copy os.environ

Otherwise any changes we make to os.environ propagate into our
shallow copy.

2 years agoAdd QemuCdrom= option
Daan De Meyer [Sat, 12 Aug 2023 12:41:52 +0000 (14:41 +0200)] 
Add QemuCdrom= option

This attaches the image as a CD-ROM instead of a hard drive to the
virtual machine.

2 years agoset Dir::Etc option on apt based distros
Malte Poll [Sat, 12 Aug 2023 11:34:08 +0000 (13:34 +0200)] 
set Dir::Etc option on apt based distros

2 years agoPass through stdin when we call systemd-repart with --image=
Daan De Meyer [Fri, 11 Aug 2023 10:11:22 +0000 (12:11 +0200)] 
Pass through stdin when we call systemd-repart with --image=

When mounting an image, systemd's dissect logic might prompt for
verity/encryption passphrases. Let's make sure the user can enter
those if needed.

2 years agoMake sure we use python-pefile from the tools tree
Daan De Meyer [Thu, 10 Aug 2023 16:44:18 +0000 (18:44 +0200)] 
Make sure we use python-pefile from the tools tree

2 years agoMake sure we load pefile early
Daan De Meyer [Thu, 10 Aug 2023 14:59:03 +0000 (16:59 +0200)] 
Make sure we load pefile early

Otherwise we'll run into trouble later if we're using a tools tree.

2 years agoRelease 15.1 v15.1
Luca Boccassi [Thu, 10 Aug 2023 12:08:05 +0000 (13:08 +0100)] 
Release 15.1

2 years agoUpdate NEWS
Daan De Meyer [Thu, 10 Aug 2023 11:57:09 +0000 (13:57 +0200)] 
Update NEWS

2 years agoMerge pull request #1781 from keszybz/man-page-prep
Daan De Meyer [Thu, 10 Aug 2023 11:52:59 +0000 (13:52 +0200)] 
Merge pull request #1781 from keszybz/man-page-prep

Add script to prepare man pages, retitle release commits

2 years agoRetitle release commits to "Release vNN" 1781/head
Zbigniew Jędrzejewski-Szmek [Thu, 10 Aug 2023 11:30:16 +0000 (13:30 +0200)] 
Retitle release commits to "Release vNN"

I think this is just nicer and stands out more in the git log.

2 years agoAdd helper to build the man page
Zbigniew Jędrzejewski-Szmek [Thu, 10 Aug 2023 11:29:44 +0000 (13:29 +0200)] 
Add helper to build the man page

2 years agoDon't use capsh to figure out capabilities
Daan De Meyer [Thu, 10 Aug 2023 11:19:44 +0000 (13:19 +0200)] 
Don't use capsh to figure out capabilities

2 years agoMerge pull request #1779 from DaanDeMeyer/tmpfs
Daan De Meyer [Thu, 10 Aug 2023 11:11:21 +0000 (13:11 +0200)] 
Merge pull request #1779 from DaanDeMeyer/tmpfs

Make sure the private tmpfs in bwrap() doesn't hide workspace

2 years agoOnly unshare network namespace if we have CAP_NET_ADMIN 1779/head
Daan De Meyer [Thu, 10 Aug 2023 10:47:13 +0000 (12:47 +0200)] 
Only unshare network namespace if we have CAP_NET_ADMIN

2 years agoMake sure the private tmpfs in bwrap() doesn't hide workspace
Daan De Meyer [Thu, 10 Aug 2023 10:31:22 +0000 (12:31 +0200)] 
Make sure the private tmpfs in bwrap() doesn't hide workspace

The workspace might be in /tmp so we need to make sure we mount it
first before we mount the workspace so that the workspace is on top
of the private tmpfs.

2 years agoMerge pull request #1778 from DaanDeMeyer/all-packages
Jörg Behrmann [Thu, 10 Aug 2023 10:22:20 +0000 (12:22 +0200)] 
Merge pull request #1778 from DaanDeMeyer/all-packages

List all subpackages in pyproject.toml

2 years agoRemove unused package-data globs 1778/head
Daan De Meyer [Thu, 10 Aug 2023 10:09:16 +0000 (12:09 +0200)] 
Remove unused package-data globs

2 years agoAlso add mkosi.1 to package-data
Daan De Meyer [Thu, 10 Aug 2023 10:05:40 +0000 (12:05 +0200)] 
Also add mkosi.1 to package-data

2 years agoAdd mkosi.md to package-data
Daan De Meyer [Thu, 10 Aug 2023 09:57:03 +0000 (11:57 +0200)] 
Add mkosi.md to package-data

2 years agoDon't try to tun timedatectl or ssh-add if not available
Daan De Meyer [Thu, 10 Aug 2023 09:54:25 +0000 (11:54 +0200)] 
Don't try to tun timedatectl or ssh-add if not available

2 years agoList all subpackages in pyproject.toml
Daan De Meyer [Thu, 10 Aug 2023 09:40:52 +0000 (11:40 +0200)] 
List all subpackages in pyproject.toml

2 years agoBump version numbers for v15 v15
Luca Boccassi [Thu, 10 Aug 2023 08:46:24 +0000 (09:46 +0100)] 
Bump version numbers for v15

2 years agoRemove .git-blame-ignore-revs file
Daan De Meyer [Thu, 10 Aug 2023 08:24:52 +0000 (10:24 +0200)] 
Remove .git-blame-ignore-revs file

This has outlived its usefulness, there's no need to ignore the black
commit anymore when doing a git blame due to its age.

2 years agoUpdate do-a-release.sh script
Daan De Meyer [Thu, 10 Aug 2023 08:17:00 +0000 (10:17 +0200)] 
Update do-a-release.sh script

2 years agoReorder fields of MkosiConfig to match summary() and MkosiConfigSettings
Daan De Meyer [Thu, 10 Aug 2023 07:51:22 +0000 (09:51 +0200)] 
Reorder fields of MkosiConfig to match summary() and MkosiConfigSettings

2 years agoMerge pull request #1679 from behrmann/helpverb
Daan De Meyer [Wed, 9 Aug 2023 16:13:28 +0000 (18:13 +0200)] 
Merge pull request #1679 from behrmann/helpverb

Make docs available via the help verb.

2 years agoadd --doc-format option for choosing the output of the documentation verb 1679/head
Joerg Behrmann [Wed, 9 Aug 2023 13:48:47 +0000 (15:48 +0200)] 
add --doc-format option for choosing the output of the documentation verb

2 years agoadd NEWS entry for documentation verb.
Joerg Behrmann [Tue, 8 Aug 2023 11:16:31 +0000 (13:16 +0200)] 
add NEWS entry for documentation verb.

2 years agoadd symlink to docs in resources
Joerg Behrmann [Mon, 17 Jul 2023 13:36:18 +0000 (15:36 +0200)] 
add symlink to docs in resources

2 years agoaction: Don't install pandoc
Joerg Behrmann [Mon, 17 Jul 2023 13:50:58 +0000 (15:50 +0200)] 
action: Don't install pandoc

2 years agomake mkosi docs from resources available via the documentation verb
Joerg Behrmann [Mon, 17 Jul 2023 13:34:53 +0000 (15:34 +0200)] 
make mkosi docs from resources available via the documentation verb

This allows, especially when running different versions of mkosi, to always
have the right documentation on hand no matter how that version of mkosi was
installed.

2 years agomove mkosi.md to mkosi/resources
Joerg Behrmann [Mon, 17 Jul 2023 13:34:12 +0000 (15:34 +0200)] 
move mkosi.md to mkosi/resources

2 years agoReplace dd with pefile's get_data() method
Daan De Meyer [Wed, 9 Aug 2023 12:24:07 +0000 (14:24 +0200)] 
Replace dd with pefile's get_data() method

2 years agoci: Add job to check that we can still generate the man page
Daan De Meyer [Wed, 9 Aug 2023 14:50:01 +0000 (16:50 +0200)] 
ci: Add job to check that we can still generate the man page

2 years agoIntroduce preset dependencies
Daan De Meyer [Tue, 8 Aug 2023 13:57:14 +0000 (15:57 +0200)] 
Introduce preset dependencies

Instead of building presets in alphanumerical order, let's introduce
a proper concept of dependencies. Dependencies are configured with
the new "Dependencies=" option in the new "[Preset]" section. All
presets configured with "Dependencies=" are built before the current
preset.

We drop the alphanumerical preset in favor of explicit dependencies.

2 years agoSet agetty autologin credentials by default
Daan De Meyer [Wed, 9 Aug 2023 09:49:49 +0000 (11:49 +0200)] 
Set agetty autologin credentials by default

Eventually we'll replace --autologin with these but for now let's
set both.

2 years agoMake sure we output signed kernel instead of unsigned kernel
Daan De Meyer [Wed, 9 Aug 2023 07:44:01 +0000 (09:44 +0200)] 
Make sure we output signed kernel instead of unsigned kernel

Fixes #1589

2 years agoPrefer gcpio over cpio
Daan De Meyer [Wed, 9 Aug 2023 08:01:46 +0000 (10:01 +0200)] 
Prefer gcpio over cpio

Fixes #1201

2 years agoSet GPGTTY when calling gpg
Daan De Meyer [Wed, 9 Aug 2023 07:53:07 +0000 (09:53 +0200)] 
Set GPGTTY when calling gpg

Fixes #351