]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
8 years agotests: override XDG_RUNTIME_DIR where we use the user runtime dir
Lennart Poettering [Fri, 8 Apr 2016 16:54:05 +0000 (18:54 +0200)] 
tests: override XDG_RUNTIME_DIR where we use the user runtime dir

We don#t really support systems where XDG_RUNTIME_DIR is not supported for
systemd --user. Hence, let's always set our own XDG_RUNTIME_DIR for tests that
involve systemd --user, so that we know it is set, and that it doesn't polute
the user's actual runtime dir.

8 years agocore: optimize unit_write_drop_in a bit
Lennart Poettering [Fri, 8 Apr 2016 16:13:02 +0000 (18:13 +0200)] 
core: optimize unit_write_drop_in a bit

There's no point in first determining the drop-in file name path, then
forgetting it again, and then determining it again. Instead, just generated it
once, and then write to ti directly.

8 years agocore: when creating a drop-in snippet, add a comment explaining this to it
Lennart Poettering [Fri, 8 Apr 2016 16:10:32 +0000 (18:10 +0200)] 
core: when creating a drop-in snippet, add a comment explaining this to it

8 years agocore,systemctl: add new "systemctl revert" command
Lennart Poettering [Fri, 8 Apr 2016 16:00:36 +0000 (18:00 +0200)] 
core,systemctl: add new "systemctl revert" command

This allows dropping all user configuration and reverting back to the vendor
default of a unit file. It basically undoes what "systemctl edit", "systemctl
set-property" and "systemctl mask" do.

8 years agoinstall: fix errno handling
Lennart Poettering [Fri, 8 Apr 2016 15:59:52 +0000 (17:59 +0200)] 
install: fix errno handling

8 years agoinstall: simplify skip_root() a bit
Lennart Poettering [Fri, 8 Apr 2016 15:58:53 +0000 (17:58 +0200)] 
install: simplify skip_root() a bit

Exit early, so that we can get rid of the large if block.

8 years agonstall: no need to export unit_file_lookup_state() anymore
Lennart Poettering [Fri, 8 Apr 2016 09:30:24 +0000 (11:30 +0200)] 
nstall: no need to export unit_file_lookup_state() anymore

We only use it inside of install.c, hence let's make it static.

8 years agotree-wide: add new SIGNAL_VALID() macro-like function that validates signal numbers
Lennart Poettering [Fri, 8 Apr 2016 09:27:28 +0000 (11:27 +0200)] 
tree-wide: add new SIGNAL_VALID() macro-like function that validates signal numbers

And port all code over to use it.

8 years agobasic: remove rbtree code, it's unused
Lennart Poettering [Thu, 7 Apr 2016 17:22:24 +0000 (19:22 +0200)] 
basic: remove rbtree code, it's unused

it's unused, and should we need it one day we can always resurrect it from git
history.

8 years agosysv-generator: port to use new unit_file_exists() call
Lennart Poettering [Thu, 7 Apr 2016 17:18:59 +0000 (19:18 +0200)] 
sysv-generator: port to use new unit_file_exists() call

The code previously queries the state of a unit file, but was only interested
in the existance of it, hence let's use unit_file_exists() instead, the same
way the SysV compat code in systemctl does it.

8 years agosystemctl: don't confuse sysv code with generated units
Lennart Poettering [Thu, 7 Apr 2016 16:48:01 +0000 (18:48 +0200)] 
systemctl: don't confuse sysv code with generated units

The SysV compat code checks whether there's a native unit file before looking
for a SysV init script. Since the newest rework generated units will show up in
the unit path, and hence the checks ended up assuming that there always was a
native unit file for each init script: the generated one.

With this change the generated unit file directory is suppressed from the
search path when this check is done, to avoid the confusion.

8 years agopath-lookup: move generator_binary_paths() to end of file
Lennart Poettering [Thu, 7 Apr 2016 15:51:26 +0000 (17:51 +0200)] 
path-lookup: move generator_binary_paths() to end of file

Let's keep the code that manipulates LookupPaths together, and move
generator_binary_paths() to the end of the .h and .c files, since it is not
strictly related to that.

8 years agosystemctl: add error message when we get unexpected event from waitid()
Lennart Poettering [Thu, 7 Apr 2016 15:41:48 +0000 (17:41 +0200)] 
systemctl: add error message when we get unexpected event from waitid()

We should log about everything we don't expect.

Also, add a comment for one case were we do not log, on purpose, and make it
use a separate error code.

