Tom Gundersen
03d7e632c0
rtnl: add support for routes
2013-11-04 23:00:48 +01:00
Tom Gundersen
be32eb9b7f
net-config: start split out matching and parsing logic
...
Move this to src/share/net-util.c, so it can be used elsewhere.
2013-11-04 23:00:12 +01:00
Thomas Hindoe Paaboel Andersen
fc7689bc9c
hostnamectl: H requires an argument, P is no longer used
2013-11-04 17:32:50 +01:00
Kay Sievers
5c11fbe3a7
udev: udevd - rules can be NULL when reloading
2013-11-04 15:54:33 +01:00
Martin Pitt
b151ca9933
udev-builtin-keyboard: Fix large scan codes on 32 bit architectures
...
Use strtoul(), as scan codes are always positive. On 32 bit architectures
strtol gives wrong results:
strtol("fffffff0", &endptr, 16)
returns 2147483647 instead of 4294967280.
https://launchpad.net/bugs/1247676
2013-11-04 07:25:45 +01:00
David Herrmann
e9718c12a4
rules: simply 60-drm.rules
...
We don't need any GOTO, if we merge all matches into a single line.
2013-11-03 16:17:14 +01:00
David Herrmann
0a8da8305a
rules: load path_id on DRM devices
...
The path_id-builtin provides useful unique aliases for DRM devices. If we
want to configure DRM render-nodes for compositors, we want to avoid
storing the whole sys-path in configuration files. Hence, allow users to
store the short PATH_ID instead.
Load path_id-builtin unconditionally on DRM devices now to always provide
this alias.
2013-11-03 13:12:13 +01:00
Bastien Nocera
5f34246c75
sd-login: Fix typo
...
s/sessio,/session,/
2013-11-02 15:54:02 -04:00
Kay Sievers
164ddcfae8
bus: make bus_map_all_properties() call idempotent
2013-11-02 02:38:39 +01:00
Simon Peeters
b028f3e410
hostnamectl: port to sd-bus
...
Kay:
- rebase to new transport logic
- replaced iteration macro with property map
2013-11-02 02:15:54 +01:00
Kay Sievers
ffc06c3513
bus: use internal helper to read org.freedesktop.DBus.Properties::GetAll variables
2013-11-02 01:48:22 +01:00
Kay Sievers
98e6c5e62f
detect_virtualization() returns NULL; pass empty string to dbus
2013-11-02 00:02:56 +01:00
Thomas Hindoe Paaboel Andersen
cc27380c1e
analyze: rename variables
2013-11-01 23:14:11 +01:00
Thomas Hindoe Paaboel Andersen
95168f7d55
analyze: plot: place the text on the side with most space
...
Set the width of the svg to always fit the longest string
while taking its starting position into consideration.
Place the text on the right while the starting point is
in the first half of the screen. After that we put it on
the left to save the svg from being wider that it has to.
2013-11-01 23:14:11 +01:00
Thomas Hindoe Paaboel Andersen
f69157a66f
machinectl: fix warning when compiling with -Og
...
src/machine/machinectl.c: In function ‘openpt_in_namespace’:
src/machine/machinectl.c:623:44: warning: ‘master’ may be used uninitialized in this function [-Wmaybe-uninitialized]
close_nointr_nofail(master);
^
2013-11-01 20:54:29 +01:00
Thomas Hindoe Paaboel Andersen
76fdc9669a
systemctl: fix typo in help text
2013-11-01 20:46:49 +01:00
David Strauss
a42431ca6a
socket-proxyd: Actually, some of those sizes are unsigned.
2013-10-31 15:30:49 -07:00
Ronny Chevalier
0885468d80
fix compiler warnings
...
multiple warnings like
src/socket-proxy/socket-proxyd.c: In function ‘transfer_data_cb’:
src/socket-proxy/socket-proxyd.c:237:25: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘size_t’ [-Wformat=]
log_debug("Buffer now has %ld bytes full.", c->buffer_filled_len);
2013-10-31 15:17:46 -07:00
Thomas Hindoe Paaboel Andersen
6e6ca4a5cc
analyze: share code to read a string array from sd-bus
2013-10-31 23:15:32 +01:00
Thomas Hindoe Paaboel Andersen
a936124f7a
analyze: use sd_bus_get_propery_trivial and indentation
2013-10-31 23:08:16 +01:00
Thomas Hindoe Paaboel Andersen
0068027e86
timedatectl: remove unused variable
2013-10-31 22:02:29 +01:00
Lennart Poettering
0fb533a533
virt: move caching of virtualization check results into detect_vm() and detect_container()
...
After all, we ended up calling detect_container() more often than
detect_virtualization(), hence the former one should cache the results,
since the latter is only a wrapper around the former.
2013-10-31 16:24:14 +01:00
Václav Pavlín
c9197a76ae
man: explain NAME in systemctl man page
2013-10-31 14:38:14 +01:00
Lennart Poettering
ebd495b0a1
Revert "timedated: support --enable-split-usr"
...
This reverts commit 36f9f99556
.
The ntp unit information is only needed by timedated which runs in late
boot only, where all disks are around. Hence there's no point in
allowing them to be located in the rootprefix.
2013-10-31 11:20:33 +01:00
Ronny Chevalier
d74ab85216
zsh-completion: add systemd-run
2013-10-30 22:45:18 -04:00
Lennart Poettering
e1636421f4
localectl: always print error message when an operation fails
2013-10-31 03:14:37 +01:00
Kay Sievers
7f35b7bc4a
timedatectl: do not print the time zone for the rtc time
2013-10-31 03:05:14 +01:00
Lennart Poettering
e5609878d8
timedatectl: assorted simplifications
2013-10-31 03:02:49 +01:00
Kay Sievers
2f6a590705
timedatectl: get time values from the service instead of the client
...
This allow querying the RTC time from the unprivileged timedatectl.
2013-10-31 02:33:23 +01:00
Lennart Poettering
04d3927924
machinectl: add new command to spawn a getty inside a container
2013-10-31 01:43:38 +01:00
Lennart Poettering
f85fc84541
getty-generator: modernizations
2013-10-31 01:43:38 +01:00
Lennart Poettering
4ba9328022
nspawn: split out pty forwaring logic into ptyfwd.c
2013-10-31 01:43:38 +01:00
Tom Gundersen
07d978b0d4
bus-util: avoid infinite loop
2013-10-30 23:23:10 +01:00
Thomas Hindoe Paaboel Andersen
4b4bec1958
localectl: remove unused 'P' arg
2013-10-30 23:13:25 +01:00
Kay Sievers
4d7859d173
localectl: port to libsystemd-bus
2013-10-30 22:50:09 +01:00
Thomas Hindoe Paaboel Andersen
a281d9c785
timedatectl: port to sd-bus
2013-10-30 21:13:46 +01:00
Lennart Poettering
88212f7bd1
nspawn: only pass in slice setting if it is set
2013-10-30 18:40:21 +01:00
Lennart Poettering
8201ad81a0
util: when we use path_strv_canonicalize() we must allocate the strv from the heap
2013-10-30 18:15:38 +01:00
Lennart Poettering
d21ed1ead1
run: add support for executing commands remotely via SSH or in a container
...
Also, unify the transport logic a bit, since we reuse the same scheme in
many of our client tools.
2013-10-30 16:44:55 +01:00
Lennart Poettering
5220a6f3a1
general: various cleanups
2013-10-30 16:13:43 +01:00
Dave Reisner
36f9f99556
timedated: support --enable-split-usr
2013-10-30 11:06:43 -04:00
Dave Reisner
c50e28a38c
link-config: support --enable-split-usr
2013-10-30 11:00:46 -04:00
Kay Sievers
75716dd8ea
udev: rules - move parsing error to log_error()
2013-10-30 15:49:46 +01:00
Tom Gundersen
98a375f6d5
udev: config-link - one less log_info
2013-10-30 15:47:29 +01:00
Lennart Poettering
53755121e1
machinectl: we don't really just show information, we execute operations
2013-10-30 15:42:06 +01:00
Lennart Poettering
a7893c6b28
bus: add API call to create bus connection to the system bus of local containers
...
Also, add support for this to machinectl, so that we can enumerate the
machines that run inside a container. We must go deeper!
2013-10-30 15:37:02 +01:00
Lennart Poettering
0f8bd8debb
bus: move ssh support into public API of libsystem-bus
2013-10-30 15:35:49 +01:00
Tom Gundersen
2004d23a0f
libudev: default log_priority to INFO
...
This brings it in sync with the default config file.
2013-10-30 15:36:04 +01:00
Tom Gundersen
f61942250a
udev: link-config - less verbose logging
...
Also reinstate print to kmsg when renaming netif.
2013-10-30 15:36:04 +01:00
Tom Gundersen
3e137a1b9a
udev: link-config - let udevd set the ifname
2013-10-30 15:36:04 +01:00