summaryrefslogtreecommitdiffstats
path: root/src/user-sessions (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-05fix TODOLennart Poettering1-2/+4
2022-04-05update TODOLennart Poettering1-0/+13
2022-04-05update TODOLennart Poettering1-0/+9
2022-04-05update TODOLennart Poettering1-0/+7
2022-04-05test-sd-device: ignore several errors when running on non-host network namespaceYu Watanabe1-22/+38
Fixes https://github.com/systemd/systemd/commit/93e04eb43bed6cd1cea344f8fb1002b62155fae2#commitcomment-70387367.
2022-04-05test-sd-device: allow several devices removed during running testYu Watanabe1-16/+37
To make the test stabler.
2022-04-05test-sd-device: device ID requires subsystemYu Watanabe1-17/+20
2022-04-05test-sd-device: log earlier which device is handledYu Watanabe1-2/+3
To make debugging the test easier.
2022-04-04test: use udevadm wait and lockYu Watanabe1-199/+39
Hopefully fixes #22911.
2022-04-04shell-completion: update for udevadmYu Watanabe2-1/+32
2022-04-04fix typoYu Watanabe2-3/+3
2022-04-04man: add annotated example for bootctl status & listZbigniew Jędrzejewski-Szmek1-4/+112
This is based on the output on my laptop, with various manual adjustments. If people have other types of entries, it'd be useful to add them here. In particular, some dual-boot entries would be nice.
2022-04-04man: fix tag syntaxZbigniew Jędrzejewski-Szmek1-29/+26
Strangely enough, having <varlistenetry>s outside of <variablelist> wasn't causing visual problems. But having two <listitem>s in one <varlistentry> resulted in the paragraphs running together in the rendered man page.
2022-04-04bootctl: unify boot entry loading for "status" and "list"Zbigniew Jędrzejewski-Szmek2-43/+54
We must be consistent in the two listings, so let's split out the loading code and call it from both verb_status() and verb_list(). This effectively makes verb_status() also call efi_loader_get_entries(). There is still some code duplicated, but that's hard to avoid. Error messages are made identical for the same errors in various places. Fixes #22580.
2022-04-04tree-wide: use 'Architecture' type consistently across the treeLennart Poettering9-18/+18
Some parts of our tree used 'Architecture' for storing architectures, others used ints. Let's unify on the former. Inspired by #22952's rework of the 'Virtualization' enum.
2022-04-04udev/net: always log error in link_load_one()Yu Watanabe1-14/+9
2022-04-04network: always log error in network_load_one() and netdev_load_one()Yu Watanabe2-37/+22
2022-04-04network: ignore all errors in loading .network filesYu Watanabe1-5/+2
This partially reverts 9202b567bcdd0c1f6a1fc2a5f36602e619960813. Fixes #22954.
2022-04-04man: document various sd_device_get_xyz() functionsLennart Poettering2-0/+213
2022-04-04udevadm: if invalid devices are specified on "info" verb, continueLennart Poettering1-6/+13
If multiple devices are specified on "udevadm info", then show data about them all even if one is missing. Return first encountered error though.
2022-04-04udevadm: add a dash of color to "udevadm info"Lennart Poettering1-14/+27
Let's make it easier to discern the "header" of device records from the "body", i.e. non-property data from property data, by using some conservative coloring.
2022-04-04udevadm: show more fields of sd_device objects in "udevadm info"Lennart Poettering2-9/+75
Let's make things easier to debug, and show a more comprehensive set of fields, extending on the existing output syntax that starts with one marker character followed by a colon and a space.
2022-04-04sd-device: actually read diskseq if told soLennart Poettering3-23/+33
sd_device_get_diskseq() actually called device_read_uevent_file() but that function didn't actually parse DISKSEQ= so far. Fix that.
2022-04-04sd-device: rename return parameter of sd_device_get_devpath() to retLennart Poettering1-3/+4
2022-04-04man: properly conditionalize kernel-install man pageLennart Poettering1-1/+1
Change f887eab1da85d0053321d43228042d90720eb77e conditionalized the building of ther kenel-install man page in the generated meson output, instead of the source in the XML markup. Thus, whenever the rules file is updated the conditionalization is lost. Correct that. Follow-up for: f887eab1da85d0053321d43228042d90720eb77e
2022-04-04journald: make use of CLAMP() in cache_space_refresh()Franck Bui1-1/+1
2022-04-04journald: make sure journal_file_open() doesn't leave a corrupted file ↵Franck Bui1-0/+3
around after failing This can be problematic especially when there's no more free disk space. Consider the following:. When disk space becomes sparse, writting to the system journal can lead to error. In this case journald attempts to make room by rotating the journals, which consists in archiving online journals and opening new ones. However opening new files is likely to fail too and in this case journal_file_open() leaves half initialized file around but in online state. Then the error is propagated and journald switches into volatile mode. Next time a new message is received by journald, it tries to open the persistent system journal file to switch automatically back to persistent mode. When opening the system journal, journal_file_open(), called by managed_journal_file_open_reliably(), finds the persistent system journal left previously and assumes that it was uncleanly closed and considers it as corrupted. The error is reported to managed_journal_file_open_reliably(), which backs the file up and attempts to create a new system file, which fails and leaves a corrupted system file again. Since this is done for each message received by journald, /var/log/message can be filled with backup files pretty quickly. To prevent this, the patch makes sure to delete the newly created file in case of error.
2022-04-04man: document new udevadm lock toolLennart Poettering2-0/+135
2022-04-04udevadm: add new "lock" verb for locking block devicesLennart Poettering4-0/+403
2022-04-04hash-funcs: tweak odering in devt_compare_func()Lennart Poettering2-6/+11
Let's order dev_t's by their major first, minor secondary. The binary encoding of the two fields is weirdly interleaved and different in kernel and glibc, hence let's focus on the generic part that works like users would expect it. So far the function is only used to compare for equality, not for sorting, hence this has no immediate effect.
2022-04-04TODOLennart Poettering1-1/+4
2022-04-04partition: use `udevadm wait`Frantisek Sumsal2-26/+26
2022-04-04test: use the new `udevadm wait` verb to wait for the loop deviceFrantisek Sumsal1-8/+2
The original workaround didn't work, as `systemd-repart` kept failing even when the `/dev/loopX` device was present: ``` [ 13.959419] H testsuite-58.sh[280]: + LOOP=/dev/loop1 [ 13.959636] H testsuite-58.sh[280]: + : [ 13.959764] H testsuite-58.sh[280]: + test -e /dev/loop1 [ 13.959895] H testsuite-58.sh[280]: + break [ 13.960023] H testsuite-58.sh[280]: + systemd-repart --pretty=yes --definitions=/tmp/testsuite-58-sector/ --seed=750b6cd5c4ae4012a15e7be3c29e6a47 --empty=require --dry-run=no /dev/loop1 [ 13.970538] H testsuite-58.sh[363]: Device '/dev/loop1' has no dm-crypt/dm-verity device, no need to look for underlying block device. [ 13.970538] H testsuite-58.sh[363]: Failed to determine canonical path for '/dev/loop1': No such file or directory [ 13.970538] H testsuite-58.sh[363]: Failed to open file or determine backing device of /dev/loop1: No such file or directory ```
2022-04-04gpt: introduce common implementation of type uuid search loopLennart Poettering1-9/+24
2022-04-04update TODOLennart Poettering1-2/+12
2022-04-04virt: move array iterators to smaller scope, and use right typeLennart Poettering1-5/+2
2022-04-04virt: make virtualization enum a named typeLennart Poettering8-107/+119
These days we have a mechanism for safely returning errnos in enum types, via definining -ERRNO_MAX as one special enu value. Let's use that for Virtualization. No change in behaviour, just some typesafety improvement.
2022-04-04virt: rework kvm with hyperv enlightenment checks a bitLennart Poettering3-27/+26
Let's avoid extending the virtualization with an "alias" entry that has the same string assigned as another. The only reason this was done was to make the patch small that added a second CPUID vendor string for kvm to the vm_table[] array. Let's instead rework the array to use struct elements that match up strings with ids. Given the array was previously mostly sparse this should be a general improvement. Fixes: #22950 Follow-up for: #22945
2022-04-04bootctl: do not call acquire_esp() twiceZbigniew Jędrzejewski-Szmek1-11/+11
That function is nasty because it modifies global state. We should call it just once in each call path. Also drop 'return 1' which doesn't seem to have any use.
2022-04-03sd-dhcp6-client: request several optionsYu Watanabe3-7/+55
Even though these options are not currently used by sd-dhcp6-client, RFC 8415 states these options MUST be requested.
2022-04-03network: dhcp6: request DNS servers or friends only when they will be usedYu Watanabe3-24/+34
2022-04-03dhcp: make option names singularYu Watanabe6-42/+42
2022-04-03sd-dhcp6-client: sort requesting optionsYu Watanabe2-12/+20
2022-04-03sd-dhcp6-client: rename req_opts_len -> n_req_optsYu Watanabe2-8/+7
As 'len' is confusing and we may misunderstand it as the size of the buffer instead of the number of options.
2022-04-03Identify kvm + hv_passthrough as "kvm"Brett Holman3-1/+3
2022-04-01build(deps): bump meson from 0.61.2 to 0.62.0 in /.github/workflowsdependabot[bot]1-3/+3
Bumps [meson](https://github.com/mesonbuild/meson) from 0.61.2 to 0.62.0. - [Release notes](https://github.com/mesonbuild/meson/releases) - [Commits](https://github.com/mesonbuild/meson/compare/0.61.2...0.62.0) --- updated-dependencies: - dependency-name: meson dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01build(deps): bump actions/labeler from 3.1.0 to 4dependabot[bot]1-1/+1
Bumps [actions/labeler](https://github.com/actions/labeler) from 3.1.0 to 4. - [Release notes](https://github.com/actions/labeler/releases) - [Commits](https://github.com/actions/labeler/compare/3d612d72e6784a1a65365cc6d33b5a001c12bf10...9fd24f1f9d6ceb64ba34d181b329ee72f99978a0) --- updated-dependencies: - dependency-name: actions/labeler dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01build(deps): bump actions/checkout from 2.4.0 to 3dependabot[bot]6-6/+6
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3. - [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/ec3a7ce113134d7a93b817d10a8272cb61118579...a12a3943b4bdde767164f792f33f40b04645d846) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01build(deps): bump github/codeql-action from 1.1.3 to 2.1.6dependabot[bot]1-3/+3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1.1.3 to 2.1.6. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/75f07e7ab2ee63cba88752d8c696324e4df67466...28eead240834b314f7def40f6fcba65d100d99b1) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2022-04-01build(deps): bump github/super-linter from 4.8.5 to 4.9.1dependabot[bot]1-1/+1
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.8.5 to 4.9.1. - [Release notes](https://github.com/github/super-linter/releases) - [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md) - [Commits](https://github.com/github/super-linter/compare/b8641364ca9a79b3cf07f3c4c59a82709cd39094...3792fe5373cf2f5b22d590fcbbc4533d735c573e) --- updated-dependencies: - dependency-name: github/super-linter dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>