summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | meson: drop unnecesary default value settingZbigniew Jędrzejewski-Szmek2017-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'true' is the default. Follow-up for 7d77b8880d571447825bb6b0d61683d2e9d58895.
| * | | | | meson.build: reorder tests to match order in meson_options.txtZbigniew Jędrzejewski-Szmek2017-07-261-27/+27
| | |/ / / | |/| | | | | | | | | | | | | This makes it easier to edit both files.
* | | | | boot/efi: don't hard fail on error for tpm measure (#6473)Harald Hoyer2017-07-282-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Display the error for a small amount of time, but don't fail hard. In case of a faulty BIOS, a TPM error should not prevent the boot. If something cares about the PCM measurement, it will be noticed anyway later on. Especially important now, that TPM measurement is the default now on some distribution builds. https://bugzilla.redhat.com/show_bug.cgi?id=1411156
* | | | | test-timesync: ignore failure to listen on /run/systemd/netif/links/ (#6463)Zbigniew Jędrzejewski-Szmek2017-07-281-0/+4
| | | | | | | | | | | | | | | Fixes #6353.
* | | | | Merge pull request #6465 from keszybz/drop-kdbusMartin Pitt2017-07-2865-6826/+152
|\ \ \ \ \ | | | | | | | | | | | | Drop kdbus-dependent code
| * | | | | nspawn: do not mount /sys/fs/kdbusZbigniew Jędrzejewski-Szmek2017-07-231-3/+0
| | | | | |
| * | | | | Drop kdbus bitsZbigniew Jędrzejewski-Szmek2017-07-2326-4860/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some kdbus_flag and memfd related parts are left behind, because they are entangled with the "legacy" dbus support. test-bus-benchmark is switched to "manual". It was already broken before (in the non-kdbus mode) but apparently nobody noticed. Hopefully it can be fixed later.
| * | | | | Drop bus-policy bitsZbigniew Jędrzejewski-Szmek2017-07-2311-418/+0
| | | | | |
| * | | | | Drop busname unit typeZbigniew Jędrzejewski-Szmek2017-07-2328-1545/+2
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since busname units are only useful with kdbus, they weren't actively used. This was dead code, only compile-tested. If busname units are ever added back, it'll be cleaner to start from scratch (possibly reverting parts of this patch).
* | | | | mkosi.arch: fix comment (#6470)AsciiWolf2017-07-281-1/+1
| |_|_|/ |/| | | | | | | libidn -> libidn2
* | | | bash-completion: use the first argument instead of the global variable (#6457)Yu Watanabe2017-07-271-7/+7
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this fix: $ systemctl start <tab> Display all 135 possibilities? (y or n) $ __get_startable_units --system | wc -l 224 the number of the suggestions are quite different, as __get_startable_units --system does not filter already started units. With this fix, $ systemctl start <tab> Display all 135 possibilities? (y or n) $ __get_startable_units --system | wc -l 123 $ __get_template_names --system | wc -l 12 the number of the suggestions matches one the function returns. For consistency with the other internal functions, it should use the first argument instead of the global variable $mode. [zj: add commit message to make it sound like we know what we're doing]
* | | hwdb: Add axis range for System76 Galago Pro (galp2) (#6439)Benjamin Berg2017-07-251-0/+11
| | |
* | | basic: cosmetic changes (#6440)Yu Watanabe2017-07-244-4/+4
| | |
* | | Merge pull request #6438 from poettering/distro-porting-moreZbigniew Jędrzejewski-Szmek2017-07-242-6/+25
|\ \ \ | | | | | | | | extend README and DISTRO_PORTING a bit
| * | | README: document that max_bonds=0 is the way to go for bonding.koLennart Poettering2017-07-241-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Everything else just is annoying, hence let's list this among the requirements we make on the kernel in order to minimize confusion leading to #6184 and suchlike.
| * | | DISTRO_PORTING: document that distros may/should change fallback DNS as well ↵Lennart Poettering2017-07-241-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as fallback NTP if they wish The DNS and NTP fallback server situation is pretty similar, and downstream distros might want to change both to whatever they need, hence mention them both.
* | | | Merge pull request #6429 from keszybz/dropins-and-ordering-cyclesLennart Poettering2017-07-243-51/+64
|\ \ \ \ | |/ / / |/| | | Dropin loading and ordering cycle logging improvements
| * | | core: when logging about dependency cycles, add UNIT= entries for all ↵Zbigniew Jędrzejewski-Szmek2017-07-221-29/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | involved units Example log: Jul 22 15:55:21 fedora systemd[1]: a1.service: Found ordering cycle on a2.service/start Jul 22 15:55:21 fedora systemd[1]: a1.service: Found dependency on a3.service/start Jul 22 15:55:21 fedora systemd[1]: a1.service: Found dependency on a1.service/start Jul 22 15:55:21 fedora systemd[1]: a1.service: Job a2.service/start deleted to break ordering cycle starting with a1.service/start Jul 22 15:55:21 fedora systemd[1]: Starting a1.service... Jul 22 15:55:21 fedora systemd[1]: Started a1.service. Example log entry: Sat 2017-07-22 15:55:21.372389 EDT [s=0004bb6302d94ac3aa69987fb6157338;i=9ae;b=a96eb6153d4f4f3686c7b4 _BOOT_ID=a96eb6153d4f4f3686c7b4db8a432908 _MACHINE_ID=ad18f69b80264b52bb3b766240742383 _HOSTNAME=fedora PRIORITY=3 SYSLOG_FACILITY=3 SYSLOG_IDENTIFIER=systemd _UID=0 _GID=0 _PID=1 _TRANSPORT=journal _CAP_EFFECTIVE=3fffffffff _COMM=systemd _EXE=/usr/lib/systemd/systemd _SYSTEMD_CGROUP=/init.scope _SYSTEMD_UNIT=init.scope _SYSTEMD_SLICE=-.slice _SELINUX_CONTEXT=system_u:system_r:kernel_t:s0 CODE_FILE=../src/core/transaction.c CODE_FUNC=transaction_verify_order_one UNIT=a3.service UNIT=a1.service UNIT=a2.service CODE_LINE=430 MESSAGE=a1.service: Job a2.service/start deleted to break ordering cycle starting with a1.service _CMDLINE=/usr/lib/systemd/systemd --system --deserialize 28 _SOURCE_REALTIME_TIMESTAMP=1500753321372389 This should make it easier to see when any of the units are involved in an ordering cycle. Fixes #6336. v2: - also update the "Unable to break cycle" message.
| * | | shared/dropin: improve error messageZbigniew Jędrzejewski-Szmek2017-07-221-6/+3
| | | | | | | | | | | | | | | | | | | | We're not just sorting, but actually creating the list. We can also use the output parameter directly, without a temporary variable.
| * | | Revert "core: don't load dropin data multiple times for the same unit (#5139)"Zbigniew Jędrzejewski-Szmek2017-07-221-16/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 2d058a87ffb2d31a50422a8aebd119bbb4427244. When we add another name to a unit (by following an alias), we need to reload all drop-ins. This is necessary to load any additional dropins found in the dirs created from the alias name. Fixes #6334.
* | | meson: install the git hook (#6425)Zbigniew Jędrzejewski-Szmek2017-07-242-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was done autogen.sh previously and was dropped in 72cdb3e783174dcf9223a49f03e3b0e2ca95ddb8. Let's add it back. The meson configuration step is the only reasonable place. Note that this only works for the most standard git dirs, e.g. the hook will not be installed if git worktree is used or if $GIT_DIR is specified, etc. I think that's OK because most of the time meson will be run at least once in the original cloned dir.
* | | man/systemd.network: DHCP defaults to "no" (#6423)Lion Yang2017-07-211-1/+2
| | | | | | | | | Code at: /src/network/networkd-network.c#L160
* | | doc/systemd-resolved.service: fix typo (#6422)Lion Yang2017-07-211-1/+1
|/ / | | | | DNS sever => DNS server
* | core: fix typo (#6417)Yu Watanabe2017-07-211-2/+2
| |
* | tree-wide: fput[cs]() → fput[cs]_unlocked() wherever that makes sense (#6396)Lennart Poettering2017-07-2123-185/+185
| | | | | | | | | | | | | | | | As a follow-up for db3f45e2d2586d78f942a43e661415bc50716d11 let's do the same for all other cases where we create a FILE* with local scope and know that no other threads hence can have access to it. For most cases this shouldn't change much really, but this should speed dbus introspection and calender time formatting up a bit.
* | Merge pull request #6413 from poettering/getpidZbigniew Jędrzejewski-Szmek2017-07-2054-151/+282
|\ \ | | | | | | speed up getpid() again
| * | tree-wide: make use of getpid_cached() wherever we canLennart Poettering2017-07-2053-151/+161
| | | | | | | | | | | | | | | | | | | | | This moves pretty much all uses of getpid() over to getpid_raw(). I didn't specifically check whether the optimization is worth it for each replacement, but in order to keep things simple and systematic I switched over everything at once.
| * | process-util: add getpid_cached() as a caching wrapper for getpid()Lennart Poettering2017-07-203-0/+121
| | | | | | | | | | | | Let's make getpid() fast again.
* | | nspawn: downgrade warning when we get sd_notify() message from unexpected ↵Lennart Poettering2017-07-201-1/+1
|/ / | | | | | | | | | | | | | | | | | | process (#6416) Given that we set NOTIFY_SOCKET unconditionally it's not surprising that processes way down the process tree think it's smart to send us a notification message. It's still useful to keep this message, for debugging things, but it shouldn't be generated by default.
* | Merge pull request #6266 from keszybz/drop-autotoolsLennart Poettering2017-07-20191-13093/+100
|\ \ | | | | | | Drop support for autotools / automake / make
| * | build-sys: rename SD_BOOT_LOG_TPM to ENABLE_TPMZbigniew Jędrzejewski-Szmek2017-07-185-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | This makes it more like other configure defines. Also, it fixes meson status output which was looking for HAVE_ and ENABLE_ prefixes only (the define under meson was OK, just the summary message was wrong.)
| * | build-sys: add basic support for ./configure && make && make installZbigniew Jędrzejewski-Szmek2017-07-182-0/+26
| | | | | | | | | | | | | | | | | | | | | This adds the basic make support required by https://github.com/cgwalters/build-api. CFLAGS, CXXFLAGS, DESTDIR variables are supported: ./configure CFLAGS=... CXXFLAGS=... && make && make install DESTDIR=
| * | HACKING: update for mesonZbigniew Jędrzejewski-Szmek2017-07-181-5/+7
| | |
| * | test: try to guess the build directoryZbigniew Jędrzejewski-Szmek2017-07-183-2/+20
| | | | | | | | | | | | | | | This will work if $(TOP_SRC_DIR) has exactly one subdirectory with .ninja_deps. Otherwise, BUILD_DIR has to be specified.
| * | test: convert test/ to use meson installZbigniew Jędrzejewski-Szmek2017-07-184-31/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatic rebuilding is removed: it doesn't play well with ninja, because ninja always writes logs, and even if nothing needs to be built, it will make the log file owned by root. So let's just remove this, and say that the user must always do the build first. I'm also keeping make for the tests, because ninja doesn't play well with sudo. Since the build directory is arbitrary, it needs to be specified, e.g. sudo make BUILD_DIR=/home/zbyszek/src/systemd/build1 -C test/TEST-01-BASIC/
| * | build-sys: drop gitignore patterns for in-tree buildsZbigniew Jędrzejewski-Szmek2017-07-1841-475/+0
| | | | | | | | | | | | ... and other autotools-generated files.
| * | python: remove star importsZbigniew Jędrzejewski-Szmek2017-07-183-3/+3
| | | | | | | | | | | | | | | | | | Star imports are discouraged and break pyflakes. I'm happy to report that pyflakes finds no issues ;)
| * | build-sys: drop support for generation of Makefile-man.amZbigniew Jędrzejewski-Szmek2017-07-182-68/+5
| | |
| * | build-sys: drop automake supportZbigniew Jędrzejewski-Szmek2017-07-18132-12506/+27
| | | | | | | | | | | | | | | v2: - also mention m4
| * | mailmap: add entryZbigniew Jędrzejewski-Szmek2017-07-181-0/+1
| | |
* | | call chase_symlinks without the /sysroot prefix (#6411)Harald Hoyer2017-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | In case fstab-generator is called in the initrd, chase_symlinks() returns with a canonical path "/sysroot/sysroot/<mountpoint>", if the "/sysroot" prefix is present in the path. This patch skips the "/sysroot" prefix for the chase_symlinks() call, because "/sysroot" is already the root directory and chase_symlinks() prepends the root directory in the canonical path returned.
* | | Merge pull request #6386 from poettering/mkosi-without-testsMartin Pitt2017-07-201-2/+3
|\ \ \ | | | | | | | | mkosi: support mkosi's --without-tests switch
| * | | mkosi: use '[' rather than 'test' everywhereLennart Poettering2017-07-201-1/+2
| | | |
| * | | mkosi: support mkosi's --without-tests switchLennart Poettering2017-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the mkosi switch --without-tests that is introduced by: https://github.com/systemd/mkosi/pull/122 With this in place doing "mkosi -ifT shell" is the fastest way from a git clone to a shell within a freshly compiled systemd system.
* | | | hwdb: add two more hotkeys to Lenovo IdeaPad (#6410)Shengyao Xue2017-07-201-0/+2
| | | | | | | | | | | | Tested on Lenovo IdeaPad E41-15, and both keys work after those two line added.
* | | | sd-path: make sure to use tmp_dir() and var_tmp_dir() (#6397)Lennart Poettering2017-07-201-2/+3
|/ / / | | | | | | Let's reuse the common code wherever appropriate.
* | | test-condition: don't assume that all non-root users are normal users (#6409)Felipe Sateler2017-07-191-1/+1
| | | | | | | | | | | | | | | Automated builders may run under a dedicated system user, and this test would fail that Fixes #6366
* | | virt: enable detecting QEMU (TCG) via CPUID (#6399)Daniel Berrange2017-07-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QEMU >= 2.10 will include a CPUID leaf with value "TCGTCGTCGTCG" on x86 when running with the TCG CPU emulator: https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg05231.html Existing methods of detecting QEMU are left unchanged for sake of backcompatibility. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* | | test-unit-name: setup fake runtime directory before starting manager (#6401)Yu Watanabe2017-07-181-4/+11
| | | | | | | | | | | | | | | | | | | | | Since 3536f49e8fa281539798a7bc5004d73302f39673, manager_new() in user mode requires XDG_RUNTIME_DIR is set. So, in this commit, setup_fake_runtime_directory() is added in the beginning of test. Fixes an issue comment in #6384.
* | | core/manager: fix memory leak (#6400)Yu Watanabe2017-07-181-0/+4
|/ / | | | | | | | | | | This fixes the memory leak introduced by 3536f49e8fa281539798a7bc5004d73302f39673, which forgot to free the prefixes in the manager. Fixes #6398.