summaryrefslogtreecommitdiffstats
path: root/test/test-execute (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-01-23docs: fix a few typosDmitry V. Levin5-5/+5
2023-01-23boot: Use objcopy with arm64Callum Farmer1-2/+11
Binutils 2.38 added support for efi-app-aarch64 Still use binary mode if we have an older objcopy Add check for incompatible gnu-efi crt0 containing the header section which gets added by objcopy and if used results in duplicate header and subsequently a broken binary Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
2023-01-23core: ensure init.scope is realized after drop-ins have been loadedLuca Boccassi5-1/+15
If we add a drop-in for init.scope (e.g.: to set some memory limit), it will be loaded long after the cgroup has already been realized. Do it again when creating the special unit.
2023-01-23build: add some coloring to --version outputLennart Poettering2-1/+46
Make it easier to discern enabled and disabled build options.
2023-01-23machinectl: remove unnecessary initializationMike Yuan1-1/+1
2023-01-23machinectl: also enable machines.target when enabling machinesMike Yuan1-0/+6
It's mostly desired to enable machines.target along with the machine since only when both are enabled it would really work.
2023-01-23repart: Add note about UIDs/GIDs of copied files and directoriesDaan De Meyer1-0/+6
2023-01-23Revert "repart: Ensure files end up owned by root in generated filesystems"Daan De Meyer3-95/+47
This reverts commit e59678b2cf42e4206ddabc959d3cf9a5a865ecdc. We also modify the repart integration tests to make them pass with the changes in this commit. In short, we have to make sure every file is owned by the user executing repart. We use tee instead of cat since it makes that easier. This also has the benefit of improving debugability as seeing the config file contents on stdout makes it easier to know which test is failing.
2023-01-23meson: Use python module for detectionJan Janssen1-7/+3
2023-01-23Revert "repart: Make sure all files in the image are owned by root"Daan De Meyer1-17/+9
This reverts commit d2ac7698cb43807a2dd0af727599db486180ebf1.
2023-01-23meson: Move bootctl sources defintion to its own fileJan Janssen2-18/+24
The root meson.build file is already large enough.
2023-01-23test: fix TEST-73-LOCALE on DebianMichael Biebl1-3/+1
Fix incorrection assumption about the Debian patch being buggy and actually making TEST-73-LOCALE fail on Debian. ``` # localectl set-locale LANG=C.UTF-8 # cat /etc/default/locale LANG=C.UTF-8 ```
2023-01-23locale: also save XKB settings to vconsole.confYu Watanabe5-18/+98
Closes #24228. Replaces #25412.
2023-01-23locale: make errors in writing files not criticalYu Watanabe1-8/+4
Suggested at https://github.com/systemd/systemd/pull/25805#discussion_r1054871210 > we now write multiple files and we cannot possibly guarantee that > either both updates worked or neither. unix fs apis simply have > no concept that would allow us to implement that. hence I think > we should update what we can, log about what we cannot, but return > success as long as our in-memory state was updated.
2023-01-23locale: merge vconsole_convert_to_x11_and_emit() with method_set_vc_keyboard()Yu Watanabe1-67/+58
Similary, this also merges x11_convert_to_vconsole_and_emit() with method_set_x11_keyboard(). No functional changes, preparation for later commits.
2023-01-23locale: split out XKB settings to X11ContextYu Watanabe4-140/+262
No functional changes, just refactoring and preparation for later commits.
2023-01-23locale: rename context_free_vconsole() -> context_clear_vconsole()Yu Watanabe1-16/+16
Similary, this also renames context_free_x11() -> context_clear_x11(), to make it clear that these functions do not free Context. Also, this makes context_clear() support to be called more than once.
2023-01-23locale: do not use alloca() for strings which can be potentially arbitraryYu Watanabe1-6/+13
2023-01-23locale: several coding style fixletsYu Watanabe3-55/+80
- add missing assertions, - rename arguments for storing results, - always initialize results on success, - use _cleanup_ attribute at more places, etc.
2023-01-22Resolves #26142 - Fix list of supported personalitiesSteve Ramage1-3/+9
2023-01-22hwdb: Prevent activation of airplane mode on HP ENVY x360DaPigGuy1-0/+2
2023-01-22shared/install: rework an assert to appease gcc-13Zbigniew Jędrzejewski-Szmek1-1/+2
With the previous form, gcc is confused and thinks that .type might be unset. Fixes #26118.
2023-01-22shared/install: rework InstallChange to always have .path setZbigniew Jędrzejewski-Szmek1-2/+6
We would set .path in all cases except INSTALL_CHANGE_AUXILIARY_FAILED, where we would just just .source. This special case is just not worth it, because we can't easily assert that .path is set. Let's remove this special case to help the compiler know that .path is actually set. Avoids a warning with gcc-13.0.1-0.1.fc38.x86_64.
2023-01-22man/sd_notify: fix indentation in sample programsZbigniew Jędrzejewski-Szmek1-11/+14
Whether we use a newline at the beginning of <programlisting> or not doesn't seem to have any effect. So let's use the newline in multi-line examples; it is easier to get the indentation right this way.
2023-01-22man: minor correctionsZbigniew Jędrzejewski-Szmek2-2/+2
Two issues that were missed in 8b9f092112ce097dd5c72a58a092c4176458889c.
2023-01-21sd-path: export env. generators pathsDavid Tardon4-65/+101
2023-01-21systemctl,test: -EBADF instead of -EBADFDYu Watanabe2-2/+2
Follow-up for da20baaeccbcca78350bf64bdc069dec685c95bc.
2023-01-21logs-show: add a splash of colour to verbose outputLennart Poettering1-17/+32
2023-01-21logs-show: minor modernizationsLennart Poettering1-21/+27
2023-01-21sd-journal: validate monotonic timestamp before returning itLennart Poettering1-3/+6
2023-01-21string-util: add common implementation of function that converts sized ↵Lennart Poettering9-56/+129
character buffers to NUL terminated C strings
2023-01-21test-load-fragment: shorten code a bitYu Watanabe1-4/+2
2023-01-21test-load-fragment: fix memleakYu Watanabe1-0/+2
Fixes a leak reported at https://github.com/systemd/systemd/pull/26115#issuecomment-1398026085.
2023-01-21hwdb: Add touchpad toggle mapping for System76 Pangolin 1213r0ck1-1/+5
2023-01-21logs-show: move strlen() handling into update_json_data() so that we can use ↵Lennart Poettering1-6/+11
SD_ID128_TO_STRING()
2023-01-20timesyncd: make sure to update mtime of clock file on each bootLennart Poettering1-0/+51
Let's make sure the timestamp file's mtime is guaranteed to change for each boot, so that it is a useful indicator of time. Or in other words this gurantees that systemd-timesyncd.service acts as a new kind of milestone: that time definitely progressed on this boot even the machine died abnormally imediately after.
2023-01-20timesyncd: modernize load_clock_timestamp() a bitLennart Poettering1-29/+26
Let's log more.
2023-01-20timesyncd: write structured log messages whenever we bump the clock based on ↵Lennart Poettering3-8/+27
disk timestamp It's useful being able to easily detect if a disk-based clock bump was done, let's make it a structure message, the same way as acquiring an NTP fix already is. Also, set the clock to 1 µs further than the timestamp from the disk, after all we know that that timestamp was current when it was written, hence it can't be the right one right now anymore.
2023-01-20journal: use compound initializors at one more placeLennart Poettering1-6/+8
2023-01-20journal: modernize match_make_string()Lennart Poettering1-17/+8
2023-01-20journalctl: don't convert between strv/Set for each log lineLennart Poettering3-17/+9
If output fields are specified, let's store this in a Set right-away, instead of converting between strv and Set again and again for each line. This is not only faster, but also simpler and shorter.
2023-01-20logs-show: use json_variant_unref_many() where appropriateLennart Poettering1-5/+1
2023-01-20bootctl: remove space that should not be thereLennart Poettering1-1/+1
2023-01-20bootctl: split out boot loader spec + boot loader interface commands in ↵Lennart Poettering2-20/+33
--help text grub (at least on fedora) nowadays implements the boot loader spec, but not the boot loader interface. Hence let's split out the commands specific to each in two groups in the --help text. This way the first group just covers boot lodaer spec stuff (i.e. stuff on disk in the ESP/XBOOTLDR partition). And the other covers talking to the boot loader via EFI var.
2023-01-20bootctl: realign column in --help textLennart Poettering1-17/+17
for some reason the descriptions of the switches and the commands weren't aligned, one space off. Fix that.
2023-01-20bootctl: change section title for kernel image commandsLennart Poettering2-3/+3
Let's call them kernel *images*, not just *kernels*.
2023-01-20bootctl: drop full stop at end of --help textsLennart Poettering1-2/+2
We never do that, don't do so here either.
2023-01-20hostnamectl: show firmware date with date only, without timeLennart Poettering1-1/+1
The source (usually DMI/SMBIOS) only has 24h granularity, hence don't show time as well, it's useless.
2023-01-20format-table: add cell type for showing date only timestampsLennart Poettering2-1/+9
2023-01-20time-util: add timestamp output style that shows dates only, no timesLennart Poettering3-17/+47