chiark / gitweb /
elogind.git
9 years agocgroups: simplify CPUQuota= logic
Lennart Poettering [Thu, 22 May 2014 02:53:12 +0000 (11:53 +0900)]
cgroups: simplify CPUQuota= logic

Only accept cpu quota values in percentages, get rid of period
definition.

It's not clear whether the CFS period controllable per-cgroup even has a
future in the kernel, hence let's simplify all this, hardcode the period
to 100ms and only accept percentage based quota values.

9 years agotime-util: make sure USEC_PER_SEC and friends are actually of type usec_t
Lennart Poettering [Thu, 22 May 2014 02:44:03 +0000 (11:44 +0900)]
time-util: make sure USEC_PER_SEC and friends are actually of type usec_t

9 years agologind: also escape external data when saving to /run
Lennart Poettering [Thu, 22 May 2014 01:35:28 +0000 (10:35 +0900)]
logind: also escape external data when saving to /run

Better be safe than sorry...

9 years agoupdate TODO
Lennart Poettering [Thu, 22 May 2014 01:27:17 +0000 (10:27 +0900)]
update TODO

9 years agomachine: escape fields we store in /run, so that they can be properly unescaped by...
Lennart Poettering [Thu, 22 May 2014 01:26:23 +0000 (10:26 +0900)]
machine: escape fields we store in /run, so that they can be properly unescaped by parse_env_file()

9 years agobuild-sys: let libsystemd_network pull in libudev-internal.la
Kay Sievers [Thu, 22 May 2014 01:08:04 +0000 (10:08 +0900)]
build-sys: let libsystemd_network pull in libudev-internal.la

On Thu, May 22, 2014 at 9:53 AM, Jan Engelhardt <jengelh@inai.de> wrote:
>
> If libsystemd-network.la is relying on that udev function, it ought
> to specify libudev(-internal).la in libsystemd_network_la_LIBADD.

9 years agonspawn: allow to bind mount journal on top of a non empty container journal dentry
Djalal Harouni [Fri, 11 Apr 2014 00:45:52 +0000 (01:45 +0100)]
nspawn: allow to bind mount journal on top of a non empty container journal dentry

Currently if nspawn was called with --link-journal=host or
--link-journal=auto and the right /var/log/journal/machine-id/ exists
then the bind mount the subdirectory into the container might fail due
to the ~/mycontainer/var/log/journal/machine-id/ of the container not
being empty.

There is no reason to check if the container journal subdir is empty
since there will be a bind mount on top of it. The user asked for a bind
mount so give it.

Note: a next call with --link-journal=guest may fail due to the
/var/log/journal/machine-id/ on the host not being empty.

https://bugs.freedesktop.org/show_bug.cgi?id=76193

Reported-by: Tobias Hunger <tobias.hunger@gmail.com>
9 years agobuild-sys: do not run symbol list export test for compat-only libs
Kay Sievers [Thu, 22 May 2014 00:43:22 +0000 (09:43 +0900)]
build-sys: do not run symbol list export test for compat-only libs

The verbose link-time deprecation warnings are annoying. These libs
will never change or be extended; there is no need to test the list
of exported symbols.

9 years agobuild-sys: fix linking order
Kay Sievers [Thu, 22 May 2014 00:41:32 +0000 (09:41 +0900)]
build-sys: fix linking order

./.libs/libsystemd-network.a(libsystemd_network_la-network-internal.o):
  network-internal.c:function net_get_unique_predictable_data:
  error: undefined reference to 'udev_device_get_property_value'
collect2: error: ld returned 1 exit status

9 years agoMakefile.am: fix whitespace
Kay Sievers [Thu, 22 May 2014 00:06:17 +0000 (09:06 +0900)]
Makefile.am: fix whitespace

9 years agobuild: put missing KMOD_CFLAGS into Makefile
Jan Engelhardt [Tue, 20 May 2014 21:31:59 +0000 (23:31 +0200)]
build: put missing KMOD_CFLAGS into Makefile

The build fails if kmod is not in a default location.

9 years agotimesyncd: order after tmpfiles to get a working network monitor
Kay Sievers [Wed, 21 May 2014 22:55:38 +0000 (07:55 +0900)]
timesyncd: order after tmpfiles to get a working network monitor

