]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
3 years agofstab-generator: do not skip /sysroot prefix if the mount point is missing 24018/head
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jul 2022 15:33:13 +0000 (17:33 +0200)] 
fstab-generator: do not skip /sysroot prefix if the mount point is missing

When chase_symlinks() is called on something on a doesn't exist, it immediately
returns an error. But we were relying on it to prepend "/sysroot/". If it
fails, we need to do that ourselves.

For example, with /sysroot/etc/fstab containing a line for /foo, if /sysroot/foo
doesn't exist, we'd generate a mount point for /foo.

3 years agofsck,sulogin: fix cargo-culted comment
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jul 2022 14:46:24 +0000 (16:46 +0200)] 
fsck,sulogin: fix cargo-culted comment

3 years agofstab-generator: rename 'post' variable
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jul 2022 14:16:25 +0000 (16:16 +0200)] 
fstab-generator: rename 'post' variable

Originally (6b1dc2bd3cdb3bd932b0692be636ddd2879edb92) we had 'pre' and 'post'
to refer to remote-fs-pre.target and remote-fs.target or local-fs-pre.target
and local-fs.target. But 'pre' is long gone, and 'post' by itself doesn't
make much sense. Rename it for clarity.

3 years agofstab-generator: tweak comments
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jul 2022 12:35:37 +0000 (14:35 +0200)] 
fstab-generator: tweak comments

3 years agofstab-generator: allow overriding path to /sysroot/etc/fstab too
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jul 2022 11:29:06 +0000 (13:29 +0200)] 
fstab-generator: allow overriding path to /sysroot/etc/fstab too

This adds $SYSTEMD_SYSROOT_FSTAB analoguous to $SYSTEMD_FSTAB.

3 years agofstab-generator: properly report the source of data
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jul 2022 10:46:18 +0000 (12:46 +0200)] 
fstab-generator: properly report the source of data

Mount information can come from /etc/fstab, /sysroot/etc/fstab, and
/proc/cmdline. Even when we had the path to the right source handy, we would
often write something inaccurate. In particular, in the initrd, we would
generally write "/etc/fstab" instead of "/sysroot/etc/fstab" for no good
reason.

3 years agofstab-generator: use path_equal() to detect alternate spellings of /usr
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jul 2022 16:58:15 +0000 (18:58 +0200)] 
fstab-generator: use path_equal() to detect alternate spellings of /usr

In the initrd we would treat e.g. "/usr/" as different from "/usr", which
doesn't seem right.

3 years agogenerators: only redirect logging when invoked by systemd
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jul 2022 16:43:05 +0000 (18:43 +0200)] 
generators: only redirect logging when invoked by systemd

We would always print output to the kmsg or journal, but that is only needed
and useful when invoked by systemd. So let's skip redirection unless we are
invoked by systemd. Otherwise, let's log normally. This makes test invocations
easier, and also helps when the generator is invoked by mistake. If redirection
is necessary, the generator can be invoked with SYSTEMD_LOG_TARGET=… even
during tests.

3 years agobasic/log: split out invoked_by_systemd() utility function
Zbigniew Jędrzejewski-Szmek [Fri, 15 Jul 2022 09:38:01 +0000 (11:38 +0200)] 
basic/log: split out invoked_by_systemd() utility function

3 years agogenerators: accept one or three args, do not write to /tmp
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jul 2022 16:19:04 +0000 (18:19 +0200)] 
generators: accept one or three args, do not write to /tmp

Since the general generator logic was established in the rewrite in
07719a21b6425d378b36bb8d7f47ad5ec5296d28, generators would always write to /tmp
by default. I think this not a good default at all, because generators write a
bunch of files and would create a mess in /tmp. And for debugging, one
generally needs to remove all the files in the output directory, because
generators will complain in the output paths are already present. Thus the
approach of disabling console logging and writing many files to /tmp when
invoked with no arguments is not nice, so let's disallow operation with no
args.

But when debugging, one generally does not care about the separate output dirs
(most generators use only one). Thus the general pattern I use is something
like:
  rm -rf /tmp/x && mkdir /tmp/x && build/some-generator /tmp/{x,x,x}