8 years agosystemctl: fix incorrect errno for error message
Lennart Poettering [Thu, 7 Apr 2016 15:41:35 +0000 (17:41 +0200)] 
systemctl: fix incorrect errno for error message

8 years agosystemctl: move check whether a service exists as native unit file to install.c
Lennart Poettering [Thu, 7 Apr 2016 15:40:11 +0000 (17:40 +0200)] 
systemctl: move check whether a service exists as native unit file to install.c

Move the search path check from the SysV service compat support into install.c
so that we can reuse the usual algorithm instead of rolling a private loop for
this.

8 years agocore: rework reboot parameter logic a bit
Lennart Poettering [Thu, 7 Apr 2016 14:53:37 +0000 (16:53 +0200)] 
core: rework reboot parameter logic a bit

Always warn if something fails, and clarify that the involved utility functions
do so in their name.

Drop the REBOOT_PARAM_FILE macro. We don't do this for other flag file paths
like this, so don't do this for this one either. The path isn't configurable
anyway, hence let's make this easier to read by avoiding this one indirection.

8 years agocore: be more paranoid when mixing umask and fopen()
Lennart Poettering [Thu, 7 Apr 2016 14:15:26 +0000 (16:15 +0200)] 
core: be more paranoid when mixing umask and fopen()

Let's be extra careful with the umask when we use simple fopen(), as this
creates files with 0777 by default.

8 years agocore: rework how transient unit files and property drop-ins work
Lennart Poettering [Thu, 7 Apr 2016 13:43:59 +0000 (15:43 +0200)] 
core: rework how transient unit files and property drop-ins work

With this change the logic for placing transient unit files and drop-ins
generated via "systemctl set-property" is reworked.

The latter are now placed in the newly introduced "control" unit file
directory. The fomer are now placed in the "transient" unit file directory.

Note that the properties originally set when a transient unit was created will
be written to and stay in the transient unit file directory, while later
changes are done via drop-ins.

This is preparation for a later "systemctl revert" addition, where existing
drop-ins are flushed out, but the original transient definition is restored.

8 years agocore: introduce a "control" unit file directory
Lennart Poettering [Wed, 6 Apr 2016 19:02:36 +0000 (21:02 +0200)] 
core: introduce a "control" unit file directory

