- Sep 02, 2024
-
-
Jane Rachinger authored
-
Jane Rachinger authored
-
On musl, disabling buffering when writing to oom_score_adj will cause the following error. Failed to adjust OOM setting: Invalid argument This error appears for systemd-udevd.service and dbus.service. This is because kernel receives '-' instead of the whole '-900' if buffering is disabled. This is libc implementation specific, as glibc does not have this issue. Upstream-Status: Inappropriate [musl specific] Signed-off-by:
Chen Qi <Qi.Chen@windriver.com> [rebased for systemd 243] Signed-off-by:
Scott Murray <scott.murray@konsulko.com>
-
Jane Rachinger authored
-
Jane Rachinger authored
This includes multiple tiny patches, so adding co-authored for these. Co-Authored-By:
Chen Qi <Qi.Chen@windriver.com> Co-Authored-By:
Caleb Connolly <caleb@postmarketos.org>
-
XSI-compliant strerror_r and GNU-specifi strerror_r are different. int strerror_r(int errnum, char *buf, size_t buflen); /* XSI-compliant */ char *strerror_r(int errnum, char *buf, size_t buflen); /* GNU-specific */ We need to distinguish between them. Otherwise, we'll get an int value assigned to (char *) variable, resulting in segment fault. Upstream-Status: Inappropriate [musl specific] Signed-off-by:
Chen Qi <Qi.Chen@windriver.com>
-
musl does not have this API Upstream-Status: Inappropriate [musl-specific] Signed-off-by:
Khem Raj <raj.khem@gmail.com>
-
Upstream-Status: Inappropriate [musl-specific] Signed-off-by:
Khem Raj <raj.khem@gmail.com>
-
PRIu{32,64} is not right format to represent rlim_t type therefore use %ju and typecast the rlim_t variables to uintmax_t. Fixes portablility errors like execute.c:3446:36: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'rlim_t {aka long long unsigned int}' [-Werror=format=] | fprintf(f, "%s%s: " RLIM_FMT "\n", | ^~~~~~~~ | prefix, rlimit_to_string(i), c->rlimit[i]->rlim_max); | ~~~~~~~~~~~~~~~~~~~~~~ Upstream-Status: Denied [https://github.com/systemd/systemd/pull/7199 ] Signed-off-by:
Khem Raj <raj.khem@gmail.com> [Rebased for v241] Signed-off-by:
Chen Qi <Qi.Chen@windriver.com>
-
Fix the following compile failure: error: redefinition of 'struct prctl_mm_map' Upstream-Status: Inappropriate [musl specific] Signed-off-by:
Chen Qi <Qi.Chen@windriver.com>
-
Fixes errors: src/test/test-cpu-set-util.c:18:54: error: '__cpu_mask' undeclared (first use in this function) src/test/test-sizeof.c:73:14: error: '__cpu_mask' undeclared (first use in this function) __cpu_mask is an internal type of glibc's cpu_set implementation, not part of the POSIX definition, which is problematic when building with musl, which does not define a matching type. From inspection of musl's sched.h, however, it is clear that the corresponding type would be unsigned long, which does match glibc's actual __CPU_MASK_TYPE. So, add a typedef to cpu-set-util.h defining __cpu_mask appropriately. Upstream-Status: Inappropriate [musl specific] Signed-off-by:
Scott Murray <scott.murray@konsulko.com>
-
Sadly, systemd has decided to use yet another GNU extention in a macro lets make this such that we can use XSI compliant strerror_r() for non-glibc hosts Upstream-Status: Inappropriate [musl specific] Signed-off-by:
Khem Raj <raj.khem@gmail.com>
-
Upstream-Status: Inappropriate [musl specific] Signed-off-by:
Emil Renner Berthing <systemd@esmil.dk> Signed-off-by:
Khem Raj <raj.khem@gmail.com> Signed-off-by:
Chen Qi <Qi.Chen@windriver.com> [rebased for systemd 243] Signed-off-by:
Scott Murray <scott.murray@konsulko.com>
-
- Sep 01, 2024
-
-
Yu Watanabe authored
Follow-up for c8dbf9ac.
-
Luca Boccassi authored
network/route: fix adjustment of nexthop weight
-
Yu Watanabe authored
Fixes #34167.
-
Yu Watanabe authored
Otherwise, an existing route may be labeled as foreign even after we reconfigure it.
-
Yu Watanabe authored
-
Mike Yuan authored
-
- Aug 31, 2024
-
-
Zbigniew Jędrzejewski-Szmek authored
https://fedoraproject.org/wiki/Changes/RenameNobodyUser, 2018: > Use "nobody:nobody" as the names for the kernel overflow UID:GID pair, and > retire the old "nfsnobody" name and the old "nobody:nobody" pair with 99:99 > numbers.
-
Yu Watanabe authored
Hopefully fixes #34204.
-
Yu Watanabe authored
-
Yu Watanabe authored
updatectl: Bugfixes
-
Christoph Anton Mitterer authored
Closes #34199. Signed-off-by:
Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
-
Adrian Vovk authored
The progress_bar functions do their own buffering: they reconfigure stderr, then print, then flush and disable buffering on their own. In situations where multiple progress bars are being drawn at a time (for example, in updatectl), it's even more efficient to hoist the buffering and flushing to the call site, and avoid drawing each progress bar individually. To that end, new _unbuffered variants of the progress_bar functions. And we use them in updatectl.
-
Adrian Vovk authored
This applies a couple of aesthetic changes to the way updatectl renders progress information 1. We invert from "ICON TARGET MESSAGE" to "TARGET: ICON MESSAGE" to better fit in with the systemd progress bars, which look like "TARGET [==========---------] XX%". The original version of the sysupdated PR implemented its own progress bars that were oriented differently: "[==========---------] TARGET XX%". When we swapped the progress bar we didn't swap the status messages 2. When a target finishes updating, instead of leaving a 100% progress bar on screen for potentially extended periods of time (which implies to the user that the update isn't actually done...), we show a status message saying the target is done updating. 3. Fixed a minor bug where an extra newline would be printed after the total progress bar. At the top of the rendering function, we scroll the terminal's scroll-back just enough to fit a line for each target, and one for the total. This means that we should not print an additional line after the total, or else it'll scroll the terminal's buffer by an additional character. This bug was introduced at some point during review 4. Clears the Total progress bar before quitting. By the time we're quitting, that progress bar will be showing no useful status for the user. Also, the fix in point 3 will cause the shell's prompt to appear on the same line as the Total progress bar, partially overwriting it and leaving the shell in a glitchy state.
-
Yu Watanabe authored
Follow-up for 1ff0164b.
-
Adrian Vovk authored
Otherwise we end up half-overwriting the progress bar, which looks buggy
-
Adrian Vovk authored
This fixes a bug introduced during review of sysupdated. Originally, we just returned EALREADY verbatim to signify that the target is already up-to-date. Then we switched this to a proper error (org.freedesktop.sysupdate1.NoCandidate) during review. But that now maps to EIO, not EALREADY. Thus, whenever there's nothing to update, updatectl would report I/O errors to the user, even though nothing actually went wrong.
-
Adrian Vovk authored
We always want a space there. So let's just put one in the drawing routine, and adjust the call cites to avoid adding a second one.
-
- Aug 30, 2024
-
-
Yu Watanabe authored
cryptenroll: don't return slot 0 when we have no policy to search for
-
Daan De Meyer authored
Otherwise, when merging multiple directory trees, the output becomes unreproducible as the directory timestamps will be changed to the current time when copying identical directories from the second tree. We introduce a new copy flag to achieve this behavior.
-
PavlNekrasov authored
-
Lennart Poettering authored
Let's be helpful and provide an actionable hint.
-
Lennart Poettering authored
-
Lennart Poettering authored
If the policy hash is empty we shouldn't return "0" from search_policy_hash(), because that is understood as slot index 0, but that's unlikely to match the policy. Hence, return -ENOENT instead, indicating that we can't find a matching slot.
-
Lennart Poettering authored
-
Luca Boccassi authored
* bb6db3edfe Install new sd-sysupdated files in systemd-container
-
Lennart Poettering authored
Use these helpers whenever appropriate. Drop separate string checks, since these helpers already do them anyway. No actual code change, just a rework to make use of a nice helper we have already.
-
Lennart Poettering authored
-