This commit allows only one directory to be specified and simplifies this to:
  rm -rf /tmp/x && mkdir /tmp/x && build/some-generator /tmp/x

3 years agobless-boot-generator: use DEFINE_MAIN_GENERATOR_FUNCTION()
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jul 2022 16:35:42 +0000 (18:35 +0200)] 
bless-boot-generator: use DEFINE_MAIN_GENERATOR_FUNCTION()

DEFINE_MAIN_GENERATOR_FUNCTION() always sets dest*, so there should be no
change in behaviour.

3 years agohibernate-resume-generator: use DEFINE_MAIN_GENERATOR_FUNCTION()
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jul 2022 16:29:36 +0000 (18:29 +0200)] 
hibernate-resume-generator: use DEFINE_MAIN_GENERATOR_FUNCTION()

DEFINE_MAIN_GENERATOR_FUNCTION() always sets dest*, so there should be no
change in behaviour.

3 years agoenvironment-d-generator: use DEFINE_MAIN_FUNCTION()
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jul 2022 16:07:24 +0000 (18:07 +0200)] 
environment-d-generator: use DEFINE_MAIN_FUNCTION()

3 years agoman: fix formatting of "BARRIER=1"
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jul 2022 13:02:39 +0000 (15:02 +0200)] 
man: fix formatting of "BARRIER=1"

Whitespace inside of the <varname> field was propagated to the displayed form,
causing strange indentation.

3 years agocore: wrap long comments and capitalize sentences
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jul 2022 12:49:42 +0000 (14:49 +0200)] 
core: wrap long comments and capitalize sentences

3 years agobase-filesystem: pick more conservative access mode for /root/
Lennart Poettering [Wed, 13 Jul 2022 21:47:31 +0000 (23:47 +0200)] 
base-filesystem: pick more conservative access mode for /root/

Let's not allow anyone to look into /root/ if we create it via the
base-filesystem logic. i.e. change 0755 → 0750 as default access mode
for /root/, in case we create it if it happens to be missing.

3 years agoMerge pull request #24008 from poettering/tmpfiles-is-dir-fix
Lennart Poettering [Thu, 14 Jul 2022 16:16:07 +0000 (18:16 +0200)] 
Merge pull request #24008 from poettering/tmpfiles-is-dir-fix

tmpfiles: fix wrong is_dir_fd() call

3 years agogrowfs: Expand FS even if underlying block expansion fails
undef [Thu, 14 Jul 2022 09:03:28 +0000 (09:03 +0000)] 
growfs: Expand FS even if underlying block expansion fails

This allows growfs to expand the filesystem even when the underlying
block device cannot be expanded. This has been useful for example on
LUKS devices that have already been expanded using systemd-repart.

This works around the following error:
```
root@mobian:/home/mobian# /usr/lib/systemd/systemd-growfs /
crypt_resize() of /dev/block/179:2 failed: Operation not permitted
```

3 years agoMerge pull request #24015 from poettering/growfs-fd-tweaks
Lennart Poettering [Thu, 14 Jul 2022 16:09:18 +0000 (18:09 +0200)] 
Merge pull request #24015 from poettering/growfs-fd-tweaks

growfs fd handling tweaks

3 years agoupdate TODO
Lennart Poettering [Thu, 14 Jul 2022 14:14:11 +0000 (16:14 +0200)] 
update TODO

3 years agokernel-install: add helper for logging
Zbigniew Jędrzejewski-Szmek [Wed, 6 Jul 2022 14:50:24 +0000 (16:50 +0200)] 
kernel-install: add helper for logging

3 years agoimport-ceds: use the right error variables at four places
Lennart Poettering [Wed, 13 Jul 2022 16:02:36 +0000 (18:02 +0200)] 
import-ceds: use the right error variables at four places

3 years agoupdate TODO
Lennart Poettering [Thu, 14 Jul 2022 12:45:56 +0000 (14:45 +0200)] 
update TODO

3 years agoupdate TODO
Lennart Poettering [Thu, 14 Jul 2022 12:41:43 +0000 (14:41 +0200)] 
update TODO

3 years agogrowfs: don't actually resize on dry-run
undef [Thu, 14 Jul 2022 05:53:15 +0000 (05:53 +0000)] 
growfs: don't actually resize on dry-run