This patch adds a concept of a "control" unit file directory, which is supposed
to be used as place for unit file drop-ins created by "systemctl set-property"
(note that this directory is not actually hooked up to "systemctl set-property"
yet, that's coming in a later patch).

The rationale for this: previously changes made by the user and by "systemctl
set-property" were done in the same directory, which made semantics very
unclear: the changes made by "systemctl set-property" were applied instantly,
and their drop-ins only written to not lose settings on a later "systemctl
daemon-reload", while drop-ins made by the user would only be in effect after
"systemctl daemon-reload". This is particular problematic as the changes made
by "systemctl set-property" would really apply immediately without any respect
for the unit search path. This meant that using "set-property" could have an
effect that is lsot as soon as "daemon-reload" is issued, in case there was a
"later" drop-in already in place.

With this change the directories are seperated, and the "control" directory
always takes the highest priority of all, to avoid any confusion.

8 years agoinstall: rename generator_paths() → generator_binary_paths()
Lennart Poettering [Wed, 6 Apr 2016 18:48:58 +0000 (20:48 +0200)] 
install: rename generator_paths() → generator_binary_paths()

This is too confusing, as this funciton returns the paths to the generator
binaries, while usually when we refer to the just the "generator path" we mean
the generated unit files. Let's clean this up.

8 years agocore: move flushing of generated unit files to path-lookup.c
Lennart Poettering [Wed, 6 Apr 2016 18:47:44 +0000 (20:47 +0200)] 
core: move flushing of generated unit files to path-lookup.c

It's very similar to the mkdir and trim operations for the generator dirs,
hence let's unify this at a single place.

8 years agocore: minor coding style fix
Lennart Poettering [Wed, 6 Apr 2016 18:46:52 +0000 (20:46 +0200)] 
core: minor coding style fix

8 years agotests: make sure test-path-lookup can run even when no units are installed on test...
Lennart Poettering [Wed, 6 Apr 2016 17:15:12 +0000 (19:15 +0200)] 
tests: make sure test-path-lookup can run even when no units are installed on test system

8 years agolocaled: downgrade libxkbcommon to an optional runtime dependency
Lennart Poettering [Wed, 6 Apr 2016 16:23:37 +0000 (18:23 +0200)] 
localed: downgrade libxkbcommon to an optional runtime dependency

Previously, libxkbcommon was a compile-time option. When enabled the localed
binary would strictly depend on it, thus pulling in libxkbcommon and its
dependencies, which are non-trivial in size.

With this change we dlopen() libxkbcommon when it is available instead. If the
library is available behaviour is as before. However, if it isn't the system is
considered "headless", i.e. without local hardware and all attempts to set the
local keyboard configuration will be refused.

This is useful for general-purpose distributions which want to support
"headless" (such as container systems) and "full" systems with the same build.

8 years agotest: bump up log level for install root test
Lennart Poettering [Wed, 6 Apr 2016 15:49:27 +0000 (17:49 +0200)] 
test: bump up log level for install root test

8 years agoshared: add a temporary work-around for kernel header inclusion fuck-up
Lennart Poettering [Tue, 5 Apr 2016 17:30:31 +0000 (19:30 +0200)] 
shared: add a temporary work-around for kernel header inclusion fuck-up

See: #2864

8 years agoinstall: unify checking whether operations may be applied to a unit file in a new...
Lennart Poettering [Mon, 7 Mar 2016 18:15:51 +0000 (19:15 +0100)] 
install: unify checking whether operations may be applied to a unit file in a new function

Let's replace repeated code by a single implementation in a single function.

8 years agoinstall: introduce a new unit file state "transient"
Lennart Poettering [Mon, 7 Mar 2016 18:07:30 +0000 (19:07 +0100)] 
install: introduce a new unit file state "transient"

Now, that the search path logic knows the unit path for transient units we also
can introduce an explicit unit file state "transient" that clarifies to the
user what kind of unit file he is encountering.

8 years agoinstall: fix root prefix handling
Lennart Poettering [Mon, 7 Mar 2016 16:40:07 +0000 (17:40 +0100)] 
install: fix root prefix handling

Previously, we'd execute some operations with the root prefix applied, while
others without (which was a bug). Clean this up: all paths are now prefixed
properly with the root path, and we strip it off when necessary.

(Of course, an alternative option would be to strictly pass around paths
without the prefix prepended and only prepend it right before hitting the disk,
however, I am came to the conclusion this would result in more code.)

8 years agopath-lookup: make user_runtime_dir() more generic
Lennart Poettering [Mon, 29 Feb 2016 19:56:47 +0000 (20:56 +0100)] 
path-lookup: make user_runtime_dir() more generic

Let's make the suffix it appends configurable. This way we can reuse it at a second place.

8 years agopath-lookup: clean up user_config_home() and user_runtime_dir()
Lennart Poettering [Mon, 29 Feb 2016 19:41:54 +0000 (20:41 +0100)] 
path-lookup: clean up user_config_home() and user_runtime_dir()

Let's modernize these calls a bit.

Also, don't call them from user_dirs() anymore, as we already have both dirs in
the list a second time via the persistent_config and runtime_config function
parameters.

8 years agoupdate CODING_STYLE a bit
Lennart Poettering [Mon, 29 Feb 2016 19:29:53 +0000 (20:29 +0100)] 
update CODING_STYLE a bit

8 years agopath-lookup: stop exporting two functions
Lennart Poettering [Fri, 26 Feb 2016 17:35:46 +0000 (18:35 +0100)] 
path-lookup: stop exporting two functions

user_runtime_dir() and user_config_home() are not used externally anymore,
hence let's not export them anymore.

8 years agocore: modernize manager_build_unit_patch_cache() a bit
Lennart Poettering [Fri, 26 Feb 2016 17:28:45 +0000 (18:28 +0100)] 
core: modernize manager_build_unit_patch_cache() a bit

8 years agocore: don't reorder drop-ins when changing properties
Lennart Poettering [Fri, 26 Feb 2016 16:58:37 +0000 (17:58 +0100)] 
core: don't reorder drop-ins when changing properties

The drop-in order we present should actually show what we is in effect, hence
let's not reorder it when writing changes. After all, just sorting
alphabetically is going to break things, as it doesn't respect that /etc breaks
/run breaks /usr...

8 years agocore: don't drop transient drop-ins when loading the rest
Lennart Poettering [Fri, 26 Feb 2016 16:05:33 +0000 (17:05 +0100)] 
core: don't drop transient drop-ins when loading the rest

Previously, when creating a transient unit, we'd first add the transient
drop-ins to the unit, and then normally load any other drop-ins later on top of
this, replacing the already loaded drop-ins. Let's not do this, after all the
transient drop-ins area already in effect, let's just add what we find on disk,
but not replace it.

8 years agocore: rework logic to drop duplicate and non-existing items from search path
Lennart Poettering [Thu, 25 Feb 2016 01:32:19 +0000 (02:32 +0100)] 
core: rework logic to drop duplicate and non-existing items from search path

Move this into a function of its own, so that we can run it after we ran the
generators, so that it takes into account removed generator dirs.

8 years agopath-lookup: split out logic for mkdir/rmdir of generator dirs in their own functions
Lennart Poettering [Thu, 25 Feb 2016 00:44:30 +0000 (01:44 +0100)] 
path-lookup: split out logic for mkdir/rmdir of generator dirs in their own functions

8 years agocore: add a separate unit directory for transient units
Lennart Poettering [Thu, 25 Feb 2016 00:13:57 +0000 (01:13 +0100)] 
core: add a separate unit directory for transient units

Previously, transient units were created below the normal runtime directory
/run/systemd/system. With this change they are created in a special transient
directory /run/systemd/transient, which only contains data for transient units.

This clarifies the life-cycle of transient units, and makes clear they are
distinct from user-provided runtime units. In particular, users may now
extend transient units via /run/systemd/system, without systemd interfering
with the life-cycle of these files.

This change also adds code so that when a transient unit exits only the
drop-ins in this new directory are removed, but nothing else.

Fixes: #2139
8 years agopath-lookup: add configured unit paths back into search path
Lennart Poettering [Wed, 24 Feb 2016 23:54:31 +0000 (00:54 +0100)] 
path-lookup: add configured unit paths back into search path

After all, for test builds they might differ from /etc/systemd/{user|system},
hence they should be included.

8 years agocore: reuse manager_get_runtime_prefix() at more places
Lennart Poettering [Wed, 24 Feb 2016 23:30:32 +0000 (00:30 +0100)] 
core: reuse manager_get_runtime_prefix() at more places

8 years agoinstall: add root directory to LookupPaths structure
Lennart Poettering [Wed, 24 Feb 2016 23:16:51 +0000 (00:16 +0100)] 
install: add root directory to LookupPaths structure

We use the root directory parameter while putting together the LookupPaths
structure, hence let's also store it in the structure as-is. That way we can
drop a parameter from half of the functions in install.c

Also, let's move the validation of the root paths into lookup_paths_init() so
that we can drop even more code from install.c

8 years agoinstall: change in_search_path() to take a LookupPaths structure
Lennart Poettering [Wed, 24 Feb 2016 20:47:54 +0000 (21:47 +0100)] 
install: change in_search_path() to take a LookupPaths structure

Similar to the other calls that operate on the collected path data.

8 years agoinstall: rename unit_file_is_generated() → path_is_generator()
Lennart Poettering [Wed, 24 Feb 2016 20:45:19 +0000 (21:45 +0100)] 
install: rename unit_file_is_generated() → path_is_generator()

This way the funciton name matches nicely our other calls path_is_config() and
path_is_runtime().

8 years agoinstall: be more accurate when checking whether something is runtime configuration
Lennart Poettering [Wed, 24 Feb 2016 20:43:09 +0000 (21:43 +0100)] 
install: be more accurate when checking whether something is runtime configuration

Let's actually check the runtime config dir, instead of just /run.

8 years agonetwork: hashmap_put() can fail
Lennart Poettering [Wed, 24 Feb 2016 20:37:42 +0000 (21:37 +0100)] 
network: hashmap_put() can fail

Let's properly handle hashmap_put() failing.

8 years agocore: introduce MANAGER_IS_RELOADING() macro
Lennart Poettering [Wed, 24 Feb 2016 20:36:09 +0000 (21:36 +0100)] 
core: introduce MANAGER_IS_RELOADING() macro

This replaces the old function call manager_is_reloading_or_reexecuting() which
was used only at very few places. Use the new macro wherever we check whether
we are reloading. This should hopefully make things a bit more readable, given
the nature of Manager:n_reloading being a counter.

8 years agocore: remove ManagerRunningAs enum
Lennart Poettering [Wed, 24 Feb 2016 20:24:23 +0000 (21:24 +0100)] 
core: remove ManagerRunningAs enum

Previously, we had two enums ManagerRunningAs and UnitFileScope, that were
mostly identical and converted from one to the other all the time. The latter
had one more value UNIT_FILE_GLOBAL however.

Let's simplify things, and remove ManagerRunningAs and replace it by
UnitFileScope everywhere, thus making the translation unnecessary. Introduce
two new macros MANAGER_IS_SYSTEM() and MANAGER_IS_USER() to simplify checking
if we are running in one or the user context.

8 years agosystemctl: port systemctl over to the new LookupPaths configuration directory fields
Lennart Poettering [Wed, 24 Feb 2016 17:17:42 +0000 (18:17 +0100)] 
systemctl: port systemctl over to the new LookupPaths configuration directory fields

8 years agoinstall: make use of configuration directory paths in LookupPaths
Lennart Poettering [Wed, 24 Feb 2016 16:52:45 +0000 (17:52 +0100)] 
install: make use of configuration directory paths in LookupPaths

Now that the LookupPaths structure contains the directory paths, let's make use
of that everywhere instead of duplicating the logic.

8 years agocore: add configuration directories to LookupPaths
Lennart Poettering [Wed, 24 Feb 2016 16:18:42 +0000 (17:18 +0100)] 
core: add configuration directories to LookupPaths

Let's add a seperate fields for the directories where we place runtime and
persistent configuration, so that we can use this in install.c (to be added in
a later commit), and we store path information in the same place everywhere.

8 years agocore: when enabling a generated unit file, return a clean error
Lennart Poettering [Wed, 24 Feb 2016 15:02:48 +0000 (16:02 +0100)] 
core: when enabling a generated unit file, return a clean error

Let's be precise when the user tries to invoke an "enable" operation on a
generated unit file.

8 years agocore: add a new unit file state "generated"
Lennart Poettering [Wed, 24 Feb 2016 14:44:46 +0000 (15:44 +0100)] 
core: add a new unit file state "generated"

Now that we store the generator directories in LookupPaths we can use this to
intrdouce a new unit file state called "generated", for units in these
directories.

Fixes: #2348
8 years agocore: rework generator dir logic, move the dirs into LookupPaths structure
Lennart Poettering [Wed, 24 Feb 2016 14:31:33 +0000 (15:31 +0100)] 
core: rework generator dir logic, move the dirs into LookupPaths structure

A long time ago – when generators where first introduced – the directories for
them were randomly created via mkdtemp(). This was changed later so that they
use fixed name directories now. Let's make use of this, and add the genrator
dirs to the LookupPaths structure and into the unit file search path maintained
in it. This has the benefit that the generator dirs are now normal part of the
search path for all tools, and thus are shown in "systemctl list-unit-files"
too.

8 years agoman: minor nspawn doc fixes
Lennart Poettering [Wed, 24 Feb 2016 13:08:53 +0000 (14:08 +0100)] 
man: minor nspawn doc fixes

8 years agocore: drop SysV paths from path-lookup logic
Lennart Poettering [Tue, 23 Feb 2016 19:38:53 +0000 (20:38 +0100)] 
core: drop SysV paths from path-lookup logic

We don't need it anymore, give that sysv-generator can determine the path on
its own now.

8 years agosysv-generator: don't use LookupPath logic for determining SysV paths
Lennart Poettering [Tue, 23 Feb 2016 19:37:37 +0000 (20:37 +0100)] 
sysv-generator: don't use LookupPath logic for determining SysV paths

The sysv-generator is the only user of the SysV paths these days, let's make it
figure out the right paths on its own.

(In a subsequent commit we can then drop the same logic from LookupPath).

8 years agoimport: drop unused definition
Lennart Poettering [Tue, 23 Feb 2016 19:29:06 +0000 (20:29 +0100)] 
import: drop unused definition

8 years agoMerge pull request #3016 from martinpitt/systemctl-enable
Lennart Poettering [Tue, 12 Apr 2016 09:34:44 +0000 (11:34 +0200)] 
Merge pull request #3016 from martinpitt/systemctl-enable

Install: correctly report symlink creations

8 years agoDo not report masked units as changed (#2921)
Zbigniew Jędrzejewski-Szmek [Tue, 12 Apr 2016 09:10:57 +0000 (05:10 -0400)] 
Do not report masked units as changed (#2921)

* core/unit: extract checking of stat paths into helper function

The same code was repeated three times.

* core: treat masked files as "unchanged"

systemctl prints the "unit file changed on disk" warning
for a masked unit. I think it's better to print nothing in that
case.

When a masked unit is loaded, set mtime as 0. When checking
if a unit with mtime of 0 needs reload, check that the mask
is still in place.

* test-dnssec: fix build without gcrypt

Also reorder the test functions to follow the way they are called
from main().

8 years agorules: set SYSTEMD_READY=0 on DM_UDEV_DISABLE_OTHER_RULES_FLAG=1 only with ADD event...
Lukáš Nykrýn [Tue, 12 Apr 2016 05:44:28 +0000 (07:44 +0200)] 
rules: set SYSTEMD_READY=0 on DM_UDEV_DISABLE_OTHER_RULES_FLAG=1 only with ADD event (#2747)

The "SYSTEMD_READY=0" will cause automatic unmount
of mountpoint that is on top of such DM device
if this is used with multipath which sets
DM_UDEV_DISABLE_OTHER_RULES_FLAG in case
we have a CHANGE event thatcomes after DM multipath
device reload when one of the paths is down or up.

See https://bugzilla.redhat.com/show_bug.cgi?id=1312011

8 years agotests: port udev-test to log_*_errno (#3015)
Evgeny Vereshchagin [Mon, 11 Apr 2016 19:31:57 +0000 (22:31 +0300)] 
tests: port udev-test to log_*_errno (#3015)

SYSTEMD_LOG_LEVEL=debug test/udev-test.pl is working now
Also, fixes CID 1354602

8 years agoInstall: correctly report symlink creations 3016/head
Martin Pitt [Mon, 11 Apr 2016 19:03:29 +0000 (21:03 +0200)] 
Install: correctly report symlink creations

All callers of create_symlink(), such as install_info_symlink_wants(), expect
that to return > 0 if it actually did something, and then return that number.
unit_file_enable() uses that to determine if any action was done
(carries_install_info != 0) and if not, show a "The unit files have no
[Install] section" warning.

Return 1 instead of 0 in the two code paths of create_symlink() when the link
was created or replaced with a new value.

This fixes getting a bogus "No [Install] section" warning when enabling a unit
with full path, like "systemctl enable /some/path/myunit.service".

8 years agoMerge pull request #3014 from msekletar/nspawn-empty-machine-id-v3
Lennart Poettering [Mon, 11 Apr 2016 15:27:11 +0000 (17:27 +0200)] 
Merge pull request #3014 from msekletar/nspawn-empty-machine-id-v3

nspawn: always setup machine id (v3)

8 years agonspawn: always setup machine id 3014/head
Michal Sekletar [Fri, 8 Apr 2016 11:22:54 +0000 (13:22 +0200)] 
nspawn: always setup machine id

We check /etc/machine-id of the container and if it is already populated
we use value from there, possibly ignoring value of --uuid option from
the command line. When dealing with R/O image we setup transient machine
id.

Once we determined machine id of the container, we use this value for
registration with systemd-machined and we also export it via
container_uuid environment variable.

As registration with systemd-machined is done by the main nspawn process
we communicate container machine id established by setup_machine_id from
outer child to the main process by unix domain socket. Similarly to PID
of inner child.

8 years agoMerge pull request #3012 from martinpitt/hwdb
Lennart Poettering [Mon, 11 Apr 2016 14:07:16 +0000 (16:07 +0200)] 
Merge pull request #3012 from martinpitt/hwdb

hwdb updates

8 years agoMerge pull request #3011 from evverx/dont-silently-skip-test-namespace
Ronny Chevalier [Mon, 11 Apr 2016 12:51:51 +0000 (13:51 +0100)] 
Merge pull request #3011 from evverx/dont-silently-skip-test-namespace

tests: don't silently skip `test-namespace`

8 years agoMerge pull request #2996 from keszybz/coverity-fixes
Martin Pitt [Mon, 11 Apr 2016 09:19:27 +0000 (11:19 +0200)] 
Merge pull request #2996 from keszybz/coverity-fixes

Coverity fixes

8 years agokeymap: Add HP ProBook 640 G2 3012/head
Martin Pitt [Mon, 11 Apr 2016 09:17:07 +0000 (11:17 +0200)] 
keymap: Add HP ProBook 640 G2

Fixes #2997

8 years agohwdb: Add SteelSeries Sensei Raw mouse
Martin Pitt [Mon, 11 Apr 2016 08:42:51 +0000 (10:42 +0200)] 
hwdb: Add SteelSeries Sensei Raw mouse

Fixes #3009

8 years agotests: don't silently skip `test-namespace` 3011/head
Evgeny Vereshchagin [Sun, 10 Apr 2016 23:41:04 +0000 (23:41 +0000)] 
tests: don't silently skip `test-namespace`

8 years agoMerge pull request #3008 from evverx/udev-test-ignore-some-mount-errors
Zbigniew Jędrzejewski-Szmek [Sun, 10 Apr 2016 21:21:18 +0000 (17:21 -0400)] 
Merge pull request #3008 from evverx/udev-test-ignore-some-mount-errors

tests: ignore some mount errors in test-udev

8 years agotests: ignore some mount errors in test-udev 3008/head
Evgeny Vereshchagin [Sun, 10 Apr 2016 19:29:17 +0000 (19:29 +0000)] 
tests: ignore some mount errors in test-udev

Fixes:
$ sudo make distcheck
...
FAIL: test/udev-test.pl
...

$ vi systemd-229/_build/sub/test/udev-test.pl.log
...
failed to mount empty
/home/ubuntu/systemd/systemd-229/_inst/lib/udev/rules.d No such file or directory
...
failed to mount empty
/home/ubuntu/systemd/systemd-229/_inst/lib/udev/rules.d No such file or directory
...
414 errors occurred

8 years agoMerge pull request #3002 from robertwec/master
Martin Pitt [Sun, 10 Apr 2016 07:50:44 +0000 (09:50 +0200)] 
Merge pull request #3002 from robertwec/master

hwdb: Add MODECOM MC-WM4 and Sharkoon Shark Force

8 years agoMerge pull request #3004 from tsmock/master
Martin Pitt [Sun, 10 Apr 2016 07:48:52 +0000 (09:48 +0200)] 
Merge pull request #3004 from tsmock/master

hwdb/70-mouse.hwdb: Add Dynex Wired Mouse (DX-WMSE2)

8 years agohwdb/70-mouse.hwdb: Add Dynex Wired Mouse (DX-WMSE2) 3004/head
Taylor Smock [Sat, 9 Apr 2016 23:37:48 +0000 (17:37 -0600)] 
hwdb/70-mouse.hwdb: Add Dynex Wired Mouse (DX-WMSE2)

8 years agohwdb: Add MODECOM MC-WM4 and Sharkoon Shark Force 3002/head
Robert Węcławski [Sat, 9 Apr 2016 22:53:23 +0000 (00:53 +0200)] 
hwdb: Add MODECOM MC-WM4 and Sharkoon Shark Force

8 years agocore/service: only search for pid if loading from file failed 2996/head
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:09:17 +0000 (21:09 -0400)] 
core/service: only search for pid if loading from file failed

CID #1237511.

8 years agocore/service: drop return value that is always ignored anyway
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:09:11 +0000 (21:09 -0400)] 
core/service: drop return value that is always ignored anyway

8 years agoshutdown: use (void)
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:09:09 +0000 (21:09 -0400)] 
shutdown: use (void)

NULL cgroup is handled below.

8 years agonspawn: ignore failure to chdir
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:09:06 +0000 (21:09 -0400)] 
nspawn: ignore failure to chdir

CID #1322380.

8 years agojournal: assert gcry_mpi_scan succeeded
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:08:54 +0000 (21:08 -0400)] 
journal: assert gcry_mpi_scan succeeded

It might be nicer to propagate the error to the caller, but that'd
be a bigger refactoring. This shouldn't really fail, so just add
an assert.

CID #1349697.

8 years agosd-resolve: ignore error in pthread_join()
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:08:42 +0000 (21:08 -0400)] 
sd-resolve: ignore error in pthread_join()