9 years agocgroups: always propagate controller membership to siblings, for all controllers
Lennart Poettering [Wed, 21 May 2014 22:50:03 +0000 (07:50 +0900)]
cgroups: always propagate controller membership to siblings, for all controllers

This is the behaviour the kernel cgroup rework exposes for all
controllers, hence let's do this already now for all cases.

9 years agocgroup: rework startup logic
Lennart Poettering [Wed, 21 May 2014 22:06:16 +0000 (07:06 +0900)]
cgroup: rework startup logic

Introduce a (unsigned long) -1 as "unset" state for cpu shares/block io
weights, and keep the startup unit set around all the time.

9 years agocore: add startup resource control option
WaLyong Cho [Thu, 15 May 2014 15:09:34 +0000 (00:09 +0900)]
core: add startup resource control option

Similar to CPUShares= and BlockIOWeight= respectively. However only
assign the specified weight during startup. Each control group
attribute is re-assigned as weight by CPUShares=weight and
BlockIOWeight=weight after startup.  If not CPUShares= or
BlockIOWeight= be specified, then the attribute is re-assigned to each
default attribute value. (default cpu.shares=1024, blkio.weight=1000)
If only CPUShares=weight or BlockIOWeight=weight be specified, then
that implies StartupCPUShares=weight and StartupBlockIOWeight=weight.

9 years agoRevert "update gitignore"
Kay Sievers [Wed, 21 May 2014 21:14:41 +0000 (06:14 +0900)]
Revert "update gitignore"

This reverts commit 351efdc7a4d900a1aebca517dd0b46b89cdd7306.

9 years agosd-dhcp-client: factor out dhcp packet allocation
Tom Gundersen [Wed, 21 May 2014 14:46:14 +0000 (16:46 +0200)]
sd-dhcp-client: factor out dhcp packet allocation

9 years agosd-dhcp: rely on FIONREAD working
Tom Gundersen [Wed, 21 May 2014 14:31:28 +0000 (16:31 +0200)]
sd-dhcp: rely on FIONREAD working

This fallback will anyway never get tested, so rip it out.

9 years agosd-dhcp: option_append - support falling back to 'sname' and 'file'
Tom Gundersen [Wed, 21 May 2014 13:55:02 +0000 (15:55 +0200)]
sd-dhcp: option_append - support falling back to 'sname' and 'file'

9 years agosd-dhcp: make sure we can not fill options so much that there is no space for END
Tom Gundersen [Wed, 21 May 2014 13:27:53 +0000 (15:27 +0200)]
sd-dhcp: make sure we can not fill options so much that there is no space for END

9 years agonetworkd: link - serialize link when addresses change
Tom Gundersen [Wed, 21 May 2014 09:28:13 +0000 (11:28 +0200)]
networkd: link - serialize link when addresses change

Thanks to Kay for tracking this down.

9 years agoupdate gitignore
Kay Sievers [Wed, 21 May 2014 09:21:02 +0000 (18:21 +0900)]
update gitignore

9 years agohwdb: update
Kay Sievers [Wed, 21 May 2014 09:19:24 +0000 (18:19 +0900)]
hwdb: update

9 years agoutil: fix a gcc compiler warning
Lennart Poettering [Wed, 21 May 2014 08:44:45 +0000 (17:44 +0900)]
util: fix a gcc compiler warning

9 years agotimesyncd: use STR_IN_SET()
Kay Sievers [Wed, 21 May 2014 01:35:17 +0000 (10:35 +0900)]
timesyncd: use STR_IN_SET()

9 years agotimesyncd: fix english language typo
Lennart Poettering [Wed, 21 May 2014 00:36:42 +0000 (09:36 +0900)]
timesyncd: fix english language typo

9 years agologind: don't apply RemoveIPC= to system users
Lennart Poettering [Wed, 21 May 2014 00:31:22 +0000 (09:31 +0900)]
logind: don't apply RemoveIPC= to system users

We shouldn't destroy IPC objects of system users on logout.

http://lists.freedesktop.org/archives/systemd-devel/2014-April/018373.html

This introduces SYSTEM_UID_MAX defined to the maximum UID of system
users. This value is determined compile-time, either as configure switch
or from /etc/login.defs. (We don't read that file at runtime, since this
is really a choice for a system builder, not the end user.)

While we are at it we then also update journald to use SYSTEM_UID_MAX
when we decide whether to split out log data for a specific client.