This causes systemd-growfs to exit before resizing the partition when
`--dry-run` is passed. Resizing during a dry run of a change breaks the
users expectations.

3 years agoupdate TODO
Lennart Poettering [Thu, 14 Jul 2022 12:04:36 +0000 (14:04 +0200)] 
update TODO

3 years agoMerge pull request #24002 from yuwata/network-hw-addr
Luca Boccassi [Thu, 14 Jul 2022 10:22:55 +0000 (11:22 +0100)] 
Merge pull request #24002 from yuwata/network-hw-addr

network: fix hardware address handling

3 years agogrowfs: don't reopen fds unnecessarily 24015/head
Lennart Poettering [Thu, 14 Jul 2022 09:34:18 +0000 (11:34 +0200)] 
growfs: don't reopen fds unnecessarily

Instead, just open the mount fd once, and then operate on fds only.

3 years agogrowfs: ensure that we operate on a block device before issuing a block ioctl
Lennart Poettering [Thu, 14 Jul 2022 09:31:50 +0000 (11:31 +0200)] 
growfs: ensure that we operate on a block device before issuing a block ioctl

Similar to the previous commit: let's add extra safety so that we don't
issue ioctls on the wrong type of inode.

3 years agogrowfs: insist we open a directory when opening fs mount point
Lennart Poettering [Thu, 14 Jul 2022 09:30:27 +0000 (11:30 +0200)] 
growfs: insist we open a directory when opening fs mount point

This is a simple safety check, since we shouldn't invoke ioctls on fds
without being reasonably sure they are of the right type since ioctls
are overloaded, and we might be tricked hence to execute an operation on
an fd which means something different than what we expect.

3 years agoupdate TODO
Lennart Poettering [Tue, 12 Jul 2022 21:52:47 +0000 (23:52 +0200)] 
update TODO

3 years agotmpfiles: check the directory we were supposed to create, not its parent 24008/head
Lennart Poettering [Wed, 13 Jul 2022 21:44:45 +0000 (23:44 +0200)] 
tmpfiles: check the directory we were supposed to create, not its parent

This current code checks the wrong directory. This was broken in
4c39d899ff00e90b7290e4985696f321d7f2726f which converted the previous
code incorrectly.

3 years agostat-util: replace is_dir() + is_dir_fd() by single is_dir_full() call
Lennart Poettering [Wed, 13 Jul 2022 21:43:36 +0000 (23:43 +0200)] 
stat-util: replace is_dir() + is_dir_fd() by single is_dir_full() call

This new call can execute both of the old operations, but also do
generic fstatat() like behaviour.

3 years agosd-bus: do not pass NULL when received message with invalid type
Yu Watanabe [Thu, 14 Jul 2022 01:53:54 +0000 (10:53 +0900)] 
sd-bus: do not pass NULL when received message with invalid type

Fixes #24003.

3 years agosd-dhcp6-client: fix off-by-one error in parsing dhcp6 options 24002/head
Yu Watanabe [Thu, 14 Jul 2022 00:23:09 +0000 (09:23 +0900)] 
sd-dhcp6-client: fix off-by-one error in parsing dhcp6 options

This fixes error in parsing message when the rapid commit option is
located at the end of the message.

Fixes an issure reported in #24002.

3 years agosd-dhcp6-client: allow NULL option value when length is zero
Yu Watanabe [Thu, 14 Jul 2022 01:13:00 +0000 (10:13 +0900)] 
sd-dhcp6-client: allow NULL option value when length is zero

3 years agosd-dhcp6-client: add more debugging logs on parsing message
Yu Watanabe [Wed, 13 Jul 2022 23:37:53 +0000 (08:37 +0900)] 
sd-dhcp6-client: add more debugging logs on parsing message

3 years agoMerge pull request #23882 from dtardon/logind-set-display-test
Yu Watanabe [Wed, 13 Jul 2022 22:35:23 +0000 (07:35 +0900)] 
Merge pull request #23882 from dtardon/logind-set-display-test

Add tests for org.freedesktop.login1.Session SetType and SetDisplay