CID #1338424.

8 years agobasic/util: check return value of dup2 in fork_agent()
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:08:29 +0000 (21:08 -0400)] 
basic/util: check return value of dup2 in fork_agent()

CID #1304689.

8 years agoimport: use (void) more
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:08:23 +0000 (21:08 -0400)] 
import: use (void) more

CID #1299018-9.

8 years agoudevadm: assert return value
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:08:21 +0000 (21:08 -0400)] 
udevadm: assert return value

This mirrors what we do in now().
CID #1351755.

8 years agoudevd: use (void) to silence coverity
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:08:18 +0000 (21:08 -0400)] 
udevd: use (void) to silence coverity

CID #1351429.

8 years agoresolved: handle oom properly
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:08:15 +0000 (21:08 -0400)] 
resolved: handle oom properly

CID #1349699-1349700.

8 years agonetwork: check return value
Zbigniew Jędrzejewski-Szmek [Sat, 9 Apr 2016 01:08:02 +0000 (21:08 -0400)] 
network: check return value

CID #1349698.

8 years agoMerge pull request #2990 from evverx/sys-depends-on-sys-tar-xz
Lennart Poettering [Fri, 8 Apr 2016 17:08:52 +0000 (19:08 +0200)] 
Merge pull request #2990 from evverx/sys-depends-on-sys-tar-xz

