summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | kernel-install: propagate failures in pluginsYu Watanabe2023-11-201-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression introduced by 42551ea7e923bac5df12b20e3e735a487d38dcd5. In the shell script version, plugin failures are propagated to the caller. But after the commit, failures in plugins are logged, but never propagated as the exit code of the execution. Fixes #30087.
* | | | | man: add note about journald forwarding being syncVito Caputo2023-11-201-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This footgun should at least be documented, if there's not going to be a shortcut setting to establish the async `journalctl --follow` equivalent. Fixes: https://github.com/systemd/systemd/issues/2815
* | | | | man: Fix example for systemd-runMartin Joerg2023-11-201-1/+1
| |_|/ / |/| | |
* | | | test-condition: skip group test during Debian package buildLuca Boccassi2023-11-201-5/+8
|/ / / | | | | | | | | | | | | | | | | | | The group names won't match in a package build chroot and the test might fail, skip it. https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=hppa&ver=255%7Erc2-2&stamp=1700424353&raw=0
* | | hwdb: add Predator PHN16-71onenowy2023-11-191-0/+6
| | | | | | | | | enable microphone mute, predator sense button and fix the keyboard backlight up button changes display brightness.
* | | Merge pull request #30070 from weblate/weblate-systemd-masterYu Watanabe2023-11-1838-10055/+3692
|\ \ \ | |/ / |/| | Translations update from Fedora Weblate
| * | po: Translated using Weblate (Chinese (Simplified) (zh_CN))Charles Lee2023-11-181-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | Currently translated at 100.0% (227 of 227 strings) Co-authored-by: Charles Lee <lchopn@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/zh_CN/ Translation: systemd/main
| * | po: Update translation filesWeblate2023-11-1838-10031/+3666
| | | | | | | | | | | | | | | | | | | | | | | | Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Co-authored-by: Weblate <noreply@weblate.org> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ Translation: systemd/main
| * | po: Translated using Weblate (Chinese (Simplified) (zh_CN))Charles Lee2023-11-181-43/+44
|/ / | | | | | | | | | | | | | | Currently translated at 100.0% (227 of 227 strings) Co-authored-by: Charles Lee <lchopn@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/zh_CN/ Translation: systemd/main
* | network/dhcp: actually refuse to assign DHCP option when an invalid string ↵Yu Watanabe2023-11-182-1/+8
| | | | | | | | | | | | is passed Prompted by #30029.
* | Merge pull request #30078 from yuwata/test-setup-loggingLuca Boccassi2023-11-1839-7/+102
|\ \ | | | | | | test: call test_setup_logging()
| * | fuzz: always call fuzz_setup_logging()Yu Watanabe2023-11-175-0/+10
| | |
| * | test: always call test_setup_logging()Yu Watanabe2023-11-1734-7/+92
|/ /
* | mkosi ci: enable jammy-proposedLuca Boccassi2023-11-171-0/+5
| | | | | | | | | | | | This will bring in the fix for rawhide/tumbleweed builds (new libsolv capable of handling zstd). If all goes well it will migrate to jammy proper in a week and it can be reverted
* | NEWS: drop duplicate 'of'Christian Hesse2023-11-171-1/+1
| |
* | Merge pull request #30064 from bluca/unbork_direct_ioLuca Boccassi2023-11-171-10/+35
|\ \ | | | | | | loop-util: restart loop_configure and reopen FD when O_DIRECT fails
| * | loop-util: use the right error variable in log_debug_errno after fd_reopenLuca Boccassi2023-11-161-2/+2
| | |
| * | loop-util: restart loop_configure and reopen FD when O_DIRECT failsLuca Boccassi2023-11-161-8/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On kernel 5.10.178, when a squashfs file is stored on an EXT4 filesystem backed by a dm-crypt volume, dissecting fails: $ SYSTEMD_LOG_LEVEL=debug systemd-dissect /var/foo/bar.raw Opened '/var/foo/bar.raw' in O_RDONLY access mode, with O_DIRECT enabled. Couldn't find any partition table to derive sector size of. loop2: Acquired exclusive lock. Could not enable direct IO mode, proceeding in buffered IO mode. Successfully acquired /dev/loop2, devno=7:2, nr=2, diskseq=87 Opened /dev/loop2 (fd=3, whole_block_devnum=7:2, diskseq=87). Name: bar.raw Size: 67.2M Sec. Size: 512 Arch.: n/a Successfully forked off '(sd-dissect)' as PID 4110. Mounting /proc/self/fd/3 (squashfs) on /tmp/dissect-Zk3K5F (MS_RDONLY|MS_NODEV "")... Failed to mount /proc/self/fd/3 (type squashfs) on /tmp/dissect-Zk3K5F (MS_RDONLY|MS_NODEV ""): Input/output error Failed to mount dissected image: Input/output error Failed to read /etc/hostname of image: No such file or directory /etc/machine-id file of image is empty. Failed to read has-init-system boolean: Input/output error (sd-dissect) failed with exit status 1. Failed to acquire image metadata: Input/output error The kernel shows I/O errors: kernel: blk_update_request: I/O error, dev loop2, sector 0 op 0x0:(READ) flags 0x800 phys_seg 1 prio class 0 kernel: SQUASHFS error: Failed to read block 0x0: -5 kernel: unable to read squashfs_super_block This is independent of a particular filesystem and can be reproduced reliably in my setup, starting from freshly formatted disks. Instead of continuing when O_DIRECT fails, start over the setup process without the flag, including opening a new FD, to make the kernel happy.
* | | Merge pull request #30066 from bluca/testLuca Boccassi2023-11-172-3/+2
|\ \ \ | |/ / |/| | fsck/shell test fixes
| * | test: avoid asserting on default user shellLuca Boccassi2023-11-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some build environments it might differ: /* test_get_user_creds_one("root", "root", 0, 0, "/root", "/usr/bin/bash") */ got "root", 0, 0, "/root", "/bin/sh": Success Assertion 'path_equal(rshell, shell)' failed at src/test/test-user-util.c:345, function test_get_user_creds_one(). Aborting. https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=alpha&ver=255%7Erc2-1&stamp=1700147880&raw=0
| * | test: minix fsck not found on alphaLuca Boccassi2023-11-171-2/+2
|/ / | | | | | | | | | | | | | | | | It seems even this one is not everywhere, so relax the test: /* test_fsck_exists */ Assertion 'fsck_exists_for_fstype("minix") == 1' failed at src/test/test-path-util.c:624, function test_fsck_exists(). Aborting. https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=alpha&ver=255%7Erc2-1&stamp=1700147880&raw=0
* | Merge pull request #30055 from YHNdnzj/logind-handle-actionLuca Boccassi2023-11-165-85/+106
|\ \ | | | | | | logind-action: several cleanups
| * | logind-action: check if inhibit_what is validMike Yuan2023-11-161-1/+2
| | | | | | | | | | | | Fixes #30037
| * | logind-inhibit: introduce inhibit_what_is_validMike Yuan2023-11-162-2/+7
| | |
| * | logind-action: split out logic for handle_action_sleepMike Yuan2023-11-161-65/+93
| | | | | | | | | | | | Preparation for #29853
| * | logind: return "no" if sleep operation is disabledMike Yuan2023-11-161-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to org.freedesktop.login1: > If "na" is returned, the operation is not available because > hardware, kernel, or drivers do not support it. If "yes" is > returned, the operation is supported and the user may execute > the operation without further authentication. If "no" is returned, > the operation is available but the user is not allowed to execute > the operation. Therefore, we should return "no" if sleep is explicitly disabled, otherwise we return "na".
| * | TODO: remove an already implemented entryMike Yuan2023-11-161-15/+0
| | | | | | | | | | | | Follow-up for #23640
* | | update TODOLennart Poettering2023-11-161-0/+4
| | |
* | | update TODOLennart Poettering2023-11-161-0/+8
| | |
* | | login: mark the TTY property as "emits change"Frantisek Sumsal2023-11-162-2/+1
| | | | | | | | | | | | | | | | | | | | | Triggered by the SetTTY() method. Follow-up to 092e6cd19ad. Addresses: https://github.com/systemd/systemd/pull/30043#pullrequestreview-1733628935
* | | Merge pull request #30052 from dtardon/udev-fixesLuca Boccassi2023-11-162-2/+2
|\ \ \ | |/ / |/| | Two small udev fixes
| * | udev-manager: fix log messageDavid Tardon2023-11-161-1/+1
| | |
| * | test: read from the right deviceDavid Tardon2023-11-161-1/+1
| | |
* | | hwdb: Mark Dell platform accel sensor location to baseYo-Jung Lin2023-11-161-0/+9
| | | | | | | | | | | | | | | Dell would like to disable screen rotation for the platform eternally. Mark the aceel sensor location base to disable it.
* | | Merge pull request #30047 from yuwata/sd-bus-assert-returnLuca Boccassi2023-11-164-8/+20
|\ \ \ | | | | | | | | sd-bus: several fixlets found by making assert_return() critical
| * | | test: sd_bus_process() may assign NULL even if it returns positiveYu Watanabe2023-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Let's not trigger assert_return() needlessly. Prompted by #30029.
| * | | test: several cleanups for test-bus-chatYu Watanabe2023-11-161-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - use sd_bus_query_sender_creds() to retrieve credentials, - read credentials only when we get credentials, to avoid triggering assert_return(), - downgrade log level of expected failure, and update log message about unexpected success. Prompted by #30029.
| * | | sd-bus: drop SD_BUS_CREDS_AUGMENT flagYu Watanabe2023-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On checking if the message has enough credentials, the special flag needs to be dropped. Fixes a bug introduced by 705a415f684f8e9ee19983e5859de00bbb1477cb.
| * | | sd-bus: insert missing spaceYu Watanabe2023-11-161-1/+1
| | | |
* | | | log: rename variables to store function call resultsYu Watanabe2023-11-161-25/+25
| |/ / |/| |
* | | Merge pull request #30043 from mrc0mmand/more-assert_returnYu Watanabe2023-11-163-4/+4
|\ \ \ | | | | | | | | More `assert_return()` shenanigans
| * | | login: mark the Display property as "emits change"Frantisek Sumsal2023-11-152-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the introduction of SetDisplay() method in 4885d7490b2 the Display property emits a "properties changed" message every time the display is changed using this method, so mark it appropriately. Caught by systemd/systemd#30029: systemd-logind[1366]: Got message type=method_call sender=:1.165 destination=org.freedesktop.login1 path=/org/freedesktop/login1/session/_310 interface=org.freedesktop.login1.Session member=SetDisplay cookie=8 reply_cookie=0 signature=s error-name=n/a error-message=n/a systemd-logind[1366]: Assertion 'v->vtable->flags & SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE || v->vtable->flags & SD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION' failed at src/libsystemd/sd-bus/bus-objects.c:2141, function emit_properties_changed_on_interface(). Ignoring. Follow-up to 4885d7490b2.
| * | | sd-journal: don't assert on invalid fieldFrantisek Sumsal2023-11-151-2/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, field_is_valid(field) already does isempty(field), so drop that as well. $ SYSTEMD_LOG_LEVEL=debug journalctl -o verbose -F foo-bar-baz ... Assertion 'field_is_valid(field)' failed at src/libsystemd/sd-journal/sd-journal.c:2789, function sd_journal_query_unique(). Ignoring. Failed to query unique data objects: Invalid argument
* | | Merge pull request #30045 from poettering/discover-image-tweakletsYu Watanabe2023-11-161-3/+3
|\ \ \ | | | | | | | | discover-image: tiny tweaklets
| * | | discover-image: use TAKE_PTR() where appropriateLennart Poettering2023-11-151-1/+1
| | | |
| * | | discover-image: reindent string tableLennart Poettering2023-11-151-2/+2
| | | |
* | | | Merge pull request #30044 from poettering/dissect-tool-tweakletsYu Watanabe2023-11-161-0/+3
|\ \ \ \ | | | | | | | | | | systemd-dissect --discover tweaklets
| * | | | dissect: set dash as ersatz stringLennart Poettering2023-11-151-0/+1
| | | | |
| * | | | dissect: right-align size column in --discover tableLennart Poettering2023-11-151-0/+2
| |/ / /
* | / / sd-dhcp: use CMSG_FIND_AND_COPY_DATA to avoid build failures on x32 ↵Luca Boccassi2023-11-161-9/+6
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | architectures On architectures where timeval is 64bit but size_t is 32bit we have to use CMSG_FIND_AND_COPY_DATA. This affects x32 and riscv32. Follow-up for 905d0ea7b0080dd