summaryrefslogtreecommitdiffstats
path: root/.gitmodules (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-04-02debug-generator: Drop unnecessary includeDaan De Meyer1-1/+0
2024-04-02debug-generator: Use arg_dest instead of argumentDaan De Meyer1-3/+3
2024-04-02build(deps): bump systemd/mkosidependabot[bot]1-1/+1
Bumps [systemd/mkosi](https://github.com/systemd/mkosi) from 31af101620fc2996517d87e86da310f7ba553d58 to 4dfdf98ed2877a1e40f37234e0b8fbba0fec3584. - [Release notes](https://github.com/systemd/mkosi/releases) - [Changelog](https://github.com/systemd/mkosi/blob/main/NEWS.md) - [Commits](https://github.com/systemd/mkosi/compare/31af101620fc2996517d87e86da310f7ba553d58...4dfdf98ed2877a1e40f37234e0b8fbba0fec3584) --- updated-dependencies: - dependency-name: systemd/mkosi dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-02mkosi: Use '-' instead of '.' to separate upstream version and debian revisionDaan De Meyer1-1/+1
The debian revision starts after the '-' character, so make sure the timestamp we append is treated as the revision instead of being a part of the upstream version.
2024-04-02build(deps): bump pkg/debian from `44fe1d4` to `e780b50`dependabot[bot]1-0/+0
Bumps pkg/debian from `44fe1d4` to `e780b50`. --- updated-dependencies: - dependency-name: pkg/debian dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-02man/tmpfiles.d: drop doubled spaceMike Yuan1-1/+1
2024-04-02doc(tmpfiles.d): remove deprecated `F` typeEisuke Kawashima1-2/+2
close #32044
2024-04-01core/service: ensure we don't restart on SERVICE_SKIP_CONDITIONMike Yuan1-2/+3
service_shall_restart() always returns false if result is SERVICE_SKIP_CONDITION, so drop unreachable code.
2024-04-01build(deps): bump redhat-plumbers-in-action/differential-shellcheckdependabot[bot]1-1/+1
Bumps [redhat-plumbers-in-action/differential-shellcheck](https://github.com/redhat-plumbers-in-action/differential-shellcheck) from 5.1.0 to 5.1.1. - [Release notes](https://github.com/redhat-plumbers-in-action/differential-shellcheck/releases) - [Changelog](https://github.com/redhat-plumbers-in-action/differential-shellcheck/blob/main/docs/CHANGELOG.md) - [Commits](https://github.com/redhat-plumbers-in-action/differential-shellcheck/compare/b9df2a9417f69c056e0aeaf870abd9a2065a403e...c15070885a82a2c93db8a765d332c38c50dde8b3) --- updated-dependencies: - dependency-name: redhat-plumbers-in-action/differential-shellcheck dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01sysupdate: print assumed valueBurak Gerz1-0/+1
The MatchPattern= in Target specification is documented as mandatory, but if not defined sysupdate will assume the same value as definied in Source specification and continue execution. Print this assumptions to the user
2024-04-01Fix assertion in socknameinfo_pretty()Daan De Meyer1-1/+1
2024-03-31mkosi: Update centos to latestDaan De Meyer1-0/+0
Due to dependabot and pagure not playing nice with each other, we're going to have to update this one manually for a while. See https://github.com/systemd/systemd/issues/31773
2024-03-30repart: Add DefaultSubvolume= settingDaan De Meyer4-33/+143
We already have Subvolumes= to create subvolumes, let's add DefaultSubvolume= as well to set the default subvolume.
2024-03-29manager: Freeze/Thaw: Don't fail units w/o cgroupAdrian Vovk1-1/+1
Previously, it was impossible to freeze or thaw a slice if it is an ancestor to a unit that had no running cgroup (i.e. a service with RemainAfterExit=yes). Instead of failing with EBUSY (which would confusingly get reported as "Unit has pending job") we just silently no-op. I noticed this because we now have user-runtime-dir@.service, which would make it impossible to freeze/thaw user.slice or user-<UID>.slice
2024-03-29mkosi: Switch to linux-virtual on UbuntuDaan De Meyer2-5/+2
This now finally has support for credentials and erofs so let's switch to this much smaller kernel package that doesn't pull in linux-firmware.
2024-03-29udevadm-test: prettify test resultsYu Watanabe1-10/+70
2024-03-29core: apply ReloadLimit to reexec tooLuca Boccassi6-12/+30
Same reason as the reload, reexec is disruptive and it requires the same privileges, so if somebody wants to limit reloads, they'll also want to limit reexecs, so use the same setting.
2024-03-29core: serialize reload rate limitLuca Boccassi1-0/+3
Otherwise the rate limit is lost on reexec, and the privileges to call it are the same as reloads
2024-03-29unit-def: append trailing comma for the last entryYu Watanabe1-7/+7
2024-03-29core: align tableYu Watanabe14-171/+171
2024-03-29portable: the 'flags' parameter is now used in DetachImageWithExtensions() ↵Luca Boccassi1-3/+2
and ReattachImageWithExtensions()
2024-03-29udev: make udevadm test and test-builtin not destructiveYu Watanabe27-247/+346
Previously, 'udevadm test' performs not only processing udev rules, but made several destructive change on the system; updating udev database, device node permission, devlinks, network interface properties, and so on. Similary, 'udevadm test-builtin' may perform something destructive, especially by 'keyboard', 'kmod', and 'net_setup_link' builtins. Let's make these commands and test executables not change device configurations.
2024-03-29network: save the real rdnss addressRonan Pigott1-1/+1
... instead of the router that informed us Fixes: 86a66e9b9504 ("network: also save NTP servers and friends obtained by other protocols")
2024-03-29test: make coverage runs happy with capsule@.serviceFrantisek Sumsal1-1/+1
capsule@.service uses DynamicUser=yes, so let's use the same tweak we use for other such units.
2024-03-28login: Fix fallback error handlingDaan De Meyer1-3/+4
2024-03-28test: disable IPv6AcceptRA= for test network interfaces with static addressYu Watanabe1-0/+2
This hopefully improves test performance.
2024-03-28ndisc-option: allow to set valid time of optionsYu Watanabe4-81/+380
When an option is delegated from an upstream server, its lifetime may be limited by a time. Such functionality will be used later by sd-radv. This also remove 'offset' argument from the option setter ndisc_option_set_xyz(), and make it update existing option. See comments in ndisc_option_add_link_layer_address() for more details.
2024-03-28journalctl-filter: use add_match_boot_id() instead of add_match_this_boot()Yu Watanabe1-5/+1
The function add_match_this_boot() calls sd_journal_add_conjunction(), hence, we cannot specify multiple devices in the extra match arguments, e.g., "journalctl /dev/sda /dev/sdb" shows no entry.
2024-03-28sleep: add SleepMemMode= setting for configuring /sys/power/mem_sleepMike Yuan5-1/+54
The setting is used when /sys/power/state is set to 'mem' (common for suspend) or /sys/power/disk is set to 'suspend' (hybrid-sleep). We default to kernel choice here, i.e. respect what's set through 'mem_sleep_default=' kernel cmdline option.
2024-03-28sleep: make write_mode take a pathMike Yuan1-10/+10
Similar to the previous commit, preparation for adding support for /sys/power/mem_sleep.
2024-03-28sleep-config: make sleep_mode_supported take a pathMike Yuan3-17/+20
Preparation for later commits.
2024-03-28string-util: modernize string_contains_word_strv a bitMike Yuan2-8/+6
Also correct the comment on flags.
2024-03-28sleep-config: fix potential memory leakMike Yuan1-2/+2
Follow-up for 77bd39385eae7b8e3182e66292b9f94bb54e235d
2024-03-28man/systemd-sleep: reorder optionsMike Yuan1-12/+12
2024-03-28sleep-config: make sleep_operation_is_hibernation uppercaseMike Yuan3-4/+4
2024-03-28udev-event: split out update_clone()Yu Watanabe1-18/+30
No functional change, preparation for later commits.
2024-03-28homed: Release(): fix assertion failureAdrian Vovk4-27/+73
This fixes a race condition crash in homed that would happen in the following sequence of events: 1. Client 1 takes a ref on the home area 2. Client 1 calls some method via dbus 3. Client 2 calls Release() In homed, the Release() would check if a ref is still held (in this case: yes it is) and returns an error. Except that is done through a code-path that asserts that no operations are ongoing. In this case, it's valid to have an ongoing operation, and so the assertion fails causing homed to crash.
2024-03-28run: fix generated unit name clash after soft-rebootLuca Boccassi2-3/+31
When sd-run connects to D-Bus rather than the private socket, it will generate the transient unit name using the bus ID assigned by the D-Bus broker/daemon. The issue is that this ID is only unique per D-Bus run, if the broker/daemon restarts it starts again from 1, and it's a simple incremental counter for each client. So if a transient unit run-u6.service starts and fails, and it is not collected (default on failure), and the system soft-reboots, any new transient unit might conflict as the counter will restart: Failed to start transient service unit: Unit run-u6.service was already loaded or has a fragment file. Get the soft-reboot counter, and if it's greater than zero, append it to the autogenerated unit name to avoid clashes.
2024-03-28test-network: add test cases for PersistLeases=noYu Watanabe2-5/+33
2024-03-28network: make [DHCPServer] in networkd.conf workYu Watanabe1-0/+1
Follow-up for a3ed665a29ea9355c78a2a6b3a032b9504499dd6. Fixes https://github.com/systemd/systemd/pull/31977#discussion_r1542196572.
2024-03-28network: fix typoYu Watanabe1-1/+1
Follow-up for a3ed665a29ea9355c78a2a6b3a032b9504499dd6.
2024-03-28timedate: fix typoYu Watanabe1-1/+1
Follow-up for 3a51e31be9f626cf772733cb289ed64739fab0e4.
2024-03-28journalctl-authenticate: return earlier if we are not on a TTYYu Watanabe1-56/+49
No functional change, just refactoring.
2024-03-28journalctl-authenticate: use open_tmpfile_linkable() and link_tmpfile()Yu Watanabe1-21/+16
This also - use path_join(), - rename variables to more descriptive names.
2024-03-28journalctl-authenticate: drop unnecessary safe_close()Yu Watanabe1-1/+0
Follow-up for 7560fffcd2531786b9c1ca657667a43e90331326. Addresses https://github.com/systemd/systemd/pull/31879#discussion_r1539063239.
2024-03-28journalctl-authenticate: use is_dir() and refuse symlink for /var/log/journalYu Watanabe1-10/+9
I am not sure it is explicitly documented that /var/log/journal should be a directory, rather than a symlink to a directory, but the current code of journald seems not to support symlinked directory well. Let's refuse that at least here and now.
2024-03-27analyze: fix plot with soft-rebootLuca Boccassi2-7/+51
Clamp times and start counting from when soft-reboot is started to avoid creating a huge graph, like it's done for the user instance.
2024-03-27test: cleanup the test script a bitFrantisek Sumsal1-84/+79
2024-03-27test: check for /dev/loop-control when checking lodev availabilityFrantisek Sumsal1-2/+2
losetup in util-linux 2.40 started reporting lost loop devices [0] and it has an unfortunate side-effect where it reports lost devices even in containers, which then makes the loop device check "falsely" pass [1]. Let's just check for /dev/loop-control explicitly to "work around" this. [0] https://github.com/util-linux/util-linux/commit/a6ca0456cc6d704a786f6b66d8bb2d89ff18eba7 [1] https://github.com/util-linux/util-linux/issues/2824
2024-03-27timedated: Respond on org.freedesktop.timedate1.SetNTP only when really finishedMichal Koutný1-3/+18
The method returns prematurely (before jobs it triggers terminate). This is externally visible because other methods may fail if jobs did not finish. Postpone the DBus method response until we collect all signals for finished jobs. systemd-timedated keeps track of in-flight DBus requests and answers them all in unspecified order when jobs finish. The capacity of requests in systemd-timedated is limited. Fixes: #17739