summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| * | tree-wide: drop _pure_ attribute from non-pure functionsYu Watanabe2023-05-102-2/+2
| | | | | | | | | | | | | | | Prompted by #27595. Follow-ups for 6723c28f36ea566faf61d3610012cd89f95ee4a0.
* | | Merge pull request #27603 from mrc0mmand/more-test-shenanigansYu Watanabe2023-05-1170-464/+415
|\ \ \ | | | | | | | | test: merge PID1-related tests into TEST-07-PID1
| * | | test: abstract the common test parts into a utility scriptFrantisek Sumsal2023-05-107-73/+150
| | | | | | | | | | | | | | | | | | | | Also, instead of bailing out on the first failed subtest, always run all subtests and print a summary at the end (with an appropriate exit code).
| * | | test: merge TEST-20-MAINPIDGAMES into TEST-07-PID1Frantisek Sumsal2023-05-105-46/+39
| | | |
| * | | test: merge TEST-51-ISSUE-16115 into TEST-07-PID1Frantisek Sumsal2023-05-108-34/+16
| | | |
| * | | test: merge TEST-47-ISSUE-14566 into TEST-07-PID1Frantisek Sumsal2023-05-107-45/+32
| | | |
| * | | test: move TEST-23's units into a dedicated subfolderFrantisek Sumsal2023-05-1012-0/+1
| | | | | | | | | | | | | | | | To remain consistent with other tests.
| * | | test: merge TEST-12-ISSUE-3171 into TEST-07-PID1Frantisek Sumsal2023-05-105-70/+50
| | | |
| * | | test: merge TEST-11-ISSUE-3166 into TEST-07-PID1Frantisek Sumsal2023-05-106-34/+16
| | | |
| * | | test: merge TEST-10-ISSUE-2467 with TEST-07-PID1Frantisek Sumsal2023-05-108-40/+27
| | | |
| * | | test: merge TEST-09-ISSUE-2691 into TEST-07-PID1Frantisek Sumsal2023-05-104-24/+5
| | | |
| * | | test: merge TEST-08-ISSUE-2730 into TEST-07-PID1Frantisek Sumsal2023-05-1010-61/+23
| | | |
| * | | test: rename TEST-07-ISSUE-1981 to TEST-07-PID1Frantisek Sumsal2023-05-104-33/+52
| |/ /
* | | build(deps): bump actions/checkout from 3.3.0 to 3.5.2dependabot[bot]2023-05-1111-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.5.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/ac593985615ec2ede58e132d2e21d2b1cbd6127c...8e5e7e5ab8b370d6c329ec480221332ada57f0ab) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* | | build(deps): bump meson from 1.0.1 to 1.1.0 in /.github/workflowsdependabot[bot]2023-05-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [meson](https://github.com/mesonbuild/meson) from 1.0.1 to 1.1.0. - [Release notes](https://github.com/mesonbuild/meson/releases) - [Commits](https://github.com/mesonbuild/meson/compare/1.0.1...1.1.0) --- updated-dependencies: - dependency-name: meson dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* | | build(deps): bump actions/upload-artifact from 3.1.1 to 3.1.2dependabot[bot]2023-05-112-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.1 to 3.1.2. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3.1.1...0b7f8abb1508181956e8e162db84b466c27e18ce) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>