9 years agodhcp-lease: add support for parsing a few more dhcp options
Tom Gundersen [Tue, 20 May 2014 20:02:49 +0000 (22:02 +0200)]
dhcp-lease: add support for parsing a few more dhcp options

9 years agodhcp-lease: refactor lease parsing
Tom Gundersen [Tue, 20 May 2014 14:40:59 +0000 (16:40 +0200)]
dhcp-lease: refactor lease parsing

Use helper functions, and add some more sanity checking/asserts.

9 years agosd-dhcp: refactor parse_options
Tom Gundersen [Tue, 20 May 2014 11:07:19 +0000 (13:07 +0200)]
sd-dhcp: refactor parse_options

Similar to the previous patch, exchange a length and a pointer with only one offset variable.
Also fix the type of the options to be uint8_t[], rather than uint8_t*.

9 years agosd-dhcp: refactor dhcp_option_append
Tom Gundersen [Tue, 20 May 2014 09:04:50 +0000 (11:04 +0200)]
sd-dhcp: refactor dhcp_option_append

Store a pointer to the options in the DHCPMessage struct, and pass
this together with an offset around, rather than a uint8_t**.

This avoids us having to (re)compute the pointer; and changes
dhcp_option_append from adjusting both the pointer to the next
option and the remaining size of the options, to just adjusting
the current offset.

This makes the code a bit simpler to follow IMHO, but there should
be no functional change.

9 years agotimesyncd: save clock to disk everytime we get an NTP fix, and bump clock at boot...
Lennart Poettering [Tue, 20 May 2014 15:04:11 +0000 (00:04 +0900)]
timesyncd: save clock to disk everytime we get an NTP fix, and bump clock at boot using this

This is useful to make sure the system clock stays monotonic even on
systems that lack an RTC.

Also, why we are at it, also use the systemd release time for bumping
the clock, since it's a slightly less bad than starting with jan 1st,
1970.

This also moves timesyncd into the early bootphase, in order to make
sure this initial bump is guaranteed to have finished by the time we
start real daemons which might write to the file systemd and thus
shouldn't leave 1970's timestamps all over the place...

9 years agoudevadm-settle: fixed return code for empty queue
Harald Hoyer [Tue, 20 May 2014 10:25:16 +0000 (12:25 +0200)]
udevadm-settle: fixed return code for empty queue

If the udev queue is empty and "/run/udev/queue" does not exist,
"udevadm settle" would return with EXIT_FAILURE, because the inotify on
"/run/udev/queue" would fail with ENOENT.

This patch lets "udevadm settle" exit with EXIT_SUCCESS in this case.

9 years agoTODO
Susant Sahani [Mon, 19 May 2014 20:58:15 +0000 (22:58 +0200)]
TODO

IFLA_IPTUN_PMTUDISC
IFLA_IPTUN_FLAGS (ISA_TAP)

FLA_IPTUN_6RD_PREFIX
FLA_IPTUN_6RD_RELAY_PREFIX
IFLA_IPTUN_6RD_PREFIXLEN
IFLA_IPTUN_6RD_RELAY_PREFIXLEN

9 years agonetworkd: introduce sit tunnel
Susant Sahani [Thu, 15 May 2014 04:16:40 +0000 (09:46 +0530)]
networkd: introduce sit tunnel

This patch introduces sit tunnel support to networkd

Example conf:
file: sit.netdev

[NetDev]
Name=sit-tun
Kind=sit
MTUBytes=1480

[Tunnel]
Local=10.65.223.238
Remote=10.65.223.239

file: sit.network

[Match]
Name=em1

[Network]
Tunnel=sit-tun

[tomegun: rebased]

9 years agonetworkd-wait-online: wait for addresses to be configured
Tom Gundersen [Mon, 19 May 2014 19:57:10 +0000 (21:57 +0200)]
networkd-wait-online: wait for addresses to be configured

9 years agotimesyncd: only attempt to connect when an address is configured
Tom Gundersen [Mon, 19 May 2014 18:46:54 +0000 (20:46 +0200)]
timesyncd: only attempt to connect when an address is configured

For now, we accept both link-local and routable addresses, maybe we want to
restrict ourselves to routable addresses only.

