Lennart Poettering
c2caeb5d54
bootspec: catch up with sd-boot's bootspec implementation
...
Let's parse the same fields and use them the same way as in sd-boot.
Fixes : #20093
2021-11-11 17:22:59 +01:00
Lennart Poettering
df33178416
boot: when we can't boot use the right boot loader entry display title in log message
2021-11-11 17:22:55 +01:00
Lennart Poettering
18fde343a8
boot: clean up unified boot loader entry name/version extraction
...
Let's make sure IMAGE_ID/IMAGE_VERSION are properly honoured, and
explain in a long comment why.
Let's also use ID= field again, which was lost by accident.
(While we are at it do some minimal OOM checks wherever we touch
something)
2021-11-11 17:22:31 +01:00
Lennart Poettering
31f7765762
bootspec: fix comment that says exactly the opposite of what is true
2021-11-11 17:22:27 +01:00
Lennart Poettering
1ce915a91c
boot: const arguments should be const
...
Unfortunately they forgot the "const" decoration on the MetaiMatch()
prototype, but let that omission not leak into our code, let's hide it
away in the innermost use.
2021-11-11 17:22:23 +01:00
Lennart Poettering
b78a282181
boot: ternary op is your friend
2021-11-11 17:22:18 +01:00
Lennart Poettering
08cd8c4307
boot: add comments what closely related ConfigEntry fields are about
2021-11-11 17:21:37 +01:00
Jonas Witschel
c65417a011
scope: count successful cgroup additions when delegating via D-Bus
...
Since commit 8d3e4ac7cd ("scope: refuse
activation of scopes if no PIDs to add are left") all "systemd-run --scope
--user" calls fail because cgroup attachments delegated to the system instance
are not counted towards successful additions. Fix this by incrementing the
return value in case unit_attach_pid_to_cgroup_via_bus() succeeds, similar to
what happens when cg_attach() succeeds directly.
Note that this can *not* distinguish the case when
unit_attach_pid_to_cgroup_via_bus() has been run successfully, but all
processes to attach are gone in the meantime, unlike the checks that commit
8d3e4ac7cd adds for the system instance. This is
because even though unit_attach_pid_to_cgroup_via_bus() leads to an internal
unit_attach_pids_to_cgroup() call, the return value over D-Bus does not include
the number of successfully attached processes and is always NULL on success.
Fixes : #21297
2021-11-11 15:19:51 +00:00
ml
84b10e536c
man: remove unintentionally repetitive words
2021-11-11 14:36:50 +01:00
Lennart Poettering
371264b6c6
Merge pull request #21302 from yuwata/udev-drop-colon-from-ID_NET_NAME_MAC
...
udev: drop colon from ID_NET_NAME_MAC
2021-11-11 14:36:28 +01:00
Lennart Poettering
126c02a8fd
Merge pull request #21304 from poettering/chain-ssh-auth-keys
...
userdbctl: add support for chaining other ssh-authorized-keys commands from userdbctl
2021-11-11 14:35:48 +01:00
Luca Boccassi
bb23992740
Merge pull request #21301 from yuwata/network-neighbor-use-hw-addr-data
...
network: neighbor: use "struct hw_addr_data"
2021-11-11 10:32:11 +00:00
Yu Watanabe
a914901d38
test: use kbd-mode-map we ship in one more test case
...
Follow-up for be0cc2ce6c .
Fixes https://github.com/systemd/systemd/pull/19670#issuecomment-965817823 .
2021-11-11 09:54:01 +00:00
Yu Watanabe
dfa4876c41
udev: drop colon from ID_NET_NAME_MAC
...
Fixes a bug introduced by eaba9bb3e6 .
2021-11-11 18:29:55 +09:00
Yu Watanabe
e44cd43788
ether-addr-util: introduce hw_addr_to_string_full()
2021-11-11 18:29:52 +09:00
Lennart Poettering
01f6c450b6
man: document new --chain switch to userdbctl
...
And while we are at it, make 'ssh-authorized-keys' verb properly
documented. Given that OpenSSH documents the interface in its man page
it's fine to just document our implementation of it too.
2021-11-11 10:06:39 +01:00
Lennart Poettering
8072a7e6a9
userdbctl: add support for chaining command lines in "authorized-keys" verb
2021-11-11 10:06:35 +01:00
Lennart Poettering
7d0cede04f
escape: return unused memory in quote_command_line()
2021-11-11 10:06:31 +01:00
Lennart Poettering
5e659ffcb0
process-util: use quote_command_line() at one more place
2021-11-11 10:06:26 +01:00
Lennart Poettering
4ef15008cc
escape: add flags argument to quote_command_line()
...
That way, we can reuse the call at one more place (see later patch).
2021-11-11 10:05:46 +01:00
Yu Watanabe
13b7b8bd73
network: neighbor: accept an empty string assignment
2021-11-11 12:49:42 +09:00
Yu Watanabe
17193d767d
network: neighbor: use "struct hw_addr_data" to store link layer address
2021-11-11 12:49:42 +09:00
Yu Watanabe
ca7d208367
ether-addr-util: expose hw_addr_hash_func()
2021-11-11 12:49:42 +09:00
Yu Watanabe
c990101f23
sd-netlink: fix type of NDA_LLADDR attribute
2021-11-11 12:49:42 +09:00
Luca Boccassi
a704137c20
Merge pull request #21273 from yuwata/hostname-device-tree
...
hostnamed: use /proc/device-tree to get chassis type
2021-11-10 23:15:20 +00:00
Yu Watanabe
9133c1877f
netif-util: fix stack-use-after-scope
...
Fixes a bug introduced by 0295b2fd1d .
Fixes #21292 .
2021-11-10 22:11:18 +00:00
Frantisek Sumsal
8b212f3596
ci: take CIFuzz's matrix into consideration
...
Otherwise the jobs will try to cancel each other out.
Follow-up to 3884837610 .
2021-11-10 20:44:24 +00:00
Yu Watanabe
e2b777f821
sd-id128: use /proc/device-tree
2021-11-11 04:42:50 +09:00
Yu Watanabe
c6dce5720c
condition: use /proc/device-tree/
2021-11-11 04:42:50 +09:00
Yu Watanabe
e6cbe6970f
hostnamed: use /proc/device-tree to get chassis type
...
From https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-firmware-ofw
---
Userspace must not use the /sys/firmware/devicetree/base
path directly, but instead should follow /proc/device-tree
symlink. It is possible that the absolute path will change
in the future, but the symlink is the stable ABI.
---
Addresses the comment https://github.com/systemd/systemd/pull/20731#discussion_r744095262 .
2021-11-11 04:42:50 +09:00
Luca Boccassi
227e2fc1a7
Merge pull request #21290 from poettering/arch-me-harder
...
some docs/tweaks regarding porting to new archs
2021-11-10 18:37:01 +00:00
Jan Janssen
9cf75222f2
meson: Rework gnu-efi detection
...
Moving all of the gnu-efi detection into src/boot/efi/meson.build makes
more sense than having it partially split.
And thanks to subdir_done() we can simplify the code a lot.
Fixes : #21258
2021-11-10 18:25:19 +00:00
Luca Boccassi
fe63d890fd
Merge pull request #21293 from mrc0mmand/ci-cancel-old-jobs
...
ci: cancel previous jobs on ref update
2021-11-10 18:15:21 +00:00
Frantisek Sumsal
3884837610
ci: cancel previous jobs on ref update
...
Let's save the environment (and reduce the number of jobs in GH Actions
queues) by cancelling old jobs on a ref update (force push).
See: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
2021-11-10 17:15:35 +01:00
Frantisek Sumsal
46573ee131
ci: fix indentation
2021-11-10 17:15:35 +01:00
Frantisek Sumsal
b8c94ee372
Revert "CI: run GCC unit test job on push to main"
...
This reverts commit c1036042f5 .
Follow-up to 0ad536c16a .
2021-11-10 17:15:35 +01:00
Lennart Poettering
ec512b9b9d
doc: add some docs with a checklist of what to do for new architectures
2021-11-10 15:18:01 +01:00
Lennart Poettering
04ba1bb038
shared: nudge people into sending us patches to make /lib64/ symlink generation work on all archs that need it
...
This is an attempt to nudge people into sending us patches that fix
bug #14311 for us, given that the original submitter lost interest.
2021-11-10 15:18:01 +01:00
Lennart Poettering
1fb2d8fcb6
docs: invite people to define GPT partition types for all archs now
...
The discovery partitions spec so far suggested we should define
arch-specific partition type uuids only for archs that have EFI. Let's
change that and invite people to define them for any arch. Why? Even if
GPT is defined as part of the UEFI spec it's quite useful independently
of it, too. Specifically, our image dissection logic makes use of it,
i.e. systemd-nspawn, systemd-gpt-auto-generator, systemd-repart,
RootImage=, portable services, and so on. None of these tools are
related to UEFI in any way.
Hence, let's open this up.
2021-11-10 15:18:01 +01:00
Lennart Poettering
d42e4fa258
shared: start pushing people gently to define GPT partition type UUIDs for missing archs
...
Let's generate a single gcc `#warning` message asking people to define
partition type UUIDs for their architectures if they are missing.
2021-11-10 15:18:01 +01:00
Lennart Poettering
3299c293db
architecture: drop __riscv__ checks, it's obsolete since 2018
2021-11-10 12:38:32 +01:00
Scott Lamb
4b499063ac
fsck: no emergency.target on nofail mounts
...
Also describe failure behavior more precisely in the manpage.
Fixes #20237 .
2021-11-10 11:58:12 +01:00
Anita Zhang
899acf5c2d
core: replace slice dependencies as they get added
...
Defines a "UNIT_DEPENDENCY_SLICE_PROPERTY" UnitDependencyMask type that
is used when adding slices to the dependencies hashmap. This type is
used to remove slice dependencies when they get overridden by new ones.
Fixes #20182
2021-11-10 10:52:08 +01:00
Zbigniew Jędrzejewski-Szmek
4d544a0c87
Merge pull request #21287 from yuwata/man-network-condition
...
man: cleanups for [Match] section
2021-11-10 10:36:54 +01:00
Yu Watanabe
4883a5ec6c
network: cake: fix copy-and-paste error
...
Follow-up for 35896db489 .
Fixes CID#1465796.
2021-11-10 10:35:36 +01:00
Yu Watanabe
8c66ab20f6
man: use include directive for [Match] section
2021-11-10 10:59:21 +09:00
Yu Watanabe
33132db903
man: add missing Firmware= setting
2021-11-10 10:56:42 +09:00
Yu Watanabe
5ff3c71af8
Merge pull request #21276 from yuwata/ether-addr-util
...
ether-addr-util: introduce parse_hw_addr() and related conf parsers
2021-11-10 09:22:01 +09:00
Yu Watanabe
3f6a18633f
Merge pull request #21281 from poettering/repart-align-fixes
...
repart: fixes when operating on unaligned partitions
2021-11-10 09:21:24 +09:00
Lennart Poettering
4a77b47ed8
Merge pull request #21283 from poettering/nspawn-idempotent-empty-settings
...
nspawn: make empty settings files true NOPs
2021-11-09 22:20:22 +01:00