summaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hostname: use _cleanup_ in one more placeZbigniew Jędrzejewski-Szmek2021-12-231-14/+11
|
* boot: Use correct handle to find TextInputEx protocolJan Janssen2021-12-231-31/+56
| | | | | | | | | | | | | | | | | | | | | | | LibLocateProtocol will return the protocol for the first device that supports it. But it may not actually come from the ConIn device that we want to use here. This should be the root cause of what was previously considered just broken firmware. If you ask the wrong device to return some key, of course it will never provide one. This changes the way we handle input yet again in light of this new knowledge and because using the correct TextInputEx with fallback to ConIn can actually create double input in some cases. Since we are now confident that we get the right TextInputEx, we can use that exclusively, only falling back to ConIn if the console input device does not support the better interface (the spec is pretty clear that it must support it, though). Because some firmware is broken, we still need to provide a fallback to the previously used TextInputEx thats overrides ConIn/ConInEx if it is functional.
* machined: set TTYPath for container shellLudwig Nussel2021-12-231-1/+2
| | | | | TTYPath is needed for proper utmp registration of the shell to receive wall messages.
* meson: fix typoYu Watanabe2021-12-231-1/+1
|
* analyze: do not connect to DBUS with --offlineLuca Boccassi2021-12-232-4/+6
| | | | Co-authored-by: Lucas Werkmeister <mail@lucaswerkmeister.de>
* Merge pull request #21858 from yuwata/fix-test-homeLuca Boccassi2021-12-222-2/+2
|\ | | | | test: workaround for TEST-46-HOMED
| * home: update log messageYu Watanabe2021-12-222-2/+2
| | | | | | | | The ratelimit hits even when the all previous attempts are successfull.
* | boot: Use -fvisibility=hidden instead of -fwhole-programJan Janssen2021-12-221-1/+2
|/ | | | | It's functionally the same for sd-boot, but using visibilty is generally preferred over whole-program.
* test: add test for errno-list.[ch]Yu Watanabe2021-12-222-0/+36
|
* errno-name: drop aliases defined for specific archYu Watanabe2021-12-221-0/+4
| | | | | | | | In kernel's arch/parisc/include/uapi/asm/errno.h, ECANCELLED and EREFUSED are defined as aliases of ECANCELED and ECONNREFUSED, respectively. Let's drop them. Fixes #21844.
* Merge pull request #21857 from loongarch64/dev-pr1Yu Watanabe2021-12-223-4/+6
|\ | | | | LoongArch: dmi, virt detection and testcase
| * test: add LoongArch 64bit testcaseXiaotian Wu2021-12-221-0/+2
| |
| * virt: add detection for LoongArch 64bitXiaotian Wu2021-12-221-3/+3
| |
| * dmi: add LoongArch 64bit supportXiaotian Wu2021-12-221-1/+1
| |
* | test,static-destruct: Use retain attribute to prevent linker garbage collectionJan Janssen2021-12-224-2/+8
|/ | | | Fixes: #21847
* boot: Fix armhf build failureJan Janssen2021-12-211-0/+14
| | | | Fixes: #21842
* shared: Remove remaining usages of GPT_ROOT_NATIVE, GPT_USR_NATIVE from ↵Daan De Meyer2021-12-211-10/+0
| | | | | | | | dissect-image.c Follow-up for 49ae9d91f9ba68bf3f1a6928152a5969d329bbc2 Fixes #21843
* timedatectl: Uniform commas in NTPMessage outputScott Worley2021-12-211-1/+1
|
* journal: Handle partially read HashItem's when punching holesDaan De Meyer2021-12-201-2/+5
|
* nss-resolve: expose various source-disablement settings as variablesZbigniew Jędrzejewski-Szmek2021-12-202-11/+24
| | | | | | | | | | | | | | | Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2006761: > systemd-resolved always (reverse)-resolves the host's IP addresses and FQDN. > This can be harmful when an application (for instance, a DNS zone manager) is > installed on the same server instance. That application would expect > NXDOMAIN to be returned if the current server's IP does not belong in an > already managed reverse zone. This allows clients of nss-resolve to use the same config options that are available through the dbus api and as command-line options to resolvectl. The man page text is is mostly copied directly from c6f20515ab600098b5c2871bae2e9ecab3b41555.
* repart: use real disk start/end for bar productionTom Yan2021-12-201-8/+6
| | | | | | | Partitions are not always within our aligned scope. Bar printing involves foreign partitions as well. Fixes #21817.
* journal-remote: use MHD_HTTP_CONTENT_TOO_LARGE as MHD_HTTP_PAYLOAD_TOO_LARGE ↵Yu Watanabe2021-12-202-4/+8
| | | | is deprecated since 0.9.74
* man: describe flags for record resolvingZbigniew Jędrzejewski-Szmek2021-12-201-1/+1
|
* Merge pull request #21807 from keszybz/bootcls-no-autodetectDaan De Meyer2021-12-202-35/+168
|\ | | | | Use KERNEL_INSTALL_MACHINE_ID and KERNEL_INSTALL_LAYOUT with bootctl install
| * bootctl: deprecate --make-machine-id-directory=autoZbigniew Jędrzejewski-Szmek2021-12-171-3/+3
| | | | | | | | | | | | | | | | | | | | Now that kernel-install creates the machine-id directory, we don't need to do this is 'bootctl install', and in fact it's better not to do this since it might never be necessary. So let's change the default behaviour to 'no'. I kept support for 'auto' to maintain backwards compatibility, even though the default was changed. Previous behaviour can be requested by specifying --make-machine-id-directory=auto.
| * bootctl: write KERNEL_INSTALL_LAYOUT=bls and KERNEL_INSTALL_MACHINE_ID=…Zbigniew Jędrzejewski-Szmek2021-12-172-32/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a natural extension of d6bce6e224: if we are installing sd-boot, we want to use the sd-boot layout, so let's write the appropriate KERNEL_INSTALL_LAYOUT setting. Effectively, if we do 'booctl install', kernel-install will not autodetect the layout anymore. And 357376d0bb added support for KERNEL_INSTALL_MACHINE_ID. We need to support it here too. We both read it, so that we create the right directories, and also write it if it wasn't written yet and we created some directories using it, so that kernel-install that is executed later knows the machine-id that matches the directories we crated. The code is changed in some places to fail if we can't figure out the current status. When installing the boot loader it's probably better not to guess.
* | basic: add a size check to format timex members properlyMike Gilbert2021-12-201-2/+4
| | | | | | | | | | | | | | As of glibc-2.34, the size of members in struct timex varies depending on the _TIME_BITS macro. Fixes: https://github.com/systemd/systemd/issues/21826
* | sd-radv: do not use goto for non-error-handling casesYu Watanabe2021-12-191-45/+61
| | | | | | | | | | | | | | | | Follow-up for 059d7b6eae827e73c73633bcc40fe74f3696f3f6. The comment https://github.com/systemd/systemd/pull/21814#discussion_r771842132 suggests to introduce new helper, but it is used only one place. Let's not add such, but simply replace the goto with a flag.
* | Merge pull request #21818 from bluca/path_trigger_limitDaan De Meyer2021-12-194-4/+34
|\ \ | | | | | | path unit: add TriggerLimitBurst= and TriggerLimitIntervalSec=
| * | path unit: add TriggerLimitBurst= and TriggerLimitIntervalSec=Luca Boccassi2021-12-194-4/+34
| | | | | | | | | | | | | | | Given there's now a default for these settings, also allow users to configure them, matching socket units
* | | logind: Use new macrosNishal Kulkarni2021-12-194-508/+392
| | | | | | | | | | | | | | | | | | Migrate logind to use the new macros to declare a D-Bus method or signal. Replaced SD_BUS_METHOD_WITH_NAMES with SD_BUS_METHOD_WITH_ARGS. Replaced SD_BUS_SIGNAL_WITH_NAMES with SD_BUS_SIGNAL_WITH_ARGS.
* | | Merge pull request #21814 from yuwata/network-dhcp-pd-fixesYu Watanabe2021-12-195-27/+45
|\ \ \ | |/ / |/| | network: several fixes for DHCP prefix delegation
| * | sd-dhcp-client: add log message when a message is receivedYu Watanabe2021-12-181-0/+2
| | |
| * | network: dhcp-pd: do not stack 6rd sit tunnelYu Watanabe2021-12-181-4/+0
| | |
| * | network: route: update expiration timer in link_request_route()Yu Watanabe2021-12-181-0/+10
| | |
| * | network: route: do not drop unreachable route on reconfiguring downstream ↵Yu Watanabe2021-12-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | interface Previously, when a downstream is reconfigured, the unreachable route was removed as there is no corresponding static config in .network files.
| * | network: dhcp-pd: fix condition in dhcp_pd_prefix_lost()Yu Watanabe2021-12-181-1/+1
| | |
| * | sd-radv: send RA when prefix is updatedYu Watanabe2021-12-181-22/+28
| | |
* | | Merge pull request #21808 from DaanDeMeyer/path-trigger-limitLuca Boccassi2021-12-1810-66/+35
|\ \ \ | | | | | | | | core: Add trigger limit for path units
| * | | core: Add trigger limit for path unitsDaan De Meyer2021-12-182-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When conditions fail on a service unit, a path unit can cause PID 1 to busy loop as it keeps trying to activate the service unit. To avoid this from happening, add a trigger limit to the path unit, identical to the trigger limit we have for socket units. Initially, let's start with a high limit and not make it configurable. If needed, we can add properties to configure the rate limit similar to the ones we have for socket units.
| * | | Revert "core: Propagate condition failed state to triggering units."Daan De Meyer2021-12-1710-66/+22
| | |/ | |/| | | | | | | This reverts commit 12ab94a1e4961a39c32efb60b71866ab588d3ea2.
* | | homed: Use new SD_BUS_METHOD_WITH_ARGS macroNishal Kulkarni2021-12-182-233/+174
| |/ |/| | | | | | | Migrate homed to use the new macros to declare a D-Bus method. Replaced `SD_BUS_METHOD_WITH_NAMES` with `SD_BUS_METHOD_WITH_ARGS`
* | network: a couple of tweaks suggested by CoccinelleFrantisek Sumsal2021-12-182-5/+4
| |
* | network: dhcp4: pass IPServiceType=none to dhcp clientYu Watanabe2021-12-181-1/+1
| | | | | | | | Follow-up for b55093ce8884ee4fc72f28c6fd5e39897e921e21.
* | Merge pull request #21800 from keszybz/net-id-debuggingYu Watanabe2021-12-182-59/+129
|\ \ | |/ |/| Add more debugging info to udev builtin net_id
| * udev/net_id: add debug logging for construction of device namesZbigniew Jędrzejewski-Szmek2021-12-172-50/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I think this makes it much easier to figure out what information sources were used to generate the names, and why certain names were not generated. On my laptop: Using default interface naming scheme 'v250'. ID_NET_NAMING_SCHEME=v250 wwp0s20f0u2i12: addr_assign_type=3, MAC address is not permanent. wwp0s20f0u2i12: Parsing slot information from sysname "0000:00:14.0": success wwp0s20f0u2i12: dev_port=0 wwp0s20f0u2i12: PCI path identifier: domain=0 bus=0 slot=20 func=0 phys_port= dev_port=0 → p0s20f0 wwp0s20f0u2i12: USB name identifier: ports=2 config=1 interface=12 → u2i12 ID_NET_NAME_PATH=wwp0s20f0u2i12 Using default interface naming scheme 'v250'. ID_NET_NAMING_SCHEME=v250 ID_NET_NAME_MAC=en54ee75cb1dc0 enp0s31f6: MAC address identifier: hw_addr=54:ee:75:cb:1d:c0 → 54ee75cb1dc0 ID_OUI_FROM_DATABASE=Wistron InfoComm(Kunshan)Co.,Ltd. enp0s31f6: Parsing slot information from sysname "0000:00:1f.6": success enp0s31f6: dev_port=0 enp0s31f6: PCI path identifier: domain=0 bus=0 slot=31 func=6 phys_port= dev_port=0 → p0s31f6 ID_NET_NAME_PATH=enp0s31f6 Using default interface naming scheme 'v250'. ID_NET_NAMING_SCHEME=v250 ID_NET_NAME_MAC=en0050b6856d36 hub0: MAC address identifier: hw_addr=00:50:b6:85:6d:36 → 0050b6856d36 ID_OUI_FROM_DATABASE=GOOD WAY IND. CO., LTD. hub0: Parsing slot information from sysname "0000:00:14.0": success hub0: dev_port=0 hub0: PCI path identifier: domain=0 bus=0 slot=20 func=0 phys_port= dev_port=0 → p0s20f0 hub0: USB name identifier: ports=4.1.3 config=2 interface=0 → u4u1u3c2 ID_NET_NAME_PATH=enp0s20f0u4u1u3c2 Using default interface naming scheme 'v250'. ID_NET_NAMING_SCHEME=v250 wlp4s0: addr_assign_type=3, MAC address is not permanent. wlp4s0: Parsing slot information from sysname "0000:04:00.0": success wlp4s0: dev_port=0 wlp4s0: PCI path identifier: domain=0 bus=4 slot=0 func=0 phys_port= dev_port=0 → p4s0 ID_NET_NAME_PATH=wlp4s0
| * udev/net_id: use STRLEN() to make code clearerZbigniew Jędrzejewski-Szmek2021-12-171-7/+7
| | | | | | | | | | | | | | | | | | The code was correct, but looked suspicious: we were comparing strlen(x) with sizeof(y), with looks like an off-by-one. But we actually want x to be one longer than y, so that's fine. Let's use STRLEN() to make this more obvious. While at it, drop unnecessary "_" prefix.
| * udev/net_id: fix signedness in format stringZbigniew Jędrzejewski-Szmek2021-12-171-2/+2
| | | | | | | | | | Both variables are unsigned. In practice those numbers cannot be large enough to become negative, but let's use the correct type anyway.
* | kernel-install: replace 00-entry-directory with K_I_LAYOUT in k-iнаб2021-12-175-55/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 341890de866f2ee34919a47ce3fc6c8cd3c1924c made "bootctl install" create ESP\MID, in preparation of cf73f650890b56a59bfb713c4c82b4e29daa7316 that followed it and created 00-entry-directory.install to make ESP\MID\KVER if ESP\MID existed ‒ this meant that "bootctl install" followed by "kernel-install $(uname -r) /boot/vml*$(uname -r) /boot/ini*$(uname -r)" actually installed the kernel correctly. Later, 31e57550b552e113bd3d44355b237c41e42beb58 reverted the first commit, meaning, that now running those two commands first installs sd-boot, but then does nothing. Everything appears to work right, nothing errors out, but no changes are actually done. To the untrained eye (all of them), even running with -v appears to work: all the hooks are run, as is depmod, but, again, nothing happens. This is horrible. Nothing in either manpage suggests what to do (nor should it, really), but the user is left with a bootloader that appears fully funxional, since nothing suggests a failure in the output, but with an unbootable machine, /no way to boot it/, even if they drop to an EFI shell, since the boot bundle isn't present on the ESP, and no real recourse even if they boot into a recovery system, apart from installing like GRUB or whatever. 00- is purely instrumentation for 90-, and separating one from the other has led to downstream dissatisfaxion (indeed, the last mentioned commit cited cited exactly that as the reversion reason), while creating $ENTRY_DIR_ABS is only required for bootloaders using the BLS, and shouldn't itself toggle anything. To that end, introduce an /{e,l}/k/install.conf file that allows overriding the detected layout, and detect it as "bls" if $BOOT_ROOT/$MACHINE_ID ($ENTRY_DIR_ABS/..) exists, otherwise "other" ‒ if a user wishes to select a different bootloader, like GRUB, they (or, indeed, the postinst script) can specify layout=grub. This disables 90- and $ENTRY_DIR_ABS manipulation.
* | network: dhcp: logs received 6rd optionYu Watanabe2021-12-171-9/+18
| | | | | | | | Addresses https://github.com/systemd/systemd/pull/21625#issuecomment-996109051.