9 years agonetworkd/sd-network: extend operational states
Tom Gundersen [Mon, 19 May 2014 18:44:21 +0000 (20:44 +0200)]
networkd/sd-network: extend operational states

Expose states 'degraded' or 'routable' if a link has a site/link-local or a routable address, respectively.

9 years agonetworkd/sd-network: expose statically configured NTP servers
Tom Gundersen [Mon, 19 May 2014 16:42:14 +0000 (18:42 +0200)]
networkd/sd-network: expose statically configured NTP servers

9 years agonetworkd: fixup static DNS serialization
Tom Gundersen [Mon, 19 May 2014 14:14:10 +0000 (16:14 +0200)]
networkd: fixup static DNS serialization

9 years agosd-dhcp-lease/sd-network: modernization and fix leak
Tom Gundersen [Mon, 19 May 2014 15:44:38 +0000 (17:44 +0200)]
sd-dhcp-lease/sd-network: modernization and fix leak

9 years agoresolved: add daemon to manage resolv.conf
Tom Gundersen [Sun, 18 May 2014 20:10:48 +0000 (22:10 +0200)]
resolved: add daemon to manage resolv.conf

Also remove the equivalent functionality from networkd.

9 years agosd-network: expose DNS information
Tom Gundersen [Sun, 18 May 2014 20:05:09 +0000 (22:05 +0200)]
sd-network: expose DNS information

9 years agonetworkd: link - serialize DNS information
Tom Gundersen [Sun, 18 May 2014 20:04:14 +0000 (22:04 +0200)]
networkd: link - serialize DNS information

9 years agosd-dhcp-lease: move in_addr (de)serialization to shared network code
Tom Gundersen [Sun, 18 May 2014 20:02:42 +0000 (22:02 +0200)]
sd-dhcp-lease: move in_addr (de)serialization to shared network code

9 years agosd-login: add C API to query primary session of a user
Lennart Poettering [Mon, 19 May 2014 00:33:20 +0000 (09:33 +0900)]
sd-login: add C API to query primary session of a user

9 years agologind: fix Display property of user objects
Lennart Poettering [Mon, 19 May 2014 00:03:20 +0000 (09:03 +0900)]
logind: fix Display property of user objects

When we dropped support for creating a per-user to the "main" X11
display we stopped returning useful data in the "Display" user property.
With this change this is fixed and we again expose an appropriate
(graphical session) in the property that is useful as the "main" one, if
one is needed.

9 years agogudev: add missing (nullable) annotations on return values
Evan Nemerson [Sun, 18 May 2014 07:25:06 +0000 (00:25 -0700)]
gudev: add missing (nullable) annotations on return values

9 years agoupdate TODO
Lennart Poettering [Sun, 18 May 2014 16:54:31 +0000 (01:54 +0900)]
update TODO

9 years agoanalyze: read host and system information from remote
Djalal Harouni [Wed, 23 Apr 2014 22:03:35 +0000 (23:03 +0100)]
analyze: read host and system information from remote

This makes "systemd-analyze plot" read host information from remote.

While we are it show if this is a virtualized system.

https://bugs.freedesktop.org/show_bug.cgi?id=76498

Reported-by: Zach <zachcook1991@gmail.com>
9 years agohostnamed: expose KernelVersion on the bus
Djalal Harouni [Wed, 23 Apr 2014 22:03:34 +0000 (23:03 +0100)]
hostnamed: expose KernelVersion on the bus

This is needed to fix bug:

https://bugs.freedesktop.org/show_bug.cgi?id=76498

Reported-by: Zach <zachcook1991@gmail.com>
9 years agobuild: Compile everything with PIE
Cristian Rodríguez [Sun, 18 May 2014 15:46:42 +0000 (11:46 -0400)]
build: Compile everything with PIE

9 years agocore: Filter by state behind the D-Bus API, not in the systemctl client.
David Strauss [Mon, 28 Apr 2014 19:08:32 +0000 (12:08 -0700)]
core: Filter by state behind the D-Bus API, not in the systemctl client.

9 years agomachined: make sure GetMachineAddresses() is available for unprivileged processes
Lennart Poettering [Sun, 18 May 2014 15:47:26 +0000 (00:47 +0900)]
machined: make sure GetMachineAddresses() is available for unprivileged processes

9 years agofix spelling of privilege
Nis Martensen [Sun, 18 May 2014 13:43:18 +0000 (15:43 +0200)]
fix spelling of privilege

