summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | conf-parser: Add root argument to config_parse_many()Daan De Meyer2023-05-128-7/+13
| | | |
| * | | repart: Make sure r is declared lastDaan De Meyer2023-05-121-1/+1
| | | |
| * | | repart: Read arguments directly instead of passing them inDaan De Meyer2023-05-121-8/+4
| | | |
* | | | units: Add missing dependencies on initrd-switch-root.targetDaan De Meyer2023-05-138-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These are all services that valid to be run in the initrd, so let's make sure they have the appropriate dependencies on initrd-switch-root.target so that they are stopped when we're about to switch root.
* | | | Fix Positivo CF40CM-V2 key toggle touchpaddrosdeck2023-05-131-0/+2
| | | |
* | | | core: fix memory leak during deserializationFrantisek Sumsal2023-05-132-3/+11
|/ / / | | | | | | | | | | | | | | | when activation-details-unit-name is encountered multiple times. Resolves: #27623
* | | mkosi: Use zstd compression on non-centos distrosDaan De Meyer2023-05-123-3/+16
| | | | | | | | | | | | | | | Just because centos doesn't support it doesn't mean we can't use it on the other distros.
* | | mkosi: Update .gitignore to account for changed output locationsDaan De Meyer2023-05-121-1/+2
| | |
* | | mkosi: Only build initrd if Bootable= is enabled or set to "auto"Daan De Meyer2023-05-121-0/+3
| | | | | | | | | | | | | | | With this change, Bootable= can be set to "no" for a faster build intended for booting in systemd-nspawn but not qemu.
* | | mkosi: Use initrd symlink without format/compressionDaan De Meyer2023-05-121-1/+1
| | | | | | | | | | | | | | | This way, we can change the compression (and even the output format) in the future without having to modify the final preset.
* | | mkosi: Update to latestDaan De Meyer2023-05-121-1/+1
| |/ |/|
* | core: Try to initialize TERM from systemd.tty.term.console as wellDaan De Meyer2023-05-122-2/+10
| | | | | | | | | | | | We already have the systemd.tty.xxx kernel cmdline arguments for configuring tty's for services, let's make sure the term cmdline argument applies to pid1 as well.
* | Merge pull request #27565 from yuwata/static-destructDaan De Meyer2023-05-123-33/+108
|\ \ | | | | | | static-destruct: support clearing array on exit
| * | static-destruct: introduce STATIC_ARRAY_DESTRUCTOR_REGISTER()Yu Watanabe2023-05-092-8/+83
| | |
| * | static-destruct: several cleanupsYu Watanabe2023-05-091-21/+21
| | | | | | | | | | | | No functional changes, preparation for later commits.
| * | memory-util: make ArrayCleanup passed to array_cleanup() constYu Watanabe2023-05-091-4/+4
| | | | | | | | | | | | Should not change any behavior, preparation for later commits.
* | | mkfs-util: Add quiet argument to make_filesystem()Daan De Meyer2023-05-126-21/+56
| | | | | | | | | | | | | | | | | | | | | | | | We default to quiet operation everywhere except for repart, where we disable quiet and have the mkfs tools write to stdout. We also make sure --quiet or equivalent is implemented for all mkfs tools.
* | | core: Check if any init exists before switching rootDaan De Meyer2023-05-121-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we switch root and can't execute an init program afterwards, we're completely stuck as we can't go back to the initramfs to start emergency.service as it will have been completely removed by the switch root operation. To prevent leaving users with a completely undebuggable system, let's at least check before we switch root whether at least one of the init programs we might want to execute actually exist, and fail early if none of them exists.
* | | core: Make sure systemctl exit <X> works outside of a containerDaan De Meyer2023-05-122-7/+2
| | | | | | | | | | | | | | | | | | | | | When running in a VM, we now support propagating the exit status via a vsock notify socket, so drop the restrictions on propagating an exit status when not in a container to make sure this works properly.
* | | Merge pull request #27618 from DaanDeMeyer/fstab-generatorYu Watanabe2023-05-121-7/+19
|\ \ \ | | | | | | | | Fstab generator fixes
| * | | fstab-generator: Fix log messageDaan De Meyer2023-05-111-1/+1
| | | |
| * | | fstab-generator: Unset kernel cmdline options if empty value is givenDaan De Meyer2023-05-111-6/+6
| | | |
| * | | fstab-generator: Take systemd.verity= into accountDaan De Meyer2023-05-111-0/+12
| | | | | | | | | | | | | | | | Disable verity logic if systemd.verity= switch is disabled.
* | | | test-network: add tests for static lease matching with chaddrYu Watanabe2023-05-121-0/+11
| | | | | | | | | | | | | | | | Follow-up for 4646cdaa378fa2aab7334a80228d8a94b316763b (#27313).
* | | | Merge pull request #27611 from yuwata/core-mount-escape-utf8Yu Watanabe2023-05-122-41/+61
|\ \ \ \ | | | | | | | | | | core/mount: escape invalid utf8 chars
| * | | | core/mount: escape invalid UTF8 char in dbus replyYu Watanabe2023-05-111-12/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When What= or Options= may contain invalid UTF8 chars. Replaces aaf7b0e41105d7b7cf30912cdac32820f011a219 (#27541).
| * | | | Revert "core/mount: replace invalid UTF-8 code points in "what" and "options""Yu Watanabe2023-05-111-29/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit aaf7b0e41105d7b7cf30912cdac32820f011a219. Not only /proc/mountinfo, .mount units not started yet may contain invalid UTF-8 chars.
* | | | | cryptenroll: actually allow using multiple "special" strings when wipingFrantisek Sumsal2023-05-112-6/+6
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The systemd-cryptenroll man page states: Takes a comma separated list of numeric slot indexes, or the special strings ..., or any combination of these strings or numeric indexes, in which case all slots matching either are wiped. but we'd allow only one special string at any given time as the value was not ORed when assigning. So, for example, --wipe=recovery,password would actually become --wipe=password, etc.
* | | | Merge pull request #27610 from DaanDeMeyer/mkosi-trivialDaan De Meyer2023-05-118-16/+32
|\ \ \ \ | |/ / / |/| | | mkosi: Trivial fixes
| * | | mkosi: Install apt in Debian/Ubuntu imagesDaan De Meyer2023-05-111-0/+1
| | | |
| * | | mkosi: Run in debug modeDaan De Meyer2023-05-111-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's make sure we log more of what mkosi's doing so we can debug issues better. Note this also makes mkosi set SYSTEMD_LOG_LEVEL=debug when running programs so we'll get all the systemd debug logging as well.
| * | | mkosi: Disable pamconfdirDaan De Meyer2023-05-111-0/+1
| | | | | | | | | | | | | | | | Let's use the distro's pam config instead of installing the systemd one.
| * | | mkosi: Add back accidentally removed .gdbinit fileDaan De Meyer2023-05-111-0/+3
| | | |
| * | | mkosi: Enable systemd-timesyncd by defaultDaan De Meyer2023-05-111-0/+3
| | | |
| * | | mkosi: Disable auditd in the preset instead of masking itDaan De Meyer2023-05-112-1/+3
| | | |
| * | | mkosi: Disable dnf-makecache.service by defaultDaan De Meyer2023-05-111-0/+5
| | | |
| * | | mkosi: Make sure we use systemd-networkd-wait-onlineDaan De Meyer2023-05-111-1/+2
| | | | | | | | | | | | | | | | Disable the NetworkManager one and pull in the networkd one explicitly.
| * | | mkosi: Replace root password setting with a credentialDaan De Meyer2023-05-112-1/+2
| | | |
| * | | mkosi: Disable create-log-dirs optionDaan De Meyer2023-05-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | We run the build as a regular user and create-log-dirs requires to run as root so let's disable the option to avoid error noise during the install phase.
| * | | mkosi: Stop creating test users in prepare scriptsDaan De Meyer2023-05-111-6/+0
| | | | | | | | | | | | | | | | | | | | This was added for opensuse to make the tests pass but doesn't seem to be needed anymore after recent changes so let's drop it.
| * | | mkosi: Don't run slow tests by defaultDaan De Meyer2023-05-112-1/+2
|/ / / | | | | | | | | | | | | Instead, allow enabling it via an environment variable and do so in CI.
* | | Merge pull request #27539 from esposem/ukify_pesignLuca Boccassi2023-05-113-53/+196
|\ \ \ | |_|/ |/| | ukify: support pesign as alternative to sbsign
| * | src/ukify/test/test_ukify: fix skipped testsEmanuele Giuseppe Esposito2023-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some tests are skipped because initrd extracted from bootctl is "/boot/initramfs-5.14.0-284.el9.x86_64.img $tuned_initrd" and not just "/boot/initramfs-5.14.0-284.el9.x86_64.img". Therefore split and remove the additional garbage. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
| * | src/ukify/test/test_ukify: add pesign unit testEmanuele Giuseppe Esposito2023-05-101-2/+53
| | | | | | | | | | | | Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
| * | ukify: support pesign as alternative to sbsignEmanuele Giuseppe Esposito2023-05-102-48/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sbsign is not available everywhere, for example RHEL does not have it. Add pesign as alternative to it. pesign will use options "--secureboot-certificate-name" (mandatory) and "--secureboot-certificate-dir" (optional), while sbsign will use "--secureboot-private-key" and "--secureboot-certificate". By default, use sbsign. If no key/cert is provided or sbsign is not found, try pesign. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
| * | ukify: typo in doc and print when package is missingEmanuele Giuseppe Esposito2023-05-102-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a package is missing, a subprocess is started with None as command argument. Error raised by subprocess is therefore not helpful at all to understand what needs to be done to fix that error. Also fix doc since systemd-stub will look for .cmdline files, and not .cmdline.efi files. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
* | | Merge pull request #27596 from yuwata/drop-pureYu Watanabe2023-05-114-13/+15
|\ \ \ | | | | | | | | drop two more inappropriate _pure_ attributes and several cleanups
| * | | core: replace hashmap_get() with hashmap_contains() where appropriateYu Watanabe2023-05-101-4/+4
| | | |
| * | | core: drop unused argumentYu Watanabe2023-05-101-5/+3
| | | |
| * | | core: several cleanups for job_get_timeout()Yu Watanabe2023-05-102-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | - add missing assertion, - rename the argument for storing result, - always initialize result on success.