summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update translation filesWeblate2021-01-0930-1873/+2338
| | | | | | | | Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Co-authored-by: Weblate <noreply@weblate.org> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ Translation: systemd/master
* Translated using Weblate (French)Arnaud T2021-01-091-12/+8
| | | | | | | | Currently translated at 100.0% (187 of 187 strings) Co-authored-by: Arnaud T <listes.00@gmail.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/fr/ Translation: systemd/master
* systemd-sleep: Set SYSTEMD_SLEEP_ACTION for systemd-sleep hooks.Zach Smith2021-01-092-6/+13
| | | | | | | | | When suspend-then-hibernate is called, hooks have no ability to determine which stage of the request is being handled; they only see 'pre' and 'post' with the verb 'suspend-then-hibernate'. This change introduces an environment variable called SYSTEMD_SLEEP_ACTION that contains the name of the action that is processing: 'suspend', 'hibernate', 'hybrid-sleep', or 'suspend-after-failed-hibernate'.
* Merge pull request #18137 from keszybz/deprecate-blanket-import-environmentYu Watanabe2021-01-096-403/+442
|\ | | | | Deprecate blanket import-environment
| * shell-completion: fix systemctl set/unset/import-environmentZbigniew Jędrzejewski-Szmek2021-01-082-1/+15
| | | | | | | | | | | | unset-environment is completed with variable names in the environment block. set-environment the same, but suffixed with "=". import-environment is completed with variable names in the client environment.
| * systemctl: deprecate blanket import-environmentZbigniew Jędrzejewski-Szmek2021-01-084-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Importing the full environment is convenient, but it doesn't work too well in practice, because we get a metric ton of shell-specific crap that should never end up in the global environment block: $ systemctl --user show-environment ... SHELL=/bin/zsh AUTOJUMP_ERROR_PATH=/home/zbyszek/.local/share/autojump/errors.log AUTOJUMP_SOURCED=1 CONDA_SHLVL=0 CVS_RSH=ssh DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=gnome DISPLAY=:0 FPATH=/usr/share/Modules/init/zsh-functions:/usr/local/share/zsh/site-functions:/usr/share/zsh/site-functions:/usr/share/zsh/5.8/functions GDMSESSION=gnome GDM_LANG=en_US.UTF-8 GNOME_SETUP_DISPLAY=:1 GUESTFISH_INIT=$'\\e[1;34m' GUESTFISH_OUTPUT=$'\\e[0m' GUESTFISH_PS1=$'\\[\\e[1;32m\\]><fs>\\[\\e[0;31m\\] ' GUESTFISH_RESTORE=$'\\e[0m' HISTCONTROL=ignoredups HISTSIZE=1000 LOADEDMODULES= OLDPWD=/home/zbyszek PWD=/home/zbyszek QTDIR=/usr/lib64/qt-3.3 QTINC=/usr/lib64/qt-3.3/include QTLIB=/usr/lib64/qt-3.3/lib QT_IM_MODULE=ibus SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2612,unix/unix:/tmp/.ICE-unix/2612 SHLVL=0 STEAM_FRAME_FORCE_CLOSE=1 TERM=xterm-256color USERNAME=zbyszek WISECONFIGDIR=/usr/share/wise2/ ... Plenty of shell-specific and terminal-specific stuff that have no global significance. Let's start warning when this is used to push people towards importing only specific variables. Putative NEWS entry: * systemctl import-environment will now emit a warning when called without any arguments (i.e. to import the full environment block of the called program). This command will usually be invoked from a shell, which means that it'll inherit a bunch of variables which are specific to that shell, and usually to the tty the shell is connected to, and don't have any meaning in the global context of the system or user service manager. Instead, only specific variables should be imported into the manager environment block. Similarly, programs which update the manager environment block by directly calling the D-Bus API of the manager, should also push specific variables, and not the full inherited environment.
| * man: improve description of environment block creationZbigniew Jędrzejewski-Szmek2021-01-082-398/+417
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds a general description of "philosphy" of keeping the environemnt block small and hints about systemd-run -P env. The list of generated variables is split out to a subsection. Viewing the patch with ignoring whitespace changes is recommended. We don't ignore invalid assignments (except in import-environment to some extent), previous description was wrong. For https://bugzilla.redhat.com/show_bug.cgi?id=1912046#c17.
* | meson: fix git ls-files invocations during rebaseZbigniew Jędrzejewski-Szmek2021-01-093-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally ls-files prints the full path to files from the repo root. But when $GIT_WORK_TREE is set, ls-files prints paths relative to the current directory. When rebasing, $GIT_WORK_TREE is set in the commands executed from 'rebase -x'. This causes problems if meson config is touched and the meson reconfigures itself. ($GIT_WORK_TREE shouldn't be relevant, since the paths that ls-files reports don't depend on the work tree, but whatever.) Let's unset GIT_WORK_TREE to avoid the issue. $ (cd test; git --git-dir=$PWD/../.git ls-files ':/test/dmidecode-dumps/*.bin') test/dmidecode-dumps/HP-Z600.bin test/dmidecode-dumps/Lenovo-ThinkPad-X280.bin test/dmidecode-dumps/Lenovo-Thinkcentre-m720s.bin $ (cd test; GIT_WORK_TREE=$PWD/.. git --git-dir=$PWD/../.git ls-files ':/test/dmidecode-dumps/*.bin') dmidecode-dumps/HP-Z600.bin dmidecode-dumps/Lenovo-ThinkPad-X280.bin dmidecode-dumps/Lenovo-Thinkcentre-m720s.bin Fixes #18148.
* | Merge pull request #18169 from OnkelUlla/can_bus_error_reportingYu Watanabe2021-01-096-7/+27
|\ \ | | | | | | network: can: add support for bus error reporting
| * | network: can: add support for bus error reportingUlrich Ölmann2021-01-086-0/+20
| | | | | | | | | | | | | | | | | | Enhance systemd-networkd to be able to control a CAN device's berr-reporting flag via the new boolean directive BusErrorReporting= to be used in network files.
| * | network: can: pretty up debug messagesUlrich Ölmann2021-01-081-5/+5
| | | | | | | | | | | | | | | Do not construct the english words "Enabling"/"Disabling" but use one of the smart helper functions here.
| * | network: can: simplify usage of booleansUlrich Ölmann2021-01-081-4/+4
| | | | | | | | | | | | Harmonize with what is done for TripleSampling, Termination & ListenOnly.
* | | Merge pull request #18168 from yuwata/network-cleanupsYu Watanabe2021-01-094-33/+45
|\ \ \ | | | | | | | | network: several follow-ups for recently merged PRs
| * | | network: refuse to set 0 for rx or tx queueYu Watanabe2021-01-081-1/+1
| | | | | | | | | | | | | | | | Man page says that the valid value is 1-4096.
| * | | test-network: add tests for route advmssYu Watanabe2021-01-082-32/+37
| | | |
| * | | network: read RTAX_ADVMSS in received route messageYu Watanabe2021-01-081-0/+6
| | | |
| * | | network: add missing TAKE_PTR()Yu Watanabe2021-01-081-0/+1
| | |/ | |/|
* | | Merge pull request #18172 from dmedri/masterLuca Boccassi2021-01-082-135/+159
|\ \ \ | | | | | | | | po: minor fixes and updates
| * | | po: systemd.pot updatedDaniele Medri2021-01-081-63/+73
| | | |
| * | | po: italian minor fix and updatesDaniele Medri2021-01-081-72/+86
| |/ /
* | | Merge pull request #18128 from mrc0mmand/coverityLuca Boccassi2021-01-086-24/+120
|\ \ \ | | | | | | | | ci: move jobs from Travis CI to GitHub Actions
| * | | test: temporarily skip failing tests on GH ActionsFrantisek Sumsal2021-01-083-2/+17
| | | |
| * | | ci: move Travis CI unit test jobs to GH ActionsFrantisek Sumsal2021-01-083-22/+103
| | | |
* | | | resolve: fix use after free in DnsAnswerYu Watanabe2021-01-081-0/+13
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug introduced by ae45e1a3832fbb6c96707687e42f0b4aaab52c9b. The set DnsAnswer::set_items contains the reference to the array in DnsAnswer. So, the set must be reconstructed when we realloc() the object. Fixes #18132.
* | | udev/cdrom: split main() into main() and run()Yu Watanabe2021-01-081-23/+26
| | | | | | | | | | | | | | | However, we do not use DEFINE_MAIN_FUNCTION() here, as ubuntu s390x CI does not like it...
* | | udev/cdrom: drop unnecessary headersYu Watanabe2021-01-081-12/+0
| | |
* | | udev/cdrom: drop never hit conditionYu Watanabe2021-01-081-2/+0
| | |
* | | udev/cdrom: void()ify several function callsYu Watanabe2021-01-081-7/+7
| | |
* | | udev/cdrom: tighten variable scope used in loopYu Watanabe2021-01-081-27/+27
| | |
* | | udev/cdrom: use unaligned_read_be32() or friendsYu Watanabe2021-01-081-10/+11
| | |
* | | udev/cdrom: split cd_media_info() into small piecesYu Watanabe2021-01-081-95/+113
| | |
* | | udev/cdrom: introduce enum for media stateYu Watanabe2021-01-081-18/+40
| | |
* | | udev/cdrom: move media status to ContextYu Watanabe2021-01-081-34/+35
| | |
* | | udev/cdrom: introduce enum for media and drive featureYu Watanabe2021-01-081-636/+279
| | |
* | | udev/cdrom: introduce ContextYu Watanabe2021-01-081-49/+94
| | |
* | | udev/cdrom: make cd_profiles() return positive value if drive has mediaYu Watanabe2021-01-081-15/+14
| | |
* | | udev/cdrom: make media_lock() return negative errnoYu Watanabe2021-01-081-9/+5
| | |
* | | udev/cdrom: introduce scsi_cmd_run_and_log()Yu Watanabe2021-01-081-99/+99
| | |
* | | udev/cdrom: use random_u64() and usleep()Yu Watanabe2021-01-081-7/+3
| | |
* | | udev/cdrom: split out parse_argv() and help()Yu Watanabe2021-01-081-49/+58
| | |
* | | network: route - add support to configure tcp advmssSusant Sahani2021-01-085-0/+81
| |/ |/|
* | Merge pull request #18156 from BjoernDaase/patch-3hadess2021-01-082-14/+18
|\ \ | |/ |/| hwdb: Force no "mouse" type on Logitech MX Keys
| * hwdb: Force no "mouse" type on Logitech MX KeysBjörn Daase2021-01-081-0/+4
| | | | | | Fixes https://gitlab.freedesktop.org/upower/upower/-/issues/128
| * hwdb: Relax parsing script to allow 0 and 1 for all ID_* propertiesBjörn Daase2021-01-081-14/+14
| |
* | man: clarify that coredumps are gc'd after 3 daysAJ Jordan2021-01-071-2/+4
| |
* | pkg-config: make prefix overridable againJan Tojnar2021-01-071-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While we don't support prefix being != /usr, and this is hardcoded all over the place, variables in pkg-config file are expected to have overridable base directory. This is important for at least the following two use cases: - Installing projects to non-FHS package-specific prefixes for Nix-style package managers. Of course, it is then their responsibility to ensure systemd can find the service files. - Installing to local path for development purposes. This is a compromise between running a program from a build directory, and running it fully installed to system prefix. You will not want to write to system prefix in either case. For more information, see also https://www.bassi.io/articles/2018/03/15/pkg-config-and-paths/ Fixes https://github.com/systemd/systemd/issues/18082 Partially reverts 6e65df89c348242dbd10036abc7dd5e8181cf733
* | ci: turn off Azure PipelinesEvgeny Vereshchagin2021-01-073-37/+0
|/
* mkosi: Enable InstallDirectory and SourceFileTransferFinal optionsDaan De Meyer2021-01-071-0/+2
| | | | | | | | | | - InstallDirectory caches the install part of the build process which speeds up incremental builds a little and allows inspecting the installed components in mkosi.installdir. - SourceFileTransferFinal copies the source files to the final image which makes the gdb experience in qemu/systemd-nspawn a bit nicer as it can now find the source files and show the source code in the gdb cli itself.
* stat-util: don't try to open path on path_is_temporary_fs()Lennart Poettering2021-01-071-4/+3
| | | | | I mean, the old code at least used O_PATH, but still, we shouldn't allocate/close an fd if we don't have to.
* Merge pull request #18044 from weblate/weblate-systemd-masterLennart Poettering2021-01-0612-656/+1424
|\ | | | | Translations update from Weblate