9 years agoupdate TODO
Lennart Poettering [Sun, 18 May 2014 11:49:14 +0000 (20:49 +0900)]
update TODO

9 years agomachined: add logic to query IP addresses of containers
Lennart Poettering [Sun, 18 May 2014 11:48:53 +0000 (20:48 +0900)]
machined: add logic to query IP addresses of containers

9 years agonetwork: always take possession of host side of nspawn veth tunnels and do IPv4LL...
Lennart Poettering [Sat, 17 May 2014 19:32:13 +0000 (21:32 +0200)]
network: always take possession of host side of nspawn veth tunnels and do IPv4LL on them

9 years agoupdate TODO
Lennart Poettering [Sat, 17 May 2014 19:13:53 +0000 (21:13 +0200)]
update TODO

9 years agotimesyncd: make use of floating event sources for signal handling
Lennart Poettering [Sat, 17 May 2014 19:13:10 +0000 (21:13 +0200)]
timesyncd: make use of floating event sources for signal handling

9 years agotimesyncd: enable watchdog support
Lennart Poettering [Sat, 17 May 2014 19:11:00 +0000 (21:11 +0200)]
timesyncd: enable watchdog support

9 years agotimesyncd: run timesyncd as unpriviliged user "systemd-timesync" (but still with...
Lennart Poettering [Sat, 17 May 2014 18:33:47 +0000 (20:33 +0200)]
timesyncd: run timesyncd as unpriviliged user "systemd-timesync" (but still with CAP_SYS_TIME)

9 years agoman: note that entire sections can now be ignored
Michael Marineau [Sat, 17 May 2014 23:09:08 +0000 (16:09 -0700)]
man: note that entire sections can now be ignored

Prefixing a section name with "X-" will cause it and all of its contents
to be silently ignored as of commit 342aea19.

9 years agonetworkd: log - only log about udev initalization on debug level
Tom Gundersen [Fri, 16 May 2014 19:25:46 +0000 (21:25 +0200)]
networkd: log - only log about udev initalization on debug level

9 years agonetworkd: keep list of active addresses
Tom Gundersen [Thu, 15 May 2014 22:28:22 +0000 (00:28 +0200)]
networkd: keep list of active addresses

9 years agonetworkd: IP address equality
Tom Gundersen [Thu, 15 May 2014 22:27:56 +0000 (00:27 +0200)]
networkd: IP address equality

9 years agoTODO
Tom Gundersen [Thu, 15 May 2014 22:26:37 +0000 (00:26 +0200)]
TODO

9 years agoudev: avoid use of uninitialized err
Thomas Hindoe Paaboel Andersen [Fri, 16 May 2014 21:46:48 +0000 (23:46 +0200)]
udev: avoid use of uninitialized err

After 1ea972174baba40dbc80c51cbfc4edc49764b59b err is no longer
set unless we hit a special case. Initialize it to 0 and remove
a check that will never fail.

9 years agosystemctl: more cleanup
Thomas Hindoe Paaboel Andersen [Fri, 16 May 2014 21:37:54 +0000 (23:37 +0200)]
systemctl: more cleanup

This is followup on 05cae7f3431446236139434ee58a6275f3cb31e8

I think the intention was to use the newly introduced 'path'
variable in the inner loop instead of p.

9 years agoconf-parser: silently ignore sections starting with "X-"
Michael Marineau [Fri, 16 May 2014 23:58:31 +0000 (16:58 -0700)]
conf-parser: silently ignore sections starting with "X-"

This allows external tools to keep additional unit information in a
separate section without scaring users with a big warning.

9 years agoman: logind.conf: fix grammar issues, unclear wording, and unclear default values
Jason St. John [Sat, 17 May 2014 02:52:17 +0000 (22:52 -0400)]
man: logind.conf: fix grammar issues, unclear wording, and unclear default values

9 years agohwdb: Update database of Bluetooth company identifiers
Marcel Holtmann [Fri, 16 May 2014 22:57:35 +0000 (15:57 -0700)]
hwdb: Update database of Bluetooth company identifiers

9 years agobus: fix unitialized variable access in error path
Zbigniew Jędrzejewski-Szmek [Fri, 16 May 2014 03:27:59 +0000 (23:27 -0400)]
bus: fix unitialized variable access in error path

9 years agonetworkd: add missing files
Tom Gundersen [Fri, 16 May 2014 18:14:23 +0000 (20:14 +0200)]
networkd: add missing files

9 years agocore: let selinux_setup() load policy more than once
Will Woods [Fri, 25 Apr 2014 22:26:34 +0000 (18:26 -0400)]
core: let selinux_setup() load policy more than once

When you switch-root into a new root that has SELinux policy, you're
supposed to to run selinux_init_load_policy() to set up SELinux and load
policy. Normally this gets handled by selinux_setup().

But if SELinux was already initialized, selinux_setup() skips loading
policy and returns 0. So if you load policy normally, and then you
switch-root to a new root that has new policy, selinux_setup() never
loads the new policy. What gives?

As far as I can tell, this check is an artifact of how selinux_setup()
worked when it was first written (see commit c4dcdb9 / systemd v12):

  * when systemd starts, run selinux_setup()
  * if selinux_setup() loads policy OK, restart systemd

So the "if policy already loaded, skip load and return 0" check was
there to prevent an infinite re-exec loop.

Modern systemd only calls selinux_setup() on initial load and after
switch-root, and selinux_setup() no longer restarts systemd, so we don't
need that check to guard against the infinite loop anymore.

So: this patch removes the "return 0", thus allowing selinux_setup() to
actually perform SELinux setup after switch-root.

We still want to check to see if SELinux is initialized, because if
selinux_init_load_policy() fails *but* SELinux is initialized that means
we still have (old) policy active. So we don't need to halt if
enforce=1.

9 years agologind: allow suspending if there are no displays
Mantas Mikulėnas [Sun, 27 Apr 2014 21:58:56 +0000 (00:58 +0300)]
logind: allow suspending if there are no displays

With proprietary graphics drivers, there won't be any 'drm' devices in
sysfs, so logind will never suspend the system upon closing the lid,
even if only one (internal) display is connected. This has been reported
by multiple users so far.

IMHO, it's better to suspend the system in this case for safety reasons,
to avoid having nvidia blob users' laptops overheat, for the same reason
that sleep inhibitors are overridden (LidSwitchIgnoreInhibited=yes).

9 years agonetworkd: manager - read fallback DNS servers from config file
Tom Gundersen [Fri, 16 May 2014 17:44:22 +0000 (19:44 +0200)]
networkd: manager - read fallback DNS servers from config file

We will still use the compiled-in defaults if no DNS entry exists in the config file.

9 years agonetworkd: network - store DNS servers in List rather than Set
Tom Gundersen [Fri, 16 May 2014 17:43:12 +0000 (19:43 +0200)]
networkd: network - store DNS servers in List rather than Set

This way we preserve the order of preference.

9 years agonetworkd: also add IPv6 DNS servers by default
Tom Gundersen [Fri, 16 May 2014 15:34:43 +0000 (17:34 +0200)]
networkd: also add IPv6 DNS servers by default

9 years agonspawn: properly format container_uuid in UUID format
Lennart Poettering [Fri, 16 May 2014 17:37:19 +0000 (19:37 +0200)]
nspawn: properly format container_uuid in UUID format

http://lists.freedesktop.org/archives/systemd-devel/2014-April/018971.html

9 years agoman: update journald rate limit defaults
Mantas Mikulėnas [Wed, 30 Apr 2014 16:53:13 +0000 (19:53 +0300)]
man: update journald rate limit defaults

This brings the man page back into sync with the actual code.

9 years agopath-lookup: don't hardcode .config
Tanu Kaskinen [Sat, 3 May 2014 08:52:13 +0000 (11:52 +0300)]
path-lookup: don't hardcode .config

If XDG_CONFIG_HOME is set, then we should respect that.

9 years agopath-util: add path_make_relative()
Tanu Kaskinen [Sat, 3 May 2014 08:52:12 +0000 (11:52 +0300)]
path-util: add path_make_relative()

In user_dirs() in path-lookup.c, I want to replace this:
        symlink("../../../.config/systemd/user", data_home);
with
        symlink(config_home, data_home);
to avoid hardcoding .config when XDG_CONFIG_HOME is set.

The problem is that config_home is an absolute path, and it's better
to make the symlink relative. path_make_relative() is an utility
function that converts an absolute path into a relative one.

9 years agofsck: Allow to specify the fsck repair option in the cmdline
Holger Hans Peter Freyther [Thu, 15 May 2014 17:07:43 +0000 (19:07 +0200)]
fsck: Allow to specify the fsck repair option in the cmdline

Some unattended systems do not have a console attached and entering
the default rescue mode will not be too helpful. Allow to specify
the "-y" option to attempt to fix all filesystem errors.

Manually verified by downloading an image.gz of e2fsprogs, using
losetup and running systemd-fsck on the loop device and varying
the fsck.repair=preen|yes|no option.

9 years agonetworkd: hardcode a set of default dns servers
Tom Gundersen [Fri, 16 May 2014 13:24:09 +0000 (15:24 +0200)]
networkd: hardcode a set of default dns servers

Similarly to NTP servers, this can be set at compile-time.

9 years agoman: readahead: fix cmdline switch inconsistency between readahead.c and docs
Alison Chaiken [Fri, 16 May 2014 07:25:53 +0000 (09:25 +0200)]
man: readahead: fix cmdline switch inconsistency between readahead.c and docs

Source code has "files-max" and XML has --max-files.

9 years agoreadahead: modernizations
Lennart Poettering [Fri, 16 May 2014 15:07:51 +0000 (17:07 +0200)]
readahead: modernizations

9 years agoman: fix some minor language typos
Lennart Poettering [Fri, 16 May 2014 14:51:56 +0000 (16:51 +0200)]
man: fix some minor language typos

9 years agobuild-sys: at configure check for verifying that ln supports --relative
Lennart Poettering [Fri, 16 May 2014 14:51:42 +0000 (16:51 +0200)]
build-sys: at configure check for verifying that ln supports --relative

9 years agonetwork: always create /run/systemd/network/links
Lennart Poettering [Fri, 16 May 2014 13:56:44 +0000 (15:56 +0200)]
network: always create /run/systemd/network/links

This ways the networkd client library should work even if networkd is
not running.

http://lists.freedesktop.org/archives/systemd-devel/2014-May/019242.html

9 years agoRevert "networkd: order after udev kernel socket"
Tom Gundersen [Fri, 16 May 2014 12:48:58 +0000 (14:48 +0200)]
Revert "networkd: order after udev kernel socket"

This reverts commit a555350d47c4b70d716a63424933b34902c98300.

This did not fix the problem, just made it harder to hit.

9 years agonetworkd: log the initialization status of links
Tom Gundersen [Fri, 16 May 2014 12:47:43 +0000 (14:47 +0200)]
networkd: log the initialization status of links

9 years agoTODO
Tom Gundersen [Thu, 15 May 2014 22:26:37 +0000 (00:26 +0200)]
TODO

9 years agonetworkd: fix typo
Tom Gundersen [Thu, 15 May 2014 21:14:52 +0000 (23:14 +0200)]
networkd: fix typo

9 years agonetworkd: rename Address and Route list fields
Tom Gundersen [Thu, 15 May 2014 18:10:33 +0000 (20:10 +0200)]
networkd: rename Address and Route list fields

9 years agotimesyncd: fix typo in comment
Kay Sievers [Thu, 15 May 2014 23:27:57 +0000 (01:27 +0200)]
timesyncd: fix typo in comment

9 years agoman: clarify that the ExecReload= command should be synchronous
Lennart Poettering [Thu, 15 May 2014 23:33:22 +0000 (01:33 +0200)]
man: clarify that the ExecReload= command should be synchronous

http://lists.freedesktop.org/archives/systemd-devel/2014-May/019054.html

9 years agocore: make sure to serialize jobs for all units
Lennart Poettering [Thu, 15 May 2014 23:15:03 +0000 (01:15 +0200)]
core: make sure to serialize jobs for all units

Previously we wouldn't serialize jobs for units that themselves have
nothing to serialize.

http://lists.freedesktop.org/archives/systemd-devel/2014-May/019051.html

9 years agoUpdate TODO
Lennart Poettering [Thu, 15 May 2014 22:23:26 +0000 (00:23 +0200)]
Update TODO

9 years agotimesyncd: fix error path return value
Kay Sievers [Thu, 15 May 2014 18:50:02 +0000 (20:50 +0200)]
timesyncd: fix error path return value

https://bugs.freedesktop.org/show_bug.cgi?id=78752