summaryrefslogtreecommitdiffstats
path: root/mkosi.extra (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-10-16doc: fix typoYu Watanabe1-1/+1
Follow-up for b3b7cf8b7c35df14c6eb4f79da1a241dc0aa8c7e.
2024-10-16machine: fix typoYu Watanabe1-1/+1
Follow-up for ad0d4f9a4c340f3fd5f0fcf646f7c762722737cd.
2024-10-16pidref: fix typoYu Watanabe2-2/+2
Follow-up for de34ec188c4d4f682a337445aa7753259cd7f821.
2024-10-16ukify: fix typoYu Watanabe1-1/+1
Follow-up for 02eabaffe98c9a3b5dec1c4837968a4d3e2ff7db.
2024-10-16Fix maybe-uninitialized warnings with gcc 14.2Luca Boccassi1-2/+2
../src/resolve/resolved-bus.c: In function ‘call_link_method’: ../src/resolve/resolved-bus.c:1769:16: warning: ‘l’ may be used uninitialized [-Wmaybe-uninitialized] 1769 | return handler(message, l, error); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/resolve/resolved-bus.c:1755:15: note: ‘l’ was declared here 1755 | Link *l; | ^ ../src/resolve/resolved-bus.c: In function ‘bus_method_get_link’: ../src/resolve/resolved-bus.c:1828:13: warning: ‘l’ may be used uninitialized [-Wmaybe-uninitialized] 1828 | p = link_bus_path(l); | ^~~~~~~~~~~~~~~~ ../src/resolve/resolved-bus.c:1816:15: note: ‘l’ was declared here 1816 | Link *l; | ^
2024-10-16pid1: add env var to override default mount rate limit intervalxujing2-3/+18
Similar to 24a4542c. 24a4542c can only be set 1 in 1s at most, sometimes we may need to set to something else(such as 1 in 2s). So it's best to let the user decide. This also allows users to solve #34690.
2024-10-16sysext: Deal with nested mounts properlyDaan De Meyer2-11/+138
Nested mounts should be carried over from host to overlayfs to overlayfs (and back to host if unmerged). Otherwise you run into hard to debug issues where merging extensions means you can't unmount those nested mounts anymore as they are hidden by the overlayfs mount. To fix this, before unmerging any previous extensions, let's move the nested mounts from the hierarchy to the workspace, then set up the new hierachy, and finally, just before moving the hierarchy into place, move the nested mounts back into place. Because there might be multiple nested mounts that consists of one or more mounts stacked on top of each other, we make sure to move all stacked mounts properly to the overlayfs. The kernel doesn't really provide a nice way to do this, so we create a stack, pop off each mount onto the stack and then pop from the stack again to the destination to re-establish the stacked mounts in the same order in the destination.
2024-10-16sysext: Run unmerge in a subprocessDaan De Meyer1-18/+40
Preparation for later commit where we need a private mount namespace for unmerge.
2024-10-16mount-util: Make get_submounts() a public functionDaan De Meyer2-10/+11
2024-10-16test: fix TOCTOU in test-jsonYu Watanabe1-4/+4
Follow-up for 60ae3b86fb52d545b279e3927d2214462385e734. Fixes CID#1563782.
2024-10-16core: move debug logging from _can_live_mount() functions to callerLennart Poettering3-19/+9
Let's debug log the returned dbus error where we want the logging, but don't log it, where we don't. This removes the noisy logging from the property handler for the CanLiveMount property, but keeps it in place for the MountImage() method call where we want it. Alternative to #34175 Follow-up for 5162829ec87df20c7af763bdf274735bf9e53552 and 1cafbecabecc619b4e147abd9925282d0ff323bd
2024-10-16core: one more Mount -> LiveMount renameLuca Boccassi1-1/+1
Missed by earlier search-and-replace Follow-up for 5162829ec87df20c7af763bdf274735bf9e53552
2024-10-16TEST-55-OOMD: check slice property before stressing sliceYu Watanabe1-2/+3
2024-10-16TEST-55-OOMD: stop test units when unnecessaryYu Watanabe1-2/+12
Then, sleep becomes not necessary anymore. This greatly improve performance.
2024-10-16TEST-55-OOMD: check slice more in detailYu Watanabe1-5/+9
system and user slice has same name, hence we need to check full path.
2024-10-16TEST-55-OOMD: split into small testcasesYu Watanabe1-47/+41
Then, we can run each small test cases separately.
2024-10-16TEST-55-OOMD: check global config earlierYu Watanabe1-4/+3
'Default Memory Pressure Duration' field in oomctl, which can be configured with DefaultMemoryPressureDurationSec= in oomd.conf, is a global config. Let's check it earlier. This also drops unnecessary cleanup at the beginning.
2024-10-16TEST-55-OOMD: set ManagedOOMMemoryPressure= and friends in a drop-in configYu Watanabe3-3/+8
Fedora and friends has a drop-in config for the settings in /usr/lib/systemd/user/slice.d/ . Hence, settings in the main .slice may be overridden. Let's set below in a drop-in with higher decimal prefix. Also, rename override.conf -> 99-managed-oom-preference.conf for the same reason.
2024-10-16gpt-auto: remove directory check for ESP mountMichael Ferrari1-17/+2
Ensure that we always attempt to mount the `ESP` partition to `/boot` when there is no `XBOOTLDR` partition. Fixes an issue when booting without a `XBOOTLDR` partition and an empty root partition, since it would mount the `ESP` partition to `/efi/` unconditionally causing boot entries to not be under `/boot/` as recommended by the Boot Loader Specification.
2024-10-15json-util: initialize "remote" flag for PidRef when parsing JSON pidref ↵Lennart Poettering2-35/+61
serializations Now that we have a way to recognize "remoteness" of a PidRef, let's make sure when we decode a JSON pidref we initialize things that way.
2024-10-15pidref: add explicit concept of "remote" PidRefLennart Poettering3-13/+99
This PidRef just track some data, but cannot be used for any active operation. Background: for https://github.com/systemd/systemd/pull/34703 it makes sense to track explicitly if some PidRef is not a local one, so that we never attempt to for example "kill a remote process" and thus acccidentally hit the wrong process (i.e. a local one by the same PID).
2024-10-15debug-generator: create prefix dir of generate unit fileLennart Poettering1-1/+1
Strictly speaking, it's more correct if we create the prefix path before writing our unit file.
2024-10-15dropin: use WRITE_STRING_FILE_MKDIR_0755 to create drop-in prefix pathLennart Poettering1-4/+3
2024-10-15shared: modernize drop_in_file() a bitLennart Poettering1-12/+21
Make the return parameters optional, since we don't actually need them in all cases (see later commits).
2024-10-15fileio: clean up write_string_file() namingLennart Poettering5-21/+22
let's rename the "_ts" flavour of these calls "_full" instead, exposing the full functionality. And then keep two more minimal versions around: one "_at" (which has the ts parameter suppressed, but keeps the dir_fd one). And one without suffix (which supresses both). Do the same for the label versions of these calls.
2024-10-15core: do not fail if ignorable img.v/ vpick dir is missingLuca Boccassi2-2/+8
Do not fail if the directory is missing entirely, other than just empty Follow-up for 00f546e25e8 Follow-up for 5e79dd96a88 Follow-up for 622efc544dc
2024-10-15TEST-64-UDEV-STORAGE: test for absence of obsolete NVMe symlinkBryan Gurney1-0/+1
Signed-off-by: Bryan Gurney <bgurney@redhat.com>
2024-10-15userdb: return ESRCH if userdb service refuses a user/group name as invalidLennart Poettering1-1/+7
if a userdb service refuse a user/group name as invalid, let's turn this into ESRCH client-side following that there definitely is no user/group record for a completely invalid user/group name. Replaces: #34558
2024-10-15sd-varlink: add new sd_varlink_error_is_invalid_parameter() helperLennart Poettering4-3/+77
2024-10-15network: add AF_TO_ADDRESS_FAMILY() helperLennart Poettering5-11/+17
Make some code a bit shorter.
2024-10-15machine: add MachineImage interfaceYu Watanabe5-2/+16
Follow-up for fb0ea6a6a36b5fa97e6c57d608bb9f7acb63c8b2. Fixes #34772.
2024-10-15busctl: show information of passed file descriptorYu Watanabe2-3/+11
2024-10-15sd-json: introduce json_variant_new_fd_info()Yu Watanabe3-0/+152
Currently this is not used, but will be used later.
2024-10-15sd-json: introduce json_variant_new_devnum() and friendsYu Watanabe4-0/+101
2024-10-15fs-util: make readlink_malloc() inlineYu Watanabe2-6/+4
2024-10-15busctl: minor coding style cleanupsYu Watanabe1-35/+42
- rename output parameter of json_transform_and_append(), - return from call() earlier to reduce indentation, - add several missing error messages.
2024-10-15TEST-74-AUX-UTILS: add tests for 'run0 -D'John A. Leuenhagen2-0/+13
2024-10-15run: fix bug causing run0 to ignore `-D /`.John A. Leuenhagen1-1/+6
Since the root directory was being suppressed to NULL, the subsequent check would erroneously think that no working directory was specified. This caused the default working directory to be applied instead.
2024-10-15network/radv: update commentYu Watanabe1-1/+1
DHCPv6PrefixDelegation= is replaced with DHCPPrefixDelegation=.
2024-10-15man/network: update example for router upstream interfaceYu Watanabe1-16/+16
This comments out all optional settings.
2024-10-15network/dhcp6: process hostname and IA_PD on information requesting modeYu Watanabe1-21/+2
Fixes #34299.
2024-10-15sd-dhcp6-lease: adjust information refresh time with lifetime of IA_PDYu Watanabe1-6/+29
For the case when IRT is too large but lifetime of IA_PD is too short.
2024-10-15sd-dhcp6-client: allow to request IA_PD on information requesting modeYu Watanabe3-5/+13
To support RFC 7084, WPD-4.
2024-10-15network/dhcp6: set hostname even if UseAddress=noYu Watanabe1-19/+33
Follow-up for f963f8953daeab03b892616ce0c65f7572932187 and 1536b7b2d00819615bf8eba194de7ccd20c3689f.
2024-10-15sd-dhcp6-lease: use free_and_replace_full()Yu Watanabe1-4/+2
2024-10-15man: update documents of "_outbound" addressesYu Watanabe2-10/+12
Follow-up for 4adf2653e2a68d4d593b46734fd9e24721a8d449. Addresses https://github.com/systemd/systemd/issues/34739#issuecomment-2412904739.
2024-10-15TEST-13-NSPAWN: several cleanupsYu Watanabe1-9/+7
- suppress unnecessary error messages, especially in loop and at_exit(), - ensure the container service is stopped before restarting, - do not send KILL signal, as garbages will remain, and disturb the next invocation, - drop unnecessary workaround of trying machine twice.
2024-10-15machine: trivial coding style cleanupsYu Watanabe1-8/+4
2024-10-15machine: fix memleak in vl_method_list_images()Yu Watanabe1-2/+4
Fixes an issue in fb0ea6a6a36b5fa97e6c57d608bb9f7acb63c8b2.
2024-10-15machine: lookup_machine_by_name_or_pid() may return 1 on error and it is ↵Yu Watanabe3-7/+9
already replied Follow-ups for 1bd979dddbb6ed3ffe410d78a7ff80cbb1c42a64 and later commits. Fixes #34764.