summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* mkosi: Build and install kernel selftestsDaan De Meyer2022-11-088-4/+110
|
* mkosi: Add back libasan/libubsan librariesDaan De Meyer2022-11-085-0/+7
| | | | These were accidentally removed as part of #24025
* man: add note that network-generator is not a generatorZbigniew Jędrzejewski-Szmek2022-11-081-2/+9
| | | | Also fix indentation.
* hwdb: Add accel orientation quirk for the Acer Switch V 10 SW5-017 2-in-1Hans de Goede2022-11-081-0/+3
| | | | | Add a quirk for the accelerometer orientation for the Acer Switch V 10 SW5-017 2-in-1.
* Fix key toggle and programmable button for Positivo N14ZPdrosdeck2022-11-071-0/+2
|
* kernel-install: skip 50-depmod if depmod is not availableLuca Boccassi2022-11-071-0/+1
| | | | | | | Images might be built without any kernel module, and without installing depmod as it is not needed. Skip it. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1023607
* Merge pull request #25286 from mrc0mmand/systemd-mount-test-fixLuca Boccassi2022-11-072-4/+12
|\ | | | | test: replace tmpfs with vfat when testing --owner=
| * test: replace tmpfs with vfat when testing --owner=Frantisek Sumsal2022-11-071-3/+12
| |
| * Revert "mountpoint-util: tmpfs supports uid=/gid= mount options"Frantisek Sumsal2022-11-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 7d4f00c88c65532bf66d20b3ec498b5bfaa621d2. fstype_can_uid_gid() is about fixating all files to the specified uid/gid. tmpfs does not qualify. The uid/gid parameter there is simply about the default uid/gid for the root inode of the tmpfs, it allows setting uids/gid arbirarily for all inodes after that. This distinction matters: for file systems this function returns true for we can use this in place of uidmapped mounts. But for tmpfs this is not going to work, given inodes on that fs can end up having arbitrary uid/gid. See: https://github.com/systemd/systemd/pull/25284#issue-1438427144
* | kernel-install/90-loaderentry: do not override an existing systemd.machine_idAntonio Alvarez Feijoo2022-11-071-1/+1
| | | | | | | | | | If the systemd.machine_id command line option is already set, do not override it.
* | Merge pull request #25279 from mrc0mmand/firstboot-test-fixesFrantisek Sumsal2022-11-072-20/+58
|\ \ | | | | | | test: cover some interactive/error paths in firstboot
| * | test: cover some interactive/error paths in firstbootFrantisek Sumsal2022-11-071-1/+29
| | |
| * | test: fix keymaps installation on ArchFrantisek Sumsal2022-11-071-12/+13
| | | | | | | | | | | | Where the keymaps live under /usr/share/kbd/keymaps/.
| * | test: fix locale installation when locale-gen is usedFrantisek Sumsal2022-11-071-7/+12
| | | | | | | | | | | | | | | locale-gen might merge all compiled locales into a simple archive, so we need to install it as well if necessary.
| * | test: don't ignore non-existent paths in inst_recursive()Frantisek Sumsal2022-11-071-0/+4
| | | | | | | | | | | | | | | The process substitution in the while loop hides errors raised by the find utility, which might (and did), in turn, hide errors in test setup.
* | | mkosi: use the new mkosi.conf suffixZbigniew Jędrzejewski-Szmek2022-11-087-0/+0
| | | | | | | | | | | | | | | Mkosi 14 is out, compat with old mkosi is not terribly important. Let's use the new nice suffix.
* | | semaphore: remove the Semaphore repositories recursivelyFrantisek Sumsal2022-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The list of disabled repositories was recently converted from a single file into a directory with separate repository files, so let's adjust the setup script accordingly. ``` $ ls -lR /etc/apt/sources.list.d/ /etc/apt/sources.list.d/: total 36 -rw-r--r-- 1 root root 76 Nov 3 10:28 azure-cli.list -rw-r--r-- 1 root root 72 Nov 3 10:22 bazel.list drwxr-xr-x 2 root root 4096 Nov 3 10:31 disabled -rw-r--r-- 1 root root 113 Nov 3 10:13 docker-source.list -rw-r--r-- 1 root root 367 Nov 3 10:28 github_git-lfs.list -rw-r--r-- 1 root root 111 Nov 3 10:25 google-chrome-source.list -rw-r--r-- 1 root root 64 Nov 3 10:14 google-cloud-sdk.list -rw-r--r-- 1 root root 54 Nov 3 10:23 helm-stable-debian.list -rw-r--r-- 1 root root 89 Nov 3 10:29 yarn-source.list /etc/apt/sources.list.d/disabled: total 20 -rw-r--r-- 1 root root 100 Nov 3 10:23 devel_kubic_libcontainers_stable.list -rw-r--r-- 1 root root 103 Nov 3 10:27 git.list -rw-r--r-- 1 root root 105 Nov 3 10:22 gradle.list -rw-r--r-- 1 root root 118 Nov 3 10:13 pypy.list -rw-r--r-- 1 root root 104 Nov 3 10:13 python.list ```
* | | Merge pull request #25282 from keszybz/trivial-cleanupsYu Watanabe2022-11-083-9/+8
|\ \ \ | |_|/ |/| | Trivial cleanups
| * | udevadm: merge two log stmtsZbigniew Jędrzejewski-Szmek2022-11-071-5/+4
| | |
| * | man: grammarroZbigniew Jędrzejewski-Szmek2022-11-071-1/+1
| | |
| * | sd-event: adjust indentationZbigniew Jędrzejewski-Szmek2022-11-071-3/+3
| | |
* | | test: compile test-utmp.c only if UTMP is enabledTorsten Hilbrich2022-11-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When compiling with -D utmp=false the compilation fails with: ../../git/systemd/src/test/test-utmp.c: In function ‘test_dump_run_utmp’: ../../git/systemd/src/test/test-utmp.c:21:9: error: cleanup argument not a function 21 | _unused_ _cleanup_(utxent_cleanup) bool utmpx = false; | ^~~~~~~~ ../../git/systemd/src/test/test-utmp.c:23:17: error: implicit declaration of function ‘utxent_start’ [-Werror=implicit-function-declaration] 23 | utmpx = utxent_start(); | ^~~~~~~~~~~~ any many other errors Add a conditional to compile test-utmp.c only if ENABLE_UTMP is true.
* | | Merge pull request #25277 from mrc0mmand/also-coverageYu Watanabe2022-11-073-4/+120
|\ \ \ | |/ / |/| | test: add coverage for systemd-mount
| * | test: add coverage for systemd-mountFrantisek Sumsal2022-11-071-0/+116
| | |
| * | mountpoint-util: tmpfs supports uid=/gid= mount optionsFrantisek Sumsal2022-11-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As tmpfs(5) says, both uid= and gid= are supported since kernel 2.5.7 and the mount utility seems to agree: ``` # stat -c "%U:%G" mnt root:root # mount -o uid=testuser,gid=testuser -t tmpfs tmpfs mnt # stat -c "%U:%G" mnt testuser:testuser ``` However, systemd-mount currently complains: ``` # systemd-mount --owner testuser -t tmpfs tmpfs mnt File system type tmpfs is not known to support uid=/gid=, refusing. ```
| * | test: re-enable skipped systemd-firstboot --locale-messages= testFrantisek Sumsal2022-11-041-4/+3
| |/ | | | | | | Since the original issue should be resolved by #25253.
* | Merge pull request #25266 from poettering/dissect-fsck-fixLennart Poettering2022-11-075-7/+48
|\ \ | | | | | | dissect: fix fsck invocation
| * | dissect: fix fsckLennart Poettering2022-11-041-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since f7725647bb41c3398a867f139efe526efe8aa1b3 when dissecting a disk image we operate with fds to the device nodes in question wherever we can. This includes when we fork off fsck, where we pass a /proc/self/fd/ path as argument. This only works if we keep that fd open however and disable O_CLOEXEC on the fd. Hence do so, and fix fsck this way. (Without this, all fsck will fail, since the fd path is invalid)
| * | process-util: add new FORK_CLOEXEC_OFF flag for disabling O_CLOEXEC on ↵Lennart Poettering2022-11-042-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | remaining fds Often the fds that shall stay around in the child shall be passed to a process over execve(), hence add an option to explicitly disable O_CLOEXEC on them in the child.
| * | fd-util: add new fd_cloexec_many() helperLennart Poettering2022-11-042-0/+20
| | |
| * | fd-util: make fd_in_set() (and thus close_all_fds()) handle invalidated fds ↵Lennart Poettering2022-11-041-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | in the array let's handle gracefully if fds in the specified array are already invalidated (i.e. negative). This is handy when putting together arrays on the fly.
* | | Merge pull request #25107 from lucab/ups/sysusers-gid-check-usernameLuca Boccassi2022-11-065-9/+27
|\ \ \ | | | | | | | | sysusers: cross-check user and group names too
| * | | test-sysusers: check group creation with matching user entryLuca BRUNO2022-11-034-0/+8
| | | |
| * | | sysusers: cross-check user and group names tooLuca BRUNO2022-11-031-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds an additional name check when cross-matching new group entries against existing users, which allows coalescing entries matching both ID and name. It provides a small idempotence enhancement when creating groups in cases where matching user entries are in place. By fine-tuning the conflict detection logic, this avoids picking up new random IDs and correctly prefers configuration values instead.
* | | | loop-util: open lock fd read-onlyChristian Göttsche2022-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | flock(2) works with file descriptors opened with O_RDONLY. This affects SELinux systems where access to block devices is quite restricted to avoid bypasses on filesystem objects.
* | | | core: update audit messagesChristian Göttsche2022-11-051-2/+2
| | | | | | | | | | | | | | | | | | | | Pass getuid() instead of literal `0` as auid, since user session managers also issue audit messages on SELinux denials.
* | | | dissect: get rid of basename() useLennart Poettering2022-11-051-9/+16
| | | |
* | | | ci(dev-freeze): Use GitHub Action for PR commentsJan Macku2022-11-053-5/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GitHub Action `devel-freezer` helps with development freeze notifications during the RC phase. It will create comments using predefined messages on newly created and updated PRs when the RC tag has been released. Also, it will update comments once a new major version has been released. Documentation available at: https://github.com/redhat-plumbers-in-action/devel-freezer
* | | | test: fstab-generator: adjust PATH for fsckChristian Göttsche2022-11-041-0/+3
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fsck(8) is located in /usr/sib/ on Debian sid: stdout: *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-01-dev-nfs.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-02-dhcp.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-03-dhcp6.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-04-nfs.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-05-nfs4.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-06-ipv4.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-07-ipv6.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-08-implicit-nfs.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-09-cifs.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-10-iscsi.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-11-live.input *** Running /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-12-dev-sdx.input --- /dev/fd/63 2022-11-04 15:39:13.131532174 +0100 +++ /dev/fd/62 2022-11-04 15:39:13.131532174 +0100 @@ -6,3 +6,4 @@ initrd-usr-fs.target.requires initrd-usr-fs.target.requires/sysroot.mount sysroot.mount +systemd-fsck-root.service **** Unexpected output for /home/christian/Coding/workspaces/systemd/test/testdata/test-fstab-generator/test-12-dev-sdx.input stderr: Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on NFS was requested. Skipping root directory handling, as root on CIFS was requested. Skipping root directory handling, as root on iSCSI was requested. Skipping root directory handling, as root on live image was requested. Found entry what=/dev/sdx1 where=/sysroot type=n/a opts=ro Checking was requested for /dev/sdx1, but the fsck command does not exist.
* | | Merge pull request #25257 from fbuihuu/fix-test-execute-on-opensuseLuca Boccassi2022-11-049-23/+19
|\ \ \ | | | | | | | | Fix test execute on opensuse
| * | | tests: minor simplification in test-executeFranck Bui2022-11-049-15/+15
| | | | | | | | | | | | | | | | No functional change.
| * | | tests: make test-execute pass on openSUSEFranck Bui2022-11-044-8/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | In my understanding user group "3" (aka "sys") is kept for historical reasons but not really useful these days. That's probably explained why this group isn't defined on openSUSE. Hence let's drop reference to this user group, this shouldn't lessen the revelance of the test since SupplementaryGroups= is still tested with 2 other groups.
* | | kernel-install/90-loaderentry: do not add multiple systemd.machine_id optionsAntonio Alvarez Feijoo2022-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | Do not unconditionally add a new systemd.machine_id command line option, first check if it already exists with the expected value. Fixes #25203
* | | tmpfiles.d: do not fail if provision.conf failsLuca Boccassi2022-11-041-2/+2
| | | | | | | | | | | | | | | | | | On a read-only filesystem creating /root/.ssh might fail, but that's ok. Do not fail the run, as this is only needed to add the credential, which is a separate step.
* | | po: Translated using Weblate (Korean)김인수2022-11-041-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Currently translated at 100.0% (193 of 193 strings) Co-authored-by: 김인수 <simmon@nplob.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ko/ Translation: systemd/main
* | | resolve: enable per-link mDNS setting by defaultYu Watanabe2022-11-042-5/+5
| | | | | | | | | | | | | | | | | | | | | Otherwise, if the link is not managed by systemd-networkd, mDNS cannot be enabled without calling `resolvectl` explicitly. Fixes #25252.
* | | Merge pull request #25244 from yuwata/reboot-util-follow-upsLuca Boccassi2022-11-042-10/+5
|\ \ \ | | | | | | | | reboot-util: several cleanups
| * | | reboot-util: drop unnecessary castYu Watanabe2022-11-041-3/+3
| | | | | | | | | | | | | | | | Follow-up for ede5a78f50ed2d5f86dc7a117de2a51b397d52d4.
| * | | reboot-util: drop redundant headersYu Watanabe2022-11-041-5/+0
| | | | | | | | | | | | | | | | Follow-up for ede5a78f50ed2d5f86dc7a117de2a51b397d52d4.
| * | | meson: sort librariesYu Watanabe2022-11-041-2/+2
| |/ / | | | | | | | | | | | | | | | Except for 'threads'. Follow-up for ede5a78f50ed2d5f86dc7a117de2a51b397d52d4.