3 years agonetwork: do not set invalid MAC address for non-ethernet interface
Yu Watanabe [Wed, 13 Jul 2022 20:23:01 +0000 (05:23 +0900)] 
network: do not set invalid MAC address for non-ethernet interface

3 years agonetwork: NDisc does not require MAC address
Yu Watanabe [Wed, 13 Jul 2022 21:50:15 +0000 (06:50 +0900)] 
network: NDisc does not require MAC address

This effectively revert ba4c7184b320bb8698d470530d46a6c94641cc6e.

Fixes #23546.

3 years agonetwork: dhcp4: disable DHCPv4 client on interfaces with non-supported types
Yu Watanabe [Wed, 13 Jul 2022 20:05:32 +0000 (05:05 +0900)] 
network: dhcp4: disable DHCPv4 client on interfaces with non-supported types

Replaces f42d41cc5f9cd8cac538a1c30fda04d346b5bae2.

3 years agoRevert "network: configure DHCP clients after MAC address is assigned"
Yu Watanabe [Wed, 13 Jul 2022 19:56:07 +0000 (04:56 +0900)] 
Revert "network: configure DHCP clients after MAC address is assigned"

This reverts commit f42d41cc5f9cd8cac538a1c30fda04d346b5bae2.

DHCPv6 client does not require MAC address.
DHCPv4 client will be handled in a different way in a later commit.

Partially fixes #23546.

3 years agoDo not fail EFI build with newer binutils
Michael Biebl [Wed, 22 Jun 2022 11:11:13 +0000 (13:11 +0200)] 
Do not fail EFI build with newer binutils

Newer binutils versions currently trigger the following warnings due to
a bug in gnu-efi

on arm64:
/usr/bin/ld.bfd: warning: src/boot/efi/systemd-bootaa64.elf has a LOAD segment with RWX permissions

on amd64:
/usr/bin/ld.bfd: warning: /usr/lib/crt0-efi-x86_64.o: missing .note.GNU-stack section implies executable stack

This results in a build failure due to --fatal-warnings.
Work around this issue by suppressing those warnings until gnu-efi has
been fixed.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1013341

3 years agoman: lift pam_systemd_homed description to Summary
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jul 2022 08:19:19 +0000 (10:19 +0200)] 
man: lift pam_systemd_homed description to Summary

Also change the title to describe the module more comprehensively.
Follow-up for 90bc309aa2c1430941f4c50f73e681ab3e488bd3. Suggested
in https://bugzilla.redhat.com/show_bug.cgi?id=2085485#c5.

3 years agotest: add test for org.freedesktop.login1.Session SetDisplay 23882/head
David Tardon [Fri, 1 Jul 2022 14:43:34 +0000 (16:43 +0200)] 
test: add test for org.freedesktop.login1.Session SetDisplay

3 years agotest: add test for org.freedesktop.login1.Session SetType
David Tardon [Mon, 27 Jun 2022 06:37:22 +0000 (08:37 +0200)] 
test: add test for org.freedesktop.login1.Session SetType

3 years agotest: ensure cleanup functions return success
David Tardon [Wed, 13 Jul 2022 09:29:20 +0000 (11:29 +0200)] 
test: ensure cleanup functions return success

Otherwise the return value of the last command is propagated, which may
cause spurious test failures. E.g., pkill returns 1 if no process
matched, which may be a problem in cleanup session:

cleanup_session() {
...

    pkill -u "$(id -u logind-test-user)"
    sleep 1
    pkill -KILL -u "$(id -u logind-test-user)"
}

If there are no remaining processes when the final pkill runs, it will
return 1 and therefore cleanup_session will return 1 as well.

3 years agoAdd coredump daemons to bug/RFE template component options
Daan De Meyer [Wed, 13 Jul 2022 10:48:04 +0000 (12:48 +0200)] 
Add coredump daemons to bug/RFE template component options

3 years agoMerge pull request #23817 from yuwata/sd-device-send-udev-database-version
Zbigniew Jędrzejewski-Szmek [Wed, 13 Jul 2022 11:10:40 +0000 (13:10 +0200)] 
Merge pull request #23817 from yuwata/sd-device-send-udev-database-version

sd-device: send udev database version

