summaryrefslogtreecommitdiffstats
path: root/src/basic/util.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-08-22hwdb: update for v243-rc2Zbigniew Jędrzejewski-Szmek10-5054/+7608
Diff on the hwdb/*.hwdb files shows that again, this is only additions and minor corrections.
2019-08-22journalctl: Make journalctl --user-unit= match on _SYSTEMD_USER_SLICEArian van Putten3-3/+14
journalctl --unit= already did this, and allows you to tail all the logs for a certain slice easily. It seemed only natural to make --user-unit behave in a similar way. The _SYSTEMD_USER_SLICE field was not documented as being added by journald, so I have added that to the documentation too. Furthermore, I have documented the existing behaviour of --unit= and the new behaviour of --user-unit= The behaviour was actually not documented before, so I am also OK with removing the match for the --unit= command instead. The user would then have to manually provide _SYSTEMD_SLICE= filter to journalctl in both cases. Both options work for me.
2019-08-22core: TAKE_PTR in timer_add_one_calendar_specAnita Zhang1-1/+1
Introduced in d00a52c Fixes #13373
2019-08-22hwdb: add sensor location for HP ProBook4535sHans de Goede1-2/+7
https://bugzilla.redhat.com/show_bug.cgi?id=1717712
2019-08-22journald: slightly bump OOM adjust for journald (#13366)Lennart Poettering4-3/+2
If logging disappears issues are hard to debug, hence let's give journald a slight edge over other services when the OOM killer hits. Here are the special adjustments we now make: systemd-coredump@.service.in OOMScoreAdjust=500 systemd-journald.service.in OOMScoreAdjust=-250 systemd-udevd.service.in OOMScoreAdjust=-1000 (i.e. the coredump processing is made more likely to be killed on OOM, and udevd and journald are less likely to be killed)
2019-08-22Add Chuwi Hi10 to 60-sensor.hwdb (#13351)Albrecht Lohofener1-0/+4
2019-08-22pid1: always log successfull process termination quietlyZbigniew Jędrzejewski-Szmek6-12/+23
Fixes #13372.
2019-08-21pid1: after creating transient drop-ins, put file in path cacheZbigniew Jędrzejewski-Szmek1-0/+9
The alternative would be to recreate the cache, but dropins can be created very often for transient settings, so updating the cache seems like a much faster option. Fixes #13287.
2019-08-20shared/watchdog: close watchdog device when done with itZbigniew Jędrzejewski-Szmek1-1/+10
The file descriptor was opened with O_CLOEXEC, so in practice this doesn't change too much, but it seems cleaner to always close the old fd when changing the device path.
2019-08-20fsck: add logging and fix error codes where appropriateLennart Poettering1-6/+5
2019-08-20manager: simplify manager_get_confirm_spawn() a bitLennart Poettering1-11/+13
Let's use our usual way of storing error codes. Let's remove a redundant temporary variable we never change
2019-08-20load-fragment: use path_join() where appropriateLennart Poettering1-4/+2
2019-08-20log: don't invalidate open console fd if we can't open a new oneLennart Poettering1-4/+6
2019-08-20terminal-util: add fallback logic to make_console_stdio()Lennart Poettering1-10/+17
If /dev/console can't be opened, let's use /dev/null instead. Inspired by: #13332
2019-08-20log: cast various log_open() calls to (void)Lennart Poettering1-10/+8
2019-08-20update TODOLennart Poettering1-0/+4
2019-08-20id128: actually support --prettyZbigniew Jędrzejewski-Szmek1-0/+1
We must be all lazy, at least I know I always used -p ;).
2019-08-20test-journal-flush: provide at least *some* logsZbigniew Jędrzejewski-Szmek1-2/+5
Ubunut autopkgtest fails with: 405/501 test-journal-flush FAIL 0.74 s (killed by signal 6 SIGABRT) --- command --- SYSTEMD_KBD_MODEL_MAP='/tmp/autopkgtest.BgjJJv/build.yAM/systemd/src/locale/kbd-model-map' SYSTEMD_LANGUAGE_FALLBACK_MAP='/tmp/autopkgtest.BgjJJv/build.yAM/systemd/src/locale/language-fallback-map' PATH='/tmp/autopkgtest.BgjJJv/build.yAM/systemd/build-deb:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games' /tmp/autopkgtest.BgjJJv/build.yAM/systemd/build-deb/test-journal-flush --- stderr --- Assertion 'r >= 0' failed at src/journal/test-journal-flush.c:48, function main(). Aborting. ------- It's hard to say what is going on here without any error messages whatsoever. The test goes into deep details of journal file handling, so it needs to also do logging on its own.
2019-08-20test-event: stop debugging spewZbigniew Jędrzejewski-Szmek1-2/+2
Ubuntu autopkgtests print output from all tests, and test-event produces a lot of it. Let's cut it down to reasonable size.
2019-08-20basic/build.h: fix typoZbigniew Jędrzejewski-Szmek2-3/+3
2019-08-20cgroup: Also set io.bfq.weightKai Krakow2-0/+8
Current kernels with BFQ scheduler do not yet set their IO weight through "io.weight" but through "io.bfq.weight" (using a slightly different interface supporting only default weights, not per-device weights). This commit enables "IOWeight=" to just to that. This patch may be dropped at some time later. Github-Link: https://github.com/systemd/systemd/issues/7057 Signed-off-by: Kai Krakow <kai@kaishome.de>
2019-08-19tmpfiles: override permissions of static nodes that need thisZbigniew Jędrzejewski-Szmek3-14/+41
Fixes #13350.
2019-08-19shared/seccomp: add sync_file_range2Zbigniew Jędrzejewski-Szmek1-0/+1
Some architectures need the arguments to be reordered because of alignment issues. Otherwise, it's the same as sync_file_range.
2019-08-19Rename tmpfiles.d/kmod.conf to static-nodes.confZbigniew Jędrzejewski-Szmek1-2/+2
It is generated using kmod, but apart from that doesn't have much to do with kmod.
2019-08-19analyze: make cat-config work with relabel-extra.dZbigniew Jędrzejewski-Szmek1-9/+18
2019-08-19systemctl: use unicode in one more placeZbigniew Jędrzejewski-Szmek1-1/+1
2019-08-19man: owned to → owned byZbigniew Jędrzejewski-Szmek1-4/+4
2019-08-19Revert "shared/conf-parser,networkd: EXTRACT_UNQUOTE|EXTRACT_RETAIN_ESCAPE ↵Zbigniew Jędrzejewski-Szmek4-5/+3
→ EXTRACT_UNQUOTE" This reverts commit 8a07b4033e5d3c86931b3dd2ddbca41118c05c60. The tests are kept. test-networkd-conf is adjusted to pass. This fixes #13276. I think current rules are extremely confusing, as the case in test-networkd-conf shows. We apply some kinds of unescaping (relating to quoting), but not others (related to escaping of special characters). But fixing this is hard, because people have adjusted quoting to match our rules, and if we make the rules "better", things might break in unexpected places.
2019-08-19cgroup-util: update comment to reflect stable kernel fixesTopi Miettinen1-1/+2
2019-08-18test: increase qemu timeout for TEST-18 and TEST-19Dan Streetman2-2/+2
These tests runs under qemu, and on some testbeds, without acceleration. On those systems, the current 180 second overall test timeout is too short to run the test. Increasing the timeout to 600s should be enough, even for slow non-accelerated qemu testbeds.
2019-08-18test-network: update test for PreferredLifetime=0Yu Watanabe2-4/+13
2019-08-18network: do not check deprecated flag in address_is_ready()Yu Watanabe1-4/+1
Without this change, the address with PreferredLifetime=0 cannot be ready, and thus, no consequent setting up process does not start. The bug was introduced by 6aa5773. Follow-up for b7ed5384ab55cd4d7b8d7d1ec7f5d5e145f0a2b1. Fixes #13341.
2019-08-17man: add missing commaTheo Ouzhinski1-1/+1
2019-08-17trivial spelling fixes (#13339)Mr-Foo1-2/+2
2019-08-17test/test-functions: add mkdir to import_initdirDan Streetman1-0/+1
This dir is created by create_empty_image_rootdir, as well as indirectly by some other functions, but it should be created by import_initdir so the newly-exported $initdir exists and can be used immediately without relying on other functions to create it.
2019-08-17test: replace $TESTDIR/root with $initdirDan Streetman3-34/+34
The $initdir var is already set to $TESTDIR/root, it should be used instead of direct use of $TESTDIR/root.
2019-08-17test: TEST-33 and TEST-36 should use create_empty_image_rootdirDan Streetman2-12/+2
This recently added function handles mkdir and mounting of the empty image, as well as umounting after test_setup.
2019-08-17test/test-functions: avoid stderr noise, only umount on cleanup if mountpointDan Streetman1-8/+9
Only umount it during cleanup if the $TESTDIR/root dir is a mountpoint. This avoids adding noise to the stderr log such as: mountpoint: /var/tmp/systemd-test.waLOFT/root: No such file or directory
2019-08-16test-network: add tests for RoutingPolicyRule.Family=ipv6 and bothYu Watanabe2-3/+36
2019-08-16network: add RoutingPolicyRule.Family= settingYu Watanabe7-2/+101
Closes #13233.
2019-08-16network: split out copying logic from routing_policy_rule_add_internal()Yu Watanabe1-29/+42
2019-08-16network: rename AddressFamilyBoolean -> AddressFamilyYu Watanabe10-37/+37
We usually do not call an extended boolean as XxxBoolean.
2019-08-16network: add missing entry in serialization/deserializationYu Watanabe2-7/+17
2019-08-16network: serialize/deserialize address familyYu Watanabe2-8/+23
2019-08-16network: refuse the case To= and From= are in different address familyYu Watanabe3-3/+16
2019-08-16udev: allow persistent storage rules work for ubi devicesZbigniew Jędrzejewski-Szmek2-2/+2
Back in dbbf424c8b77c1649e822c20c0b1fee1d2cfd93d, we merged a rule to add persistent storage for /dev/ubi*, but this rule could have never worked because of the top-level exclude. Also set "watch" for /dev/ubi*.
2019-08-16udev: assume all devices which have persistent links also need to be watchedZbigniew Jędrzejewski-Szmek1-1/+3
We had two similar lists, but one was accepting many more device types. I assume that this is by mistake, simply because the lack of device links is easier to notice than the lack of synthesized event after the device is written to. This uses the same list in both places, effectively adding "watch" attribute to /dev/nbd*, /dev/zd*, etc.
2019-08-16 po: update Ukrainian translation (#13329)Yuri Chornoivan1-16/+112
* Update Ukrainian translation * po: update Ukrainian translation
2019-08-16unit-file: downgrade accidentaly high-prio debug log messageLennart Poettering1-1/+1
2019-08-16networkctl: avoid outputting '(null)' for LLDP ports without descriptionLennart Poettering1-1/+1