build-sys: test/sys depends on test/sys.tar.xz

8 years agobuild-sys: test/sys depends on test/sys.tar.xz 2990/head
Evgeny Vereshchagin [Fri, 8 Apr 2016 13:53:03 +0000 (13:53 +0000)] 
build-sys: test/sys depends on test/sys.tar.xz

Fixes:
$ ls -ld test/sys
drwxr-xr-x. 12 vagrant vagrant 4096 Jan  6  2012 test/sys

$ git pull
Updating d4337c1..710a885
Fast-forward
 ...
 test/sys.tar.xz                             | Bin 261380 -> 165116 bytes
 test/udev-test.pl                           |  67 ++++++++++++-----

$ sudo make check TESTS=test/udev-test.pl
...
FAIL: test/udev-test.pl

$ rm -r test/sys
$ make test/sys
$ sudo make check TESTS=test/udev-test.pl
...
PASS: test/udev-test.pl

8 years agoMerge pull request #2985 from keszybz/lldp-assert
Martin Pitt [Fri, 8 Apr 2016 06:31:33 +0000 (08:31 +0200)] 
Merge pull request #2985 from keszybz/lldp-assert

Replace if with assert_cc in lldp code and a build-sys tweak

8 years agoMerge pull request #2943 from vinaykul/systemd_duid_review_fixes
Zbigniew Jędrzejewski-Szmek [Fri, 8 Apr 2016 00:19:19 +0000 (20:19 -0400)] 
Merge pull request #2943 from vinaykul/systemd_duid_review_fixes