3 years agoci: limit which env variables we pass through `sudo`
Frantisek Sumsal [Wed, 13 Jul 2022 09:12:36 +0000 (11:12 +0200)] 
ci: limit which env variables we pass through `sudo`

to work around #23987.

3 years agotest-network: save and restore timezone
Yu Watanabe [Wed, 13 Jul 2022 01:24:53 +0000 (10:24 +0900)] 
test-network: save and restore timezone

Several DHCP client tests change the system timezone.
Let's save the current timezone at the beginning, and restore it with
the saved value at the end.

3 years agoMerge pull request #23881 from keszybz/kernel-install-strikes-yet-again
Yu Watanabe [Wed, 13 Jul 2022 00:44:50 +0000 (02:44 +0200)] 
Merge pull request #23881 from keszybz/kernel-install-strikes-yet-again

kernel-install: fix invocation as installkernel, add tests, tweak documentation

3 years agotest-network: wait for L2TP tunnels being removed
Yu Watanabe [Tue, 12 Jul 2022 21:06:36 +0000 (23:06 +0200)] 
test-network: wait for L2TP tunnels being removed

Fixes #23985.

3 years agologind: don't delay login for root even if systemd-user-sessions.service is not activ...
Franck Bui [Thu, 7 Jul 2022 10:02:04 +0000 (12:02 +0200)] 
logind: don't delay login for root even if systemd-user-sessions.service is not activated yet

If for any reason something goes wrong during the boot process (most likely due
to a network issue), system admins should be allowed to log in to the system to
debug the problem. However due to the login session barrier enforced by
systemd-user-sessions.service for all users, logins for root will be delayed
until a (dbus) timeout expires. Beside being confusing, it's not a nice user
experience to wait for an indefinite period of time (no message is shown) this
and also suggests that something went wrong in the background.

The reason of this delay is due to the fact that all units involved in the
creation of a user session are ordered after systemd-user-sessions.service,
which is subject to network issues. If root needs to log in at that time,
logind is requested to create a new session (via pam_systemd), which ultimately
ends up waiting for systemd-user-session.service to be activated. This has the
bad side effect to block login for root until the dbus call done by pam_systemd
times out and the PAM stack proceeds anyways.

To solve this problem, this patch orders the session scope units and the user
instances only after systemd-user-sessions.service for unprivileged users only.

3 years agosmack: Add DefaultSmackProcessLabel to user.conf and system.conf
Łukasz Stelmach [Wed, 6 Jul 2022 11:09:51 +0000 (13:09 +0200)] 
smack: Add DefaultSmackProcessLabel to user.conf and system.conf

DefaultSmackProcessLabel tells systemd what label to assign to its child
process in case SmackProcessLabel is not set in the service file. By
default, when DefaultSmackProcessLabel is not set child processes inherit
label from systemd.

If DefaultSmackProcessLabel is set to "/" (which is an invalid character
for a SMACK label) the DEFAULT_SMACK_PROCESS_LABEL set during compilation
is ignored and systemd act as if the option was unset.

3 years agoMerge pull request #23982 from medhefgo/boot-misc
Luca Boccassi [Tue, 12 Jul 2022 21:43:14 +0000 (22:43 +0100)] 
Merge pull request #23982 from medhefgo/boot-misc

boot: Misc cleanups

3 years agoMerge pull request #23979 from DaanDeMeyer/nspawn-relative-paths
Luca Boccassi [Tue, 12 Jul 2022 21:41:10 +0000 (22:41 +0100)] 
Merge pull request #23979 from DaanDeMeyer/nspawn-relative-paths

nspawn: Support relative paths for --bind and --overlay

3 years agonspawn: Support relative source paths for --bind and --overlay 23979/head
Daan De Meyer [Mon, 11 Jul 2022 19:45:08 +0000 (21:45 +0200)] 
nspawn: Support relative source paths for --bind and --overlay

3 years agobcd: Clean up includes 23982/head
Jan Janssen [Tue, 12 Jul 2022 08:01:03 +0000 (10:01 +0200)] 
bcd: Clean up includes

Also, now that bcd.h does not depend on efi.h anymore we can now
properly include it in the test instead.

3 years agobcd: Use std alignof
Jan Janssen [Tue, 12 Jul 2022 07:52:29 +0000 (09:52 +0200)] 
bcd: Use std alignof

