1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00
Commit Graph

14053 Commits

Author SHA1 Message Date
Tom Gundersen
039ebe6aeb sd-dhcp-client/networkd: add domainname support 2014-01-18 17:52:10 +01:00
Tom Gundersen
bcbca8291f networkd: don't hard depend on system bus
We may not have a dbus daemon in the initrd (until we can rely on kdbus). In
this case, simply ignore any attempts at using the bus. There is only one user
for now, but surely more to come.

In order to work reliably in the real root without kdbus, but at the same time
don't delay boot when kdbus is in use, order ourselves after dbus.service.
2014-01-18 01:56:41 +01:00
Tom Gundersen
b2ad8a16ee networkd: resolv.conf - reword comment
Take into account that users may want to use resolvconf(8), or similar. Also,
avoid repeated calls to fputs().
2014-01-18 00:59:07 +01:00
Daniel Mack
e4ecabd0a4 libsystemd: sync kdbus.h 2014-01-18 00:50:37 +01:00
Lennart Poettering
02ebe178a2 units: drop [Install] section from multi-user.target and graphical.target
They were supposed to make it easy to make the default.target a symlink
to these targets, but this was never advertised and we have a better
command for this now in "systemctl set-default". Since the install
section makes the output of "systemctl list-unit-files" confusing (since
it makes the units appear as "disabled"), let's drop the sections.
2014-01-17 20:27:35 +01:00
Lennart Poettering
6a8b5fa463 Update TODO 2014-01-17 19:59:50 +01:00
Daniel Buch
5599e86621 sd-resolve: rename structs to fit coding-style e.g 'struct MixedCase'
lets get this right once, and if not for all, atleast for now :)

So comments and input about nameing is very welcome.

Cheers
2014-01-17 19:51:28 +01:00
Daniel Buch
4f80925636 sd-resolve: get rid of _t post-fixes for sd_ objects
We dont want _t prefixes, right?
2014-01-17 19:51:24 +01:00
Umut Tezduyar Lindskog
fece63b86e build: Skip .busname generator when kdbus is off 2014-01-17 19:17:38 +01:00
Lukasz Skalski
1ffee377ee bus: Fix read_word_le() function 2014-01-17 18:34:40 +01:00
Lennart Poettering
47c94a96df update TODO 2014-01-17 18:34:40 +01:00
Tom Gundersen
b4b5212d31 libsystemd: rename LIBSYSTEMD_BUS to LIBSYSTEMD 2014-01-17 13:53:05 +01:00
Kay Sievers
9ff1897bb5 bus: update kdbus.h (ABI break) 2014-01-17 01:42:35 +01:00
Tom Gundersen
5d8364b3c5 networkd: resolv.conf - extend the comment a bit 2014-01-16 20:32:09 +01:00
Tom Gundersen
5ee482dfd3 sd-dhcp-client: minor style fixes
Also introduce a cleanup macro for DHCPLease
2014-01-16 20:32:09 +01:00
Tom Gundersen
7ae4ef6d23 sd-dhcp-client: refactor DNS support
Rather than keeping an array of pointers to addresses, just keep an array of addresses.
2014-01-16 20:32:08 +01:00
Tom Gundersen
1346b1f038 sd-dhcp-client/networkd: add transient hostname support 2014-01-16 20:32:08 +01:00
Tom Gundersen
6fc7349894 networkd: dhcp - only set the MTU option once
Only set MTU request when creating the dhcp client, not every time it is restarted.
2014-01-16 20:32:08 +01:00
Tom Gundersen
396945dc1f networkd: link - only save original MTU when necessary 2014-01-16 20:32:08 +01:00
Tom Gundersen
1f6d9bc9ee networkd: improve logging 2014-01-16 20:32:08 +01:00
Zbigniew Jędrzejewski-Szmek
c4e6e24255 bus: fix issue with reference counting
b7fc42e03 introduced a regression.
2014-01-16 01:15:17 -05:00
Zbigniew Jędrzejewski-Szmek
235ee2134f build-sys: increase valgrind stack limit so all tests pass again 2014-01-16 00:16:02 -05:00
Zbigniew Jędrzejewski-Szmek
b7fc42e03a bus: break reference cycle between bus and messages
Previously (6ee4f99 bus: break reference cycle between bus and
messages) I committed the test code, but not the actual fix :)
2014-01-16 00:16:02 -05:00
Chengwei Yang
8114dedc59 build-sys: fix --enable-dbus
The incorrect shell code of AS_IF always get false value, so it always
build without dbus though build with "--enable-dbus" explicitely.
2014-01-16 00:16:02 -05:00
Tom Gundersen
4f882b2a50 sd-dhcp-client/networkd: add interface MTU support 2014-01-16 01:44:19 +01:00
Tom Gundersen
eb2f9b1802 sd-rtnl: only alter link flags when reqeusted to 2014-01-16 01:41:12 +01:00
Tom Gundersen
b087416f97 sd-dhcp-client: fix memory corruption 2014-01-16 01:41:12 +01:00
Lennart Poettering
31927c16de event: extend priority raneg to 64bit
The kdbus prioq logic will use 64bit prios too, so let's keep this
similar in style. Using 64bit here has the advantage, that pointers and
pretty much anything else can be mapped naturally to priorities if so
desired.
2014-01-15 20:16:20 +01:00
Lennart Poettering
ac3efa8ac6 systemctl: introduce new "import-environment" command
This may be used in graphical session start-up scripts to upload
environment variables such as $DISPLAY into the systemd manager easily.
2014-01-15 20:16:20 +01:00
Lennart Poettering
6a38d04a03 logind: get rid of X11 display socket symlink
X11 never made use of it anyway and it's probably better to just push
$DISPLAY into the systemd daemon from gnome-session (or equivalent
program) than to change libX11 to look for this socket. In particular
since we won't need this for Wayland anyway and we shouldn't add
infrastructure for stuff that's on its way out anyway.
2014-01-15 20:16:20 +01:00
Lukas Nykryn
f89a4474e0 shell-completion: remove load from systemctl 2014-01-15 15:31:07 +01:00
Lukas Nykryn
1b2457e16d Revert "Revert "coredumpctl: in case of error free pattern after print""
In the case of the error set_consume will free the pointer 'pattern'
which is later used in log_error. Either we should stop priniting that
or use simple set_put and free pattern manually.