DHCP DUID parsing fix, logging fix, man-page fix

8 years agoMerge pull request #2987 from CyberShadow/pull-20160407-234344
Zbigniew Jędrzejewski-Szmek [Fri, 8 Apr 2016 00:04:27 +0000 (20:04 -0400)] 
Merge pull request #2987 from CyberShadow/pull-20160407-234344

core: downgrade warning about duplicate device names again

8 years agocore: downgrade warning about duplicate device names again 2987/head
Vladimir Panteleev [Thu, 7 Apr 2016 23:48:29 +0000 (23:48 +0000)] 
core: downgrade warning about duplicate device names again

Pull request #2412 seemed to have unintentionally reverted
5259bcf6a638d8d489db1ddefd55327aa15f3e51, thus reintroducing
https://bugs.freedesktop.org/show_bug.cgi?id=90386.

This commit reverts that part of the commit, changing the
log level to debug again.

8 years agolldp: replace if with assert_cc 2985/head
Zbigniew Jędrzejewski-Szmek [Thu, 7 Apr 2016 18:29:07 +0000 (14:29 -0400)] 
lldp: replace if with assert_cc

LLDP_TX_HOLD or one of the other variables might be changed in the future
resulting in a silent error here if the if was just removed.

Replacement for #2983.

8 years agobuild-sys: force generation of triggers.systemd file
Zbigniew Jędrzejewski-Szmek [Mon, 4 Apr 2016 14:42:58 +0000 (10:42 -0400)] 
build-sys: force generation of triggers.systemd file

We don't want to actually install it anywhere, because it
is only usable copied or %included directly into a spec file,
and must be available before %prep is run. But still, it's
useful to generate it automatically so it's easier to copy
and it doesn't go stale.

8 years agoMerge pull request #2981 from keszybz/test-nss
Martin Pitt [Thu, 7 Apr 2016 15:01:12 +0000 (17:01 +0200)] 
Merge pull request #2981 from keszybz/test-nss

build-sys: move test-nss to manual_tests

8 years agobuild-sys: move test-nss to manual_tests 2981/head
Zbigniew Jędrzejewski-Szmek [Thu, 7 Apr 2016 13:02:12 +0000 (09:02 -0400)] 
build-sys: move test-nss to manual_tests

8 years agoMerge pull request #2976 from martinpitt/udev-test-tags
Zbigniew Jędrzejewski-Szmek [Wed, 6 Apr 2016 23:45:24 +0000 (19:45 -0400)] 
Merge pull request #2976 from martinpitt/udev-test-tags

Add tags tests to udev-test.pl