3 years agoboot: Remove _cleanup_freepool_
Jan Janssen [Tue, 12 Jul 2022 07:48:38 +0000 (09:48 +0200)] 
boot: Remove _cleanup_freepool_

3 years agoboot: Use int instead of INTN
Jan Janssen [Tue, 12 Jul 2022 07:46:44 +0000 (09:46 +0200)] 
boot: Use int instead of INTN

3 years agoboot: Use uintptr_t when converting EFI_PHYSICAL_ADDRESS
Jan Janssen [Tue, 12 Jul 2022 07:43:13 +0000 (09:43 +0200)] 
boot: Use uintptr_t when converting EFI_PHYSICAL_ADDRESS

uintptr_t is the more appropriate type when casting to/from pointers.

3 years agokernel-install: suppress bogus shellcheck hint 23881/head
Zbigniew Jędrzejewski-Szmek [Sat, 2 Jul 2022 12:55:05 +0000 (14:55 +0200)] 
kernel-install: suppress bogus shellcheck hint

I don't quite understand this, but '{ ! true; }' is not the same as '( ! true )'.
In interactive mode, it seems to work as expected. But in a script, it doesn't.

3 years agokernel-install: use set -e
Zbigniew Jędrzejewski-Szmek [Sat, 2 Jul 2022 12:45:07 +0000 (14:45 +0200)] 
kernel-install: use set -e

This means that we'll fail hard if something goes wrong, e.g. reading
of a config file. I think this is appropriate. If errors should be ignored,
the caller should do that on their end.

3 years agokernel-install: return 0 for unknown verbs in plugins
Zbigniew Jędrzejewski-Szmek [Sat, 2 Jul 2022 12:44:01 +0000 (14:44 +0200)] 
kernel-install: return 0 for unknown verbs in plugins

In practice this makes little difference, because kernel-install will
only call the plugins for 'add' or 'remove', and if we were to add a
new verb to kernel-install, we'd just change the plugins at the same
time. But our plugins serve as documentation for external plugins too,
and there it's better to silently ignore unknown verbs so that we can
add new verbs in the future.

(50-depomod.install was already like that.)

3 years agokernel-install: raise fuss if plugins are called without the expected parameters
Zbigniew Jędrzejewski-Szmek [Sat, 2 Jul 2022 12:41:41 +0000 (14:41 +0200)] 
kernel-install: raise fuss if plugins are called without the expected parameters

3 years agotest-kernel-install: add a simple test that kernel-install copies the files
Zbigniew Jędrzejewski-Szmek [Fri, 1 Jul 2022 11:08:31 +0000 (13:08 +0200)] 
test-kernel-install: add a simple test that kernel-install copies the files

I opted to tweaking kernel-install to allow overriding config
(with $KERNEL_INSTALL_CONF_ROOT, $KERNEL_INSTALL_PLUGINS). An alternative
would be to build a test environment in test/. We can still do that,
but I think it's nice to have a simple test that is very quick and easy
to debug.

Invocation as installkernel is for #23681.

3 years agokernel-install: mark the plugins as executable in git
Zbigniew Jędrzejewski-Szmek [Fri, 1 Jul 2022 11:04:11 +0000 (13:04 +0200)] 
kernel-install: mark the plugins as executable in git

We mark them as executable during installation, but it's also nice to mark
them as such in sources, so they can be executed directly.

3 years agokernel-install: allow overriding the plugin list too
Zbigniew Jędrzejewski-Szmek [Fri, 1 Jul 2022 10:55:32 +0000 (12:55 +0200)] 
kernel-install: allow overriding the plugin list too

The use of IFS=<newline> is dropped. Let's just iterate over the list, using
any whitespace as separator.

3 years agoMerge pull request #23980 from yuwata/test-network
Yu Watanabe [Mon, 11 Jul 2022 23:27:36 +0000 (01:27 +0200)] 
Merge pull request #23980 from yuwata/test-network

test-network: tiny output improvements

3 years agoMerge pull request #23972 from yuwata/sd-device
Yu Watanabe [Mon, 11 Jul 2022 20:44:56 +0000 (22:44 +0200)] 
Merge pull request #23972 from yuwata/sd-device

