Lennart Poettering
acf2932711
Merge pull request #10887 from poettering/run-love
...
systemd-run: modernizations, some new switches and let's set $INVOCATION_ID
2018-11-23 16:00:16 +01:00
Yu Watanabe
d43c37bbea
Merge pull request #10893 from keszybz/udev-cleanup-followup
...
Udev cleanup follow-ups
2018-11-23 23:48:44 +09:00
Zbigniew Jędrzejewski-Szmek
e5e0a79623
pid1,sd-device: use PATH_STARTSWITH_SET more
2018-11-23 13:37:47 +01:00
Zbigniew Jędrzejewski-Szmek
f5a9bd21b9
basic/path-util: add missing header
...
PATH_STARTSWITH_SET uses STRV_FOREACH...
2018-11-23 13:37:40 +01:00
Lennart Poettering
00f8eea8fc
run: set $INVOCATION_ID for scope units
...
Services invoked by PID1 have $INVOCATION_ID initialized, hence let's do
that for scope units (where the payload process is invoked by us on the
client side) too, to minimize needless differences.
Fixes : #8082
2018-11-23 12:49:00 +01:00
Lennart Poettering
0565120f00
run: port to static destructors
2018-11-23 12:49:00 +01:00
Lennart Poettering
ef08ad7aa8
run: port to DEFINE_MAIN_FUNCTION()
2018-11-23 12:49:00 +01:00
Lennart Poettering
badd28e158
run: add new --shell switch for spawning a shell as service
...
I keep running "systemd-run -t /bin/bash" to quickly get a shell running
in service context. I suspect I am not the only one, hence let's add a
shortcut for it. While we are at it, let's make it smarter, and
automatically inherit the $SHELL of the invoking user as well as the
working directory, and let's imply --pty. --shell (or -S) is hence
equivalent to "-t -d $SHELL".
2018-11-23 12:49:00 +01:00
Lennart Poettering
2d21165a4e
run: add a switch for specifiying the working directory of a service
...
I find myself testing service management quite often with "systemd-run
-t /bin/bash". For that it is handy if the invoked shell would use the
working directory I am currently in. Hence introduce a shorthand for
that:
$ systemd-run -dt /bin/bash
This will automatically insert a WorkingDirectory= property into the
transient service, pointing to the working directory of the caller.
2018-11-23 12:49:00 +01:00
Zbigniew Jędrzejewski-Szmek
527ead383d
libudev: drop unnecessary check
...
sd_device_get_subsystem returns -ENOENT if subsystem is not set.
2018-11-23 09:16:11 +01:00
Zbigniew Jędrzejewski-Szmek
91540eaa5c
Merge pull request #10861 from yuwata/udev-list-cleanups
...
libudev: several cleanups for udev-list
2018-11-23 09:12:56 +01:00
Zbigniew Jędrzejewski-Szmek
7f22ad1083
Merge pull request #10886 from yuwata/sd-device-monitor-fix-filter
...
sd-device: fix subsystem filter
2018-11-23 08:53:33 +01:00
Lennart Poettering
00e7b3c8e5
unit: minor optimization, use stack over heap, when we can
2018-11-23 00:46:56 +01:00
Daniel van Vugt
26d7cf3daf
70-mouse.hwdb: Set DPI for MS Classic IntelliMouse
...
It defaults to 3200 DPI and 1000 Hz. Note the ?? is required to
match the multibyte UTF-8 character '®'.
2018-11-23 00:46:35 +01:00
Lennart Poettering
50111496dd
Merge pull request #10891 from yuwata/use-main-macro-2
...
tree-wide: use recently introduced macros
2018-11-23 00:46:02 +01:00
Lennart Poettering
27da878e7e
unit: drop an unused fields from Unit struct
2018-11-23 00:37:00 +01:00
Yu Watanabe
a5a59a2447
test: add more tests for subsystem filter
2018-11-23 06:46:29 +09:00
Lennart Poettering
66fa4bdd70
core: add two minor comments ( #10890 )
2018-11-23 06:25:27 +09:00
Yu Watanabe
c6f09e6a2d
locale: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
af7865c1b7
locale: store polkit_registry in Context
2018-11-23 06:22:30 +09:00
Yu Watanabe
6804d7a849
locale: rename context_free() to context_clear()
2018-11-23 06:22:30 +09:00
Yu Watanabe
f6aa61909e
resolvectl: use static destructor and define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
7a83c3aee0
rfkill: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
5f5f0afc8b
rfkill: store write queue and rfkill fd in struct Context
2018-11-23 06:22:30 +09:00
Yu Watanabe
a160567e20
socket-proxy: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
dd2fd972b7
sysusers: use ordered_hashmap_steal_first_key_and_value()
2018-11-23 06:22:30 +09:00
Yu Watanabe
1d03c5c16f
time-wait: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
1f47bc3349
timedate: define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
fd1bff7db5
update-done: quit earlier on failure
2018-11-23 06:22:30 +09:00
Yu Watanabe
3664cbabdd
update-utmp: use _cleanup_ attribute to finalize process
2018-11-23 06:22:30 +09:00
Yu Watanabe
d850ad9a30
veritysetup-generator: use static destructors and define main through macro
2018-11-23 06:22:30 +09:00
Yu Watanabe
2cb52121e5
veritysetup-generator: make arg_dest const
2018-11-23 06:22:30 +09:00
Yu Watanabe
6b9306b29c
veritysetup: use static destructors and define main through macro
...
This also changes the return value when crypt_init_by_name() fails in 'detach'.
2018-11-23 06:22:30 +09:00
Evgeny Vereshchagin
4928e8adba
tests: add a fuzzer for catalog_import_file
2018-11-22 21:02:34 +01:00
Zbigniew Jędrzejewski-Szmek
c43acf69e4
man: update description of Description=
...
The way this is used drifted a bit from the original intent. Let's update
the description and add some examples to inspire people to texts that look
less bad during initial boot.
2018-11-22 20:58:43 +01:00
Zbigniew Jędrzejewski-Szmek
74a01105b7
Merge pull request #10884 from yuwata/udev-debug
...
meson: add more debug options
2018-11-22 20:47:33 +01:00
Yu Watanabe
65fe9c319f
sd-device-monitor: fix subsystem filter
...
This fixes a bug introduced by 759d9f3f8d
.
Fixes #10882 .
2018-11-23 02:49:28 +09:00
Yu Watanabe
8c19dc54d3
udev-rules: update log messages
2018-11-23 01:15:42 +09:00
Yu Watanabe
d6601495be
meson: also add option for debugging siphash
2018-11-23 00:36:35 +09:00
Yu Watanabe
20e97dd3de
meson: add option for debugging udev
2018-11-23 00:28:27 +09:00
Yu Watanabe
67e4b38563
udev-rules: trivial coding style cleanups
2018-11-23 00:22:09 +09:00
Yu Watanabe
981fae90df
udev: rename udev_rules_unref() to udev_rules_free()
...
As udev_rules do not have a reference counter.
2018-11-23 00:07:40 +09:00
Yu Watanabe
3f14e7217a
libudev: do not ignore error in udev_list_entry_add()
2018-11-22 23:50:02 +09:00
Yu Watanabe
fd05c424c0
libudev: introduce return_with_errno() and use it where applicable
2018-11-22 23:49:55 +09:00
Yu Watanabe
6f9fe58189
test: add tests for libudev-list
2018-11-22 23:42:07 +09:00
Yu Watanabe
f349626bed
libudev-list: drop unused udev argument from udev_list_init()
2018-11-22 23:19:25 +09:00
Yu Watanabe
876affad43
libudev-list: drop unused private functions
2018-11-22 23:19:17 +09:00
Yu Watanabe
03b35f8775
Merge pull request #10871 from keszybz/more-cleanup-2
...
Allow "synthetic" errno to be used in log calls
2018-11-22 23:16:43 +09:00
Lennart Poettering
ca64ce4ad8
sysctl: when debug logging about sysctl changes, truncate trailing newline
2018-11-22 11:45:37 +01:00
Zbigniew Jędrzejewski-Szmek
5dc881a359
basic/log: add note about operator precendence
2018-11-22 10:56:43 +01:00