summaryrefslogtreecommitdiffstats
path: root/test/TEST-31-DEVICE-ENUMERATION (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-08-10mkosi: Copy sources under /usr in the imageMichal Koutný2-2/+2
Originally, the source code was copied under /root/src. This home directory is part of root FS and the new mkosi building paradigm has only ephemeral root FS that is generated lazily. Any files placed on the root FS in the build environment are that excluded from the final image. It is useful to have source codes available in the image's runtime (not build time) environment for debugging. ExtraTrees= as used currently are ineffective, so change the destination to copy files under /usr to achieve the intention. gdb sees source files as: > 1354 ../src/src/systemctl/systemctl.c: No such file or directory. Modify gdb configration in the built image accordingly (that file cannot be in /root neither) to resolve to the moved sources. (Commit fdecbf7 ("Enable unprivileged image builds") envisions bind mounting or virtiofsd for nspawn or qemu containers respectively.)
2023-08-10tmpfiles: move static vars into Context objectLennart Poettering1-118/+248
Same as #28722, but for tmpfiles rather than sysusers
2023-08-10test: testsuite-35.sh needs manual/test-session-properties to be installed ↵Franck Bui1-0/+1
on SUSE
2023-08-10Add .pylintrc to globally suppress warnings we don't really care aboutFrantisek Sumsal9-24/+31
Also, drop the respective disable directives from existing files.
2023-08-10tools: pylint meson-render-jinja2.pyFrantisek Sumsal1-1/+5
2023-08-10tools: pylint analyze-dump-sort.pyFrantisek Sumsal1-0/+1
2023-08-10tools: pylint dump-auxv.pyFrantisek Sumsal1-4/+8
2023-08-10tools: pylint gdb-sd_dump_hashmaps.pyFrantisek Sumsal1-1/+2
2023-08-10tools: pylint list-discoverable-partitions.pyFrantisek Sumsal1-16/+16
2023-08-10tools: pylint xml_helper.pyFrantisek Sumsal1-1/+5
2023-08-10tools: pylint update-man-rules.pyFrantisek Sumsal1-5/+9
2023-08-10tools: pylint update-dbus-docs.pyFrantisek Sumsal1-40/+45
2023-08-10tools: pylint make-man-index.pyFrantisek Sumsal1-9/+10
2023-08-10tools: pylint make-directive-index.pyFrantisek Sumsal1-9/+10
2023-08-10tools: pylint make-autosuspend-rules.pyFrantisek Sumsal1-2/+2
2023-08-10tools: pylint generate-gperfs.pyFrantisek Sumsal1-7/+12
2023-08-10networkd: add comment about order of IPReversePathFilter enumLennart Poettering1-1/+2
Follow-up for: #28391
2023-08-10mkosi: Move python3dist(pytest-flakes) to base preset build packagesDaan De Meyer1-3/+1
We don't want to pull in python in the base image to keep the initrd small.
2023-08-10update TODOLennart Poettering1-0/+5
2023-08-10sd-event: explicit document what to do with epoll-incompatible fdsLennart Poettering1-16/+25
2023-08-10journalcl: simplify handling of stdout being a regular file and epoll()Lennart Poettering1-10/+9
Let's not check the fd type beforehand, let's instead gracefully handle if we get EPERM back from epoll_ctl() because the fd doesn't do epoll. THis should be safer and more generic. The epoll_ctl(2) man page clearly documents EPERM is being returned in this case, hence it's safe to check for exactly that case. Follow-up for: #28644
2023-08-10man: let's tone down the recommendation to use Type=exec a bitLennart Poettering1-18/+27
This is a follow-up for #28596. I think the suggestion to use Type=exec uses too strong wording: Type=exec has non-trivial drawbacks over Type=simple, and they deserve to be mentioned. Hence drop the <emphasis> and turn this around so that Type=exec is *recommended*, but Type=simple is not expressly discouraged, because there are plenty reasons to use it. Add a brief discussion where Type=simple might be preferable. Also, fix the outright unruth that Type=exec was the "simplest and fastest", because it certainly is a lot, but not that.
2023-08-10execute: Chown credentials files and directories to service groupDaan De Meyer1-11/+27
For a userns root user to be able to access the credentials, both the uid and gid of the credentials directory have to be mapped into the userns. Currently, the credentials directory group is root, which we obviously do not want to map in to a userns, so let's make sure that the credentials directory and files are owned by the service group instead, which can generally be safely mapped into the userns. Since we use permissions mode 0600, this shouldn't cause any change in who is able to access the credentials. Fixes #28747
2023-08-10tools: pylint dbus_exporter.pyFrantisek Sumsal1-1/+2
2023-08-10tools: pylint check-includes.pyFrantisek Sumsal1-3/+3
2023-08-10tools: pylint catalog-report.pyFrantisek Sumsal1-40/+40
2023-08-10tools: pylint analyze-dump-sort.pyFrantisek Sumsal1-1/+2
2023-08-10repart: Reword --copy-from docsDaan De Meyer1-3/+7
2023-08-10repart: Pass GptPartitionType *Daan De Meyer1-15/+15
2023-08-10main: drop redundant ()Lennart Poettering1-1/+1
2023-08-10update TODOLennart Poettering1-0/+4
2023-08-10udev: re-introduce symlinks for loopback block deviceYu Watanabe5-2/+81
But the directories are changed from /dev/loop/by-ref/ -> /dev/disk/by-loop-ref/ and /dev/loop/by-inode/ -> /dev/disk/by-loop-inode/. As /dev/loop/ is used by losetup command for other purpose. See issue #28475. This effectively reverts commits 9915cc60868c77e7e8cecb669ddb90516dffc7df, 5022fab15fc16204d163883ca818fd6092dc919c, and c0d998248e10e1dcf18108fdbb70f259acd452eb.
2023-08-09mkosi: Update to latestDaan De Meyer49-9/+16
This update introduces the explicit Dependencies= setting, instead of relying on implicit dependencies via alphanumerical ordering. We also take the opportunity to rename the "final" preset to the "system" preset, which seems like a better name.
2023-08-09tree-wide: drop _pure_ + _const_ from local, static functionsLennart Poettering18-36/+36
This is supposed to be a help for compilers to apply optimizations on functions where they can't determine whether they are const/pure on their own. For static, local functions the compiler can do this on its own easily however, hence the decoration with pure/const is just noise. Let's drop it, and let the compiler to its thing better. (Use it for exported functions, since compilers can't 'reach-over' into other modules to determine if they are pure, except if LTO is used)
2023-08-09sysusers: move global variables into a Context objectLennart Poettering1-176/+269
Our coding style says static variables suck except for very special cases, i.e. things like the log level or very per-process stuff, such as parsed version of cmdline args and such. sysusers departed from that as one of the very few exceptions in our codebases: it keeps its operational state in global variables. Address that. Introduce a Context object that carries the fields that so far have been global, and pass it around as needed. This has the nice effect that state and configuration is clearly separated in code, and we can very clearly see which functions mangle state and which ones do not. No actual codeflow changes, just refactoring.
2023-08-09LoongArch: Replace __loongarch64 with __loongarch_lp64Xiaotian Wu7-25/+25
`__loongarch64` is no longer used for historical reasons and should be replaced by `__loongarch_lp64` in new code. https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html#_cc_preprocessor_built_in_macro_definitions
2023-08-09bootctl: don't advertise systemd-efi-options in --help/man anymoreLennart Poettering3-15/+2
The command is deprecated, as per NEWS of 254. Let's go one step further and remove it from the help text and man page, so that people are not inspired to use it at this time anymore. This is how we usually have done this before: remove it from visibility, but support it for a while still.
2023-08-0960-ukify.install: fix whitespaceZbigniew Jędrzejewski-Szmek1-1/+1
2023-08-09test: use pytest.raises wrapperZbigniew Jędrzejewski-Szmek1-3/+1
This way we check that the appropriate exception is raised, not just ignore it. Follow-up for e3c04a5c84af5a39794a0a4963bc9916787aa5b4.
2023-08-09polkit: move asserts up, so that they cover all reply codepathsLennart Poettering1-7/+5
2023-08-09polkit: use LIST_POP where appropriateLennart Poettering1-3/+1
2023-08-09remount-fs: refuse to remount based on fstab when fstab=no kernel command ↵Yu Watanabe1-0/+3
line option specified Otherwise, if for some reasons remount-fs is invoked even when fstab=no is specified, mounts may get unexpected options from fstab. For safety, let's parse the kernel command line option.
2023-08-09remount-fs: split-out remount_by_fstab()Yu Watanabe1-21/+37
No functional change, just refactoring and preparation for later commits.
2023-08-09fstab-generator: update cache in fstab_enabled_full() based on the parsed ↵Yu Watanabe1-1/+1
result of fstab= Currently, fstab-generator does not use fstab file parsers in fstab-util.c. So, this is not necessary. Just for a possible optimization in the case the parsers used in the future.
2023-08-09fstab-util: introduce fstab_enabled() helper functionYu Watanabe2-0/+35
And refuse to parse fstab when 'fstab=no' is specified in the kernel command line. When 'fstab=no' is specified in the kernel command line, fstab-generator does not parse fstab and will not create e.g. /boot or /efi mount entry even if fstab contains entries for the mount points. However, gpt-auto generator may parse fstab file, and adjust or ignore mounts for EFI or XBOOTLDR partitions based on the fstab file. This makes gpt-auto also ignore fstab entries if 'fstab=no' is set in the kernel command line.
2023-08-09proc-cmdline: make proc_cmdline_get_bool() take flagsYu Watanabe11-38/+38
All other command line parsers takes flags. Let's make proc_cmdline_get_bool() also take flags. Though, currently, no flag is set by the caller.
2023-08-09vconsole-setup: simplify error handlingLennart Poettering1-6/+6
no need to negate an error which we don't need negated. also, add debug log about errors we ignore.
2023-08-09vconsole-setup: simplify path allocationLennart Poettering1-4/+6
Let's code this straighforwadly, and just allocate the string as we need it, instead of doing pre-allocation. This is not performance sensitive, as this will almost certainly just return /dev/tty1 after the first transition.
2023-08-09vconsole-setup: use FOREACH_ARRAY() at one more placeLennart Poettering1-2/+2
2023-08-09vconsole-setup: port to main-func.h boilerplateLennart Poettering1-6/+7