sd-device: do not return -ENOENT by sd_device_get_is_initialized()

3 years agoFix automatic screen rotation for Asus Transformer T100TAM
Michal Stanke [Mon, 11 Jul 2022 12:11:12 +0000 (14:11 +0200)] 
Fix automatic screen rotation for Asus Transformer T100TAM

3 years agoMerge pull request #23974 from yuwata/align-tables
Yu Watanabe [Mon, 11 Jul 2022 20:43:45 +0000 (22:43 +0200)] 
Merge pull request #23974 from yuwata/align-tables

basic: align tables

3 years agotest-network: support to remove routing policy rules with l3mdev flag 23980/head
Yu Watanabe [Mon, 11 Jul 2022 20:32:10 +0000 (22:32 +0200)] 
test-network: support to remove routing policy rules with l3mdev flag

3 years agotest-network: merge stdout and stderr of invoked command by call()
Yu Watanabe [Mon, 11 Jul 2022 20:31:12 +0000 (22:31 +0200)] 
test-network: merge stdout and stderr of invoked command by call()

Otherwise, the logs may be messed up.

3 years agoman: explain why pam_systemd_home wants to be in all four stacks
Lennart Poettering [Mon, 11 Jul 2022 13:12:24 +0000 (15:12 +0200)] 
man: explain why pam_systemd_home wants to be in all four stacks

Suggested here:

https://bugzilla.redhat.com/show_bug.cgi?id=2085485#c5

3 years agoMerge pull request #23969 from yuwata/test-network
Frantisek Sumsal [Mon, 11 Jul 2022 20:03:04 +0000 (20:03 +0000)] 
Merge pull request #23969 from yuwata/test-network

test-network: fixlets and performance improvements

3 years agonspawn: Rewrap --overlay docs
Daan De Meyer [Mon, 11 Jul 2022 19:43:41 +0000 (21:43 +0200)] 
nspawn: Rewrap --overlay docs

3 years agonspawn: Drop unnecessary intermediate variable
Daan De Meyer [Mon, 11 Jul 2022 19:38:26 +0000 (21:38 +0200)] 
nspawn: Drop unnecessary intermediate variable

3 years agosd-netlink: add sizes for some IP and Ethernet addresses
Topi Miettinen [Sun, 10 Jul 2022 09:17:32 +0000 (12:17 +0300)] 
sd-netlink: add sizes for some IP and Ethernet addresses

Add sizes for some uses of NETLINK_TYPE_IN_ADDR and NETLINK_TYPE_ETHER_ADDR
types.

3 years agotest-network: various cleanups 23969/head
Yu Watanabe [Sat, 9 Jul 2022 11:05:23 +0000 (20:05 +0900)] 
test-network: various cleanups

- introduce several helper functions
- do not list unit files, but remove the runtime unit directory in
  tearDown().
- do not list used interfaces, but remove all interfaces previously not
  exists in tearDown().
- save routes and routing policy rules before running tests, and flush
  unnecessary routes and rules in each tearDown() calls.
- drop many time.sleep() calls.
- call tearDown() after each sub tests.
- shorten code.
- several coding style fixes.
- etc, etc...

Hopefully, this improves performance of the test.

3 years agoupdate TODO
Lennart Poettering [Mon, 11 Jul 2022 15:37:41 +0000 (17:37 +0200)] 
update TODO

3 years agotest-network: extend timeout for DHCP lease to be expired
Yu Watanabe [Sun, 10 Jul 2022 21:54:40 +0000 (23:54 +0200)] 
test-network: extend timeout for DHCP lease to be expired

Fixes #23964.

3 years agosd-device: shorten code a bit 23972/head
Yu Watanabe [Mon, 11 Jul 2022 10:02:31 +0000 (12:02 +0200)] 
sd-device: shorten code a bit

3 years agotree-wide: trivial tweaks
Lennart Poettering [Mon, 11 Jul 2022 13:10:38 +0000 (15:10 +0200)] 
tree-wide: trivial tweaks

3 years agoupdate TODO
Lennart Poettering [Fri, 8 Jul 2022 16:05:12 +0000 (18:05 +0200)] 
update TODO