This reverts commit ece6b8fd5b.
2014-01-15 12:46:44 +01:00
Tom Gundersen
3bedba4ae1 sd-resolv: rename to sd-resolve
Lennart pointed out that we were misspelling 'resolve'. Let's not repeat the mistakes of 'umount'
and 'resolv.conf'.
2014-01-14 18:25:16 +01:00
Kay Sievers
c2cb7cbbd5 README: list CONFIG_FHANDLE in main section 2014-01-14 22:59:07 +08:00
Umut Tezduyar Lindskog
0018092829 readme: CONFIG_FHANDLE is a requirement 2014-01-14 22:59:07 +08:00
Zbigniew Jędrzejewski-Szmek
ece6b8fd5b Revert "coredumpctl: in case of error free pattern after print"
This reverts commit cf50a55277.

set_consume frees on error.
2014-01-14 09:49:30 -05:00
Lukas Nykryn
cf50a55277 coredumpctl: in case of error free pattern after print 2014-01-14 15:40:16 +01:00
Tom Gundersen
8c56c8bd31 sd-resolv: remove left-over comment
We are anyway breaking the API by renaming everything, so that is not a concern.
2014-01-14 14:09:01 +01:00
Tom Gundersen
8a6233fb65 sd-resolv: require SOCK_CLOEXEC 2014-01-14 14:09:01 +01:00
Daniel Buch
12f404c4d1 sd-resolv: rename old asyncns variables 2014-01-14 13:32:13 +01:00
Daniel Buch
2a4be8ad98 sd_resolv: Rename structs- and function names to sd_resolv 2014-01-14 13:31:33 +01:00
Kay Sievers
135a4eb434 bus: update kdbus.h (ABI break) 2014-01-14 20:17:24 +08:00
Kay Sievers
9597086027 bus: update kdbus.h (ABI break) 2014-01-14 16:10:08 +08:00
Tom Gundersen
5be4d38e31 networkd: DHCPv4 - allow opting out of using DNS servers
Setting UseDNS=no will ignore any received DNS servers.
2014-01-13 21:54:57 +01:00
Tom Gundersen
5681d7fb8b libsystemd-dns: merge into libsystemd
Also rename sd-dns -> sd-resolv.
2014-01-13 21:06:13 +01:00
Tom Gundersen
0b54473e9b libsystemd-rtnl: merge into libsystemd 2014-01-13 21:06:13 +01:00
Tom Gundersen
c813ca40c8 libsystemd-dhcp: merge into libsystemd 2014-01-13 21:06:08 +01:00
Tom Gundersen
6bb648a16a libsystemd-bus: rename to libsystemd
Documentation was updated to refer to either 'libsystemd' or 'sd-bus' in place
of libsystemd-bus.
2014-01-13 18:54:19 +01:00
Kay Sievers
883b369087 TODO: update 2014-01-13 10:51:26 +08:00
Daniel Buch
8e50b5a77c sd-dns: coding style cleanup 2014-01-13 00:08:42 +01:00