3 years agomkosi: update to latest main
Luca Boccassi [Mon, 11 Jul 2022 10:08:14 +0000 (11:08 +0100)] 
mkosi: update to latest main

Fix build failure on SUSE Tumbleweed due to config changes

3 years agounit-def: align string tables 23974/head
Yu Watanabe [Mon, 11 Jul 2022 12:19:59 +0000 (14:19 +0200)] 
unit-def: align string tables

3 years agovirt: align tables
Yu Watanabe [Mon, 11 Jul 2022 12:13:33 +0000 (14:13 +0200)] 
virt: align tables

3 years agosd-device: make sd_device_get_is_initialized() not return -ENOENT
Yu Watanabe [Mon, 11 Jul 2022 10:02:04 +0000 (12:02 +0200)] 
sd-device: make sd_device_get_is_initialized() not return -ENOENT

3 years agoMerge pull request #23962 from keszybz/taint-flag-support-ended
Luca Boccassi [Sun, 10 Jul 2022 21:42:56 +0000 (22:42 +0100)] 
Merge pull request #23962 from keszybz/taint-flag-support-ended

Taint flag "support-ended"

3 years agomanager: add taint flag "support-ended" 23962/head
Zbigniew Jędrzejewski-Szmek [Sat, 9 Jul 2022 16:00:33 +0000 (18:00 +0200)] 
manager: add taint flag "support-ended"

In the welcome line, use NAME= as the fallback for PRETTY_NAME=.
PRETTY_NAME= doesn't have to be set, but NAME= should.

Example output:
---
Welcome to Fedora Linux 37 (Rawhide Prerelease)!

[  !!  ] This OS version (Fedora Linux 37 (Rawhide Prerelease)) is past its end-of-support date (1999-01-01)
Queued start job for default target graphical.target.
[  OK  ] Created slice system-getty.slice.
---

3 years agoman: update the description of taint flags
Zbigniew Jędrzejewski-Szmek [Sat, 9 Jul 2022 15:42:07 +0000 (17:42 +0200)] 
man: update the description of taint flags

We had a description in README, and an outdated list in the man page.
I think we should keep a reference-style list in the man page. The description
in README is more free-form.

3 years agoman: redefine SUPPORT_END= to mean one day earlier
Zbigniew Jędrzejewski-Szmek [Sat, 9 Jul 2022 15:50:36 +0000 (17:50 +0200)] 
man: redefine SUPPORT_END= to mean one day earlier

I thought it would be nice to specify the last day of support, because I
thought it'd seem more natural. But in practice this doesn't work well, because
such a truncated timestamp is usually taken to mean midnight that starts the
given date. I.e. 2011-12-13 is a shorthand for 2011-12-13 00:00:00 and not
2011-12-13 23:59:59.999999999999. Let's instead specify that the given date is
the first unsupported day, which is meaningful for humans, and let the computer
treat it as midnight, which gives consistent interpratation.

3 years agoresolve: introduce FORMAT_DNS_RCODE() macro
Yu Watanabe [Sat, 9 Jul 2022 06:56:50 +0000 (15:56 +0900)] 
resolve: introduce FORMAT_DNS_RCODE() macro

Fixes #23958.

3 years agoMerge pull request #23959 from yuwata/test-network
Frantisek Sumsal [Sat, 9 Jul 2022 08:21:32 +0000 (08:21 +0000)] 
Merge pull request #23959 from yuwata/test-network

test-network: several performance improvements

3 years agotest-network: use wait_operstate() at one more place 23959/head
Yu Watanabe [Sat, 9 Jul 2022 03:20:11 +0000 (12:20 +0900)] 
test-network: use wait_operstate() at one more place

3 years agotest-network: suppress periodic output in wait_operstate()
Yu Watanabe [Sat, 9 Jul 2022 03:19:52 +0000 (12:19 +0900)] 
test-network: suppress periodic output in wait_operstate()

3 years agotest-network: disable debugging logs from networkctl, resolvectl, and so on
Yu Watanabe [Sat, 9 Jul 2022 02:59:38 +0000 (11:59 +0900)] 
test-network: disable debugging logs from networkctl, resolvectl, and so on