chiark / gitweb /
7 years agobus: enable SO_PASSCRED only if we are not connected to a bus
Lennart Poettering [Sat, 30 Mar 2013 14:18:31 +0000 (15:18 +0100)]
bus: enable SO_PASSCRED only if we are not connected to a bus

7 years agobus: properly set up bus connections with sd_bus_set_exec()
Lennart Poettering [Fri, 29 Mar 2013 22:45:00 +0000 (23:45 +0100)]
bus: properly set up bus connections with sd_bus_set_exec()

7 years agobus: consider it an error if the first message we get on the bus is not a reply to...
Lennart Poettering [Fri, 29 Mar 2013 22:44:11 +0000 (23:44 +0100)]
bus: consider it an error if the first message we get on the bus is not a reply to HELLO

7 years agobus: add C++ wrappers to public header files
Lennart Poettering [Fri, 29 Mar 2013 22:20:32 +0000 (23:20 +0100)]
bus: add C++ wrappers to public header files

7 years agodbus: let's make this const array static
Lennart Poettering [Fri, 29 Mar 2013 22:14:58 +0000 (23:14 +0100)]
dbus: let's make this const array static

7 years agoudev: extern on functions is pointless
Lennart Poettering [Fri, 29 Mar 2013 22:10:59 +0000 (23:10 +0100)]
udev: extern on functions is pointless

7 years agounit: no need to export variables if we can avoid it
Lennart Poettering [Fri, 29 Mar 2013 21:59:35 +0000 (22:59 +0100)]
unit: no need to export variables if we can avoid it

7 years agoTODO
Lennart Poettering [Fri, 29 Mar 2013 21:45:57 +0000 (22:45 +0100)]

7 years agogitignore: update
Kay Sievers [Sat, 30 Mar 2013 14:06:51 +0000 (15:06 +0100)]
gitignore: update

7 years agoTODO: update
Kay Sievers [Sat, 30 Mar 2013 14:03:09 +0000 (15:03 +0100)]
TODO: update

7 years agokillall: print notice what we forcefully KILL
Kay Sievers [Thu, 28 Mar 2013 22:00:32 +0000 (23:00 +0100)]
killall: print notice what we forcefully KILL

7 years agobuild-sys: force Python to write UTF-8
Kelly Anderson [Fri, 29 Mar 2013 23:23:35 +0000 (19:23 -0400)]
build-sys: force Python to write UTF-8

Here is a patch that fixes documentation with python 3.x in non utf-8
locales.  Specifically in my locale latin-1 is the default setting for
output going to stdout, which causes it to fail. By writing directly
to file we are able to set the locale to utf-8.

7 years agobuild-sys,man: use XML entities to substite strings
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 18:22:27 +0000 (14:22 -0400)]
build-sys,man: use XML entities to substite strings

This makes it easier to add substitutions to man pages,
avoiding the separate transformation step.

mkdir -p's are removed from the rule, because xsltproc will
will create directories on it's own.

All in all, two or three forks per man page are avoided,
which should make things marginally faster.

Unfortunately python parsers must too be tweaked to handle
entities. This isn't particularly easy: with lxml a custom
Resolver can be used, but the stdlib etree doesn't support
external entities *at all*. So when running without lxml,
the entities are just removed. Right now it doesn't matter,
since the entities are not indexed anyway. But I intend to
add indexing of filenames in the near future, and then the
index generated without lxml might be missing a few lines.
Oh well.

7 years agobuild-sys: generate sed substitution from a list
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 17:59:51 +0000 (13:59 -0400)]
build-sys: generate sed substitution from a list

I want to use the substitutions in different form for
xml entities.

7 years agoRevert "build-sys: substitute strings in systemd.unit(5)"
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 17:09:52 +0000 (13:09 -0400)]
Revert "build-sys: substitute strings in systemd.unit(5)"

This reverts commits c78ab91132aab9193f3c17a9a206f8825ff4be84
and 185c3be03cec26023acc11b49553753aa7330a1d.

It is simpler to just use includes...

7 years agotest-path-util: fix another stupid test failure
Zbigniew Jędrzejewski-Szmek [Sat, 30 Mar 2013 00:26:47 +0000 (20:26 -0400)]
test-path-util: fix another stupid test failure

7 years agounits: fix fields
Lennart Poettering [Fri, 29 Mar 2013 17:28:58 +0000 (18:28 +0100)]
units: fix fields

7 years agoupdate TODO
Lennart Poettering [Fri, 29 Mar 2013 17:28:43 +0000 (18:28 +0100)]
update TODO

7 years agotest-path-util: fix botched test
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 14:45:05 +0000 (10:45 -0400)]
test-path-util: fix botched test

7 years agobootctl: fix help text
Koen Kooi [Fri, 29 Mar 2013 08:10:31 +0000 (09:10 +0100)]
bootctl: fix help text

It currently says 'time settings', change that to 'boot settings'.

7 years agoutmp: make gcc shut up, we need to pass an int here, not size_t
Lennart Poettering [Fri, 29 Mar 2013 14:47:18 +0000 (15:47 +0100)]
utmp: make gcc shut up, we need to pass an int here, not size_t

7 years agocgtop --help: default depth is 3 not 2
Maksim Melnikau [Fri, 29 Mar 2013 12:55:50 +0000 (15:55 +0300)]
cgtop --help: default depth is 3 not 2

use default depth from variable for --help

7 years agoAlways use errno > 0 to help gcc
Zbigniew Jędrzejewski-Szmek [Thu, 28 Mar 2013 13:24:15 +0000 (09:24 -0400)]
Always use errno > 0 to help gcc

gcc thinks that errno might be negative, and functions could return
something positive on error (-errno). Should not matter in practice,
but makes an -O4 build much quieter.

7 years agojournalctl: fix --update-catalog with not --root arg
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 14:09:21 +0000 (10:09 -0400)]
journalctl: fix --update-catalog with not --root arg

grawity> `journalctl --update-catalog` from latest git prints:
         "Recursive mkdir .: Invalid argument" and
         "Failed to write : Invalid argument"

7 years agotests: add some silly tests for path-util.c
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 02:03:53 +0000 (22:03 -0400)]
tests: add some silly tests for path-util.c

7 years agojournalctl: support --root for message catalogs
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 01:44:00 +0000 (21:44 -0400)]
journalctl: support --root for message catalogs

7 years agocatalog: open up catalog internals
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 00:17:24 +0000 (20:17 -0400)]
catalog: open up catalog internals

In order to write tests for the catalog functions, they
are made non-static and start taking a 'database' parameter,
which is the name of a file with the preprocessed catalog

This makes it possible to make test-catalog part of the
normal test suite, since it now only operates on files
in /tmp.

Some more tests are added.

7 years agocatalog: make sure strings are terminated
Zbigniew Jędrzejewski-Szmek [Thu, 28 Mar 2013 03:16:32 +0000 (23:16 -0400)]
catalog: make sure strings are terminated

Coverity complains: systemd-199/src/journal/catalog.c:126:
buffer_size_warning: Calling strncpy with a maximum size argument of
32 bytes on destination array "i->language" of size 32 bytes might
leave the destination string unterminated.

...and unfortunately it was right. The string was defined as a
fixed-size string in some parts of the code, and used a
null-terminated string in others (e.g. in log statements). There's no
point in conserving one byte, so just define the max language tag
length to 31 bytes, and use null terminated strings everywhere.

Also, wrap some lines, zero-fill less bytes, use '\0' instead of just
0 to be more explicit that this is one byte.

7 years agoudev: check return value of uname.
Václav Pavlín [Wed, 27 Mar 2013 14:16:36 +0000 (15:16 +0100)]
udev: check return value of uname.

7 years agobootchart: properly terminate string
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 03:41:07 +0000 (23:41 -0400)]
bootchart: properly terminate string

systemd-199/src/bootchart/store.c:289: buffer_size_warning: Calling
strncpy with a maximum size argument of 256 bytes on destination array
"ps->name" of size 256 bytes might leave the destination string

...and indeed, the string was used as NULL-terminated later on.

pid_cmdline_strncpy is renamed to pid_cmdline_strscpy to commemorate
the fact that it *does* properly terminate the string.

7 years agoutmp-wtmp: don't try to read past end of string
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 03:19:19 +0000 (23:19 -0400)]
utmp-wtmp: don't try to read past end of string

systemd-199/src/shared/utmp-wtmp.c:228: buffer_size_warning: Calling
strncpy with a maximum size argument of 32 bytes on destination array
"store.ut_line" of size 32 bytes might leave the destination string

The destination string is unterminated on purpose, but we must
remember that.

7 years agobuild-sys: remove papersize option from sphinx
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 02:54:22 +0000 (22:54 -0400)]
build-sys: remove papersize option from sphinx

We don't use it currently for anything (no latex output),
but it was messing up stuff if /etc/papersize had comments.

7 years agocoredump: do not free twice v200
Zbigniew Jędrzejewski-Szmek [Fri, 29 Mar 2013 02:09:28 +0000 (22:09 -0400)]
coredump: do not free twice

7 years agobuild-sys: prepare release 200
Lennart Poettering [Thu, 28 Mar 2013 20:31:55 +0000 (21:31 +0100)]
build-sys: prepare release 200

7 years agounit: replace by
Lennart Poettering [Thu, 28 Mar 2013 20:18:58 +0000 (21:18 +0100)]
unit: replace by

7 years agohwdb: update
Kay Sievers [Thu, 28 Mar 2013 20:53:30 +0000 (21:53 +0100)]
hwdb: update

7 years agobuild-sys: fix HAVE/ENABLE_FIRMWARE
Kay Sievers [Thu, 28 Mar 2013 14:28:10 +0000 (15:28 +0100)]

7 years agobootctl: ESP --> Partition
Kay Sievers [Thu, 28 Mar 2013 10:42:32 +0000 (11:42 +0100)]
bootctl: ESP --> Partition

7 years agobootctl: Binary: --> File:
Kay Sievers [Thu, 28 Mar 2013 02:42:39 +0000 (03:42 +0100)]
bootctl: Binary: --> File:

7 years agoman/os-release: Add BUILD_ID field
William Douglas [Mon, 25 Mar 2013 21:07:49 +0000 (14:07 -0700)]
man/os-release: Add BUILD_ID field

BUILD_ID is a fairly generic field used to identify the system image
that was used to install the distribution.

7 years agocatalog: fix error codes handling in catalog_list_items
Lukas Nykryn [Wed, 27 Mar 2013 16:35:55 +0000 (17:35 +0100)]
catalog: fix error codes handling in catalog_list_items

Previously r was set to zero and so if(r<0) was never true.

7 years agolog: fix error codes handling in catalog_list_items
Lukas Nykryn [Wed, 27 Mar 2013 09:44:21 +0000 (10:44 +0100)]
log: fix error codes handling in catalog_list_items

It does not make sense to print error code from previous loop.

7 years agosd-bus: check c->path for null instead of path
Lukas Nykryn [Wed, 27 Mar 2013 09:44:20 +0000 (10:44 +0100)]
sd-bus: check c->path for null instead of path

7 years agosystemd-sysctl: Handle missing /etc/sysctl.conf properly
Eelco Dolstra [Wed, 27 Mar 2013 12:41:59 +0000 (13:41 +0100)]
systemd-sysctl: Handle missing /etc/sysctl.conf properly

Since fabe5c0e5fce730aa66e10a9c4f9fdd443d7aeda, systemd-sysctl returns
a non-zero exit code if /etc/sysctl.conf does not exist, due to a
broken ENOENT check.

7 years agoshared: free dt (temporary dir name) on fail
Václav Pavlín [Wed, 27 Mar 2013 14:16:37 +0000 (15:16 +0100)]
shared: free dt (temporary dir name) on fail

[zj: modified to not to try to rmdir() dir we haven't created.]

7 years agocore: check return value of rm_rf_dangerous and warn if it fails
Václav Pavlín [Wed, 27 Mar 2013 14:16:35 +0000 (15:16 +0100)]
core: check return value of rm_rf_dangerous and warn if it fails

7 years agobootctl: rename status output header
Kay Sievers [Wed, 27 Mar 2013 03:26:12 +0000 (04:26 +0100)]
bootctl: rename status output header

7 years agokeymap: Fix Touchpad Toggle on MSI Wind U90/U100
Martin Pitt [Wed, 27 Mar 2013 07:15:12 +0000 (08:15 +0100)]
keymap: Fix Touchpad Toggle on MSI Wind U90/U100

This key is handled by the hardware already, so handling it again in software
nullifies the effect. Newer kernels read the real state and send out a separate
KEY_TOUCHPAD_ON or KEY_TOUCHPAD_OFF event, so in both cases we need to ignore
that key.

7 years agotests: skip bus test if bus cannot be opened
Zbigniew Jędrzejewski-Szmek [Wed, 27 Mar 2013 01:07:46 +0000 (21:07 -0400)]
tests: skip bus test if bus cannot be opened

To make the result more visible, special return value
is used to tell automake that the test was skipped. While
at it, use the same return value in other skipped tests.

7 years agotests: fix size_t in format string
Zbigniew Jędrzejewski-Szmek [Wed, 27 Mar 2013 03:47:25 +0000 (23:47 -0400)]
tests: fix size_t in format string

7 years agoSimplify the meaning of %s
Zbigniew Jędrzejewski-Szmek [Tue, 26 Mar 2013 23:37:14 +0000 (19:37 -0400)]
Simplify the meaning of %s

The rules governing %s where just too complicated. First of
all, looking at $SHELL is dangerous. For systemd --system,
it usually wouldn't be set. But it could be set if the admin
first started a debug shell, let's say /sbin/sash, and then
launched systemd from it. This shouldn't influence how daemons
are started later on, so is better ignored. Similar reasoning
holds for session mode. Some shells set $SHELL, while other
set it only when it wasn't set previously (e.g. zsh). This
results in fragility that is better avoided by ignoring $SHELL

With $SHELL out of the way, simplify things by saying that
%s==/bin/sh for root, and the configured shell otherwise.
get_shell() is the only caller, so it can be inlined.

Fixes one issue seen with 'make check'.

7 years agounits: automatically order all mount units after
Lennart Poettering [Wed, 27 Mar 2013 01:51:33 +0000 (02:51 +0100)]
units: automatically order all mount units after

Previously it was necessary to pull in to order the
mount units against since the ordering was done
transitively via

As network implementations shouldn't need to know about the specific
use-case of network mounts we instead now simply order
against all mounts too. This should make it unnecessary for network
managing services to import explicitly, as will now suffice.

7 years agoman: is also a passive target
Lennart Poettering [Wed, 27 Mar 2013 01:49:50 +0000 (02:49 +0100)]
man: is also a passive target

7 years agoreadahead: cleanups
Auke Kok [Tue, 26 Mar 2013 18:13:47 +0000 (11:13 -0700)]
readahead: cleanups

- check for OOM
- no need to use floats and round()

7 years agoreadahead: chunk on spinning media
Auke Kok [Fri, 22 Mar 2013 22:09:45 +0000 (15:09 -0700)]
readahead: chunk on spinning media

Readahead has all sorts of bad side effects depending on your
storage media. On rotating disks, it may be degrading startup
performance if enough requests are queued spanning linearly
over all blocks early at boot, and mount, blkid and friends
want to insert reads to the start of these block devices after.

The end result is that on spinning disks with ext3/4 that udev
and mounts take a very long time, and nothing really happens until
readahead is completely finished.

This has the net effect that the CPU is almost entirely idle
for the entire period that readahead is working. We could have
finished starting up quite a lot of services in this time if
we were smarter at how we do readahead.

This patch sorts all requests into 2 second "chunks" and sub-sorts
each chunk by block. This adds a single cross-drive seek per "chunk"
but has the benefit that we will have a lot of the blocks we need
early on in the boot sequence loaded into memory faster.

For a comparison of how before/after bootcharts look (ext4 on a
mobile 5400rpm 250GB drive) please look at:

There are bootcharts in the "before" and "after" folders where you
should be able to see that many low-level services finish 5-7
seconds earlier with the patch applied (after).

7 years agoNEWS: tweak grammar
Zbigniew Jędrzejewski-Szmek [Tue, 26 Mar 2013 15:56:01 +0000 (11:56 -0400)]
NEWS: tweak grammar

7 years agoNEWS: typo fix v199
Lennart Poettering [Tue, 26 Mar 2013 14:51:57 +0000 (15:51 +0100)]
NEWS: typo fix

7 years agobuild-sys: bump version and .so revisions
Lennart Poettering [Tue, 26 Mar 2013 14:43:43 +0000 (15:43 +0100)]
build-sys: bump version and .so revisions

7 years agocryptsetup: when prompting for password use GPT partition label
Lennart Poettering [Tue, 26 Mar 2013 14:23:54 +0000 (15:23 +0100)]
cryptsetup: when prompting for password use GPT partition label

If there's a GPT partition label set for a LUKS partition, then it's
nicer to show that than the model number, when asking for a passphrase.

7 years agoman: document that the passive units cannot be pulled in mnaully
Lennart Poettering [Tue, 26 Mar 2013 14:16:50 +0000 (15:16 +0100)]
man: document that the passive units cannot be pulled in mnaully

7 years agofstab-generator: drop x-initrd.rootfs mount option
Harald Hoyer [Tue, 26 Mar 2013 14:33:57 +0000 (15:33 +0100)]
fstab-generator: drop x-initrd.rootfs mount option

x-initrd.mount now has different meanings, if fstab-generator is called
in the initramfs.

initrd:/etc/fstab and x-initrd.mount defines mounts for the

initrd:/sysroot/etc/fstab and x-initrd.mount defines mounts for the

7 years agounits: disallow manual starting of passive units
Lennart Poettering [Tue, 26 Mar 2013 14:14:27 +0000 (15:14 +0100)]
units: disallow manual starting of passive units

As passive units only are useful for ordering things within the initial
transaction there is no point in ever activating them manually, hence
refuse it.

7 years agofstab-generator: degrade the message about missing "root=" to log_debug
Harald Hoyer [Tue, 26 Mar 2013 13:46:35 +0000 (14:46 +0100)]
fstab-generator: degrade the message about missing "root=" to log_debug

Some installation media (fedora at least) does not have and need a
"root=" argument on the kernel command line.

7 years agoDrop src/login/uaccess.c, dead code
Martin Pitt [Tue, 26 Mar 2013 10:35:17 +0000 (11:35 +0100)]
Drop src/login/uaccess.c, dead code

This moved to src/udev/udev-builtin-uaccess.c a while ago.

7 years agobus: fix missing variable initialization
Lennart Poettering [Tue, 26 Mar 2013 02:42:03 +0000 (03:42 +0100)]
bus: fix missing variable initialization

7 years agomodules-load: there's really no point in mentioning that a certain modules is already...
Lennart Poettering [Tue, 26 Mar 2013 02:13:41 +0000 (03:13 +0100)]
modules-load: there's really no point in mentioning that a certain modules is already loaded

After all, this runs in parallel to udev, so there's quite a chance it
already is....

7 years agobuild-sys: make gcc shut up
Lennart Poettering [Tue, 26 Mar 2013 02:03:13 +0000 (03:03 +0100)]
build-sys: make gcc shut up

7 years agobuild-sys: ship missing unit file
Lennart Poettering [Tue, 26 Mar 2013 01:48:25 +0000 (02:48 +0100)]
build-sys: ship missing unit file

7 years agounits: downgrade dependency on by basic...
Lennart Poettering [Tue, 26 Mar 2013 01:32:20 +0000 (02:32 +0100)]
units: downgrade dependency on by

There isn't really any need to require any targets but
from, so downgrade,,

7 years agobus: when we are talking to a bus, SCM_CREDS/SCM_SECLABEL are not very useful
Lennart Poettering [Tue, 26 Mar 2013 00:58:14 +0000 (01:58 +0100)]
bus: when we are talking to a bus, SCM_CREDS/SCM_SECLABEL are not very useful

7 years agobus: automatically generate minimal introspection data to find installed objects
Lennart Poettering [Tue, 26 Mar 2013 00:54:37 +0000 (01:54 +0100)]
bus: automatically generate minimal introspection data to find installed objects

7 years agobus: rename send_hello flag to bus_cient
Lennart Poettering [Mon, 25 Mar 2013 23:36:43 +0000 (00:36 +0100)]
bus: rename send_hello flag to bus_cient

This way we can hide more than just the hello logic behind this flag,
for example, later on automatic match management.

7 years agobuild-sys: create kernel/install.d directories
Kay Sievers [Tue, 26 Mar 2013 00:00:14 +0000 (01:00 +0100)]
build-sys: create kernel/install.d directories

7 years agoNEWS: update
Kay Sievers [Mon, 25 Mar 2013 23:41:07 +0000 (00:41 +0100)]
NEWS: update

7 years agocryptsetup-generator: let's be a bit more efficient with strv_extend()
Lennart Poettering [Mon, 25 Mar 2013 22:49:41 +0000 (23:49 +0100)]
cryptsetup-generator: let's be a bit more efficient with strv_extend()

7 years agocryptsetup-generator: add a missing OOM check
Lennart Poettering [Mon, 25 Mar 2013 22:49:13 +0000 (23:49 +0100)]
cryptsetup-generator: add a missing OOM check

7 years agoupdate NEWS
Lennart Poettering [Mon, 25 Mar 2013 22:48:08 +0000 (23:48 +0100)]
update NEWS

7 years agoprepare NEWS for 199
Lennart Poettering [Mon, 25 Mar 2013 22:05:21 +0000 (23:05 +0100)]
prepare NEWS for 199

7 years agoman: properly document the system targets that are also available for the user instance
Lennart Poettering [Mon, 25 Mar 2013 21:32:59 +0000 (22:32 +0100)]
man: properly document the system targets that are also available for the user instance

7 years agoman: rearrange systemd.special(7) to clarify which units are passive and which ones...
Lennart Poettering [Mon, 25 Mar 2013 21:30:51 +0000 (22:30 +0100)]
man: rearrange systemd.special(7) to clarify which units are passive and which ones aren't

This also adds a short explanation paragraph for this.

7 years agounits: there is no point in pulling in ordering 'provides'-style targets
Lennart Poettering [Mon, 25 Mar 2013 21:10:32 +0000 (22:10 +0100)]
units: there is no point in pulling in ordering 'provides'-style targets

Units such as,,,,, are to be pulled in by the implementing services, and
that's there only purpose. They should not have any 'active component'
otherwise, so let's drop all further deps from these units.

7 years agoupdate TODO
Lennart Poettering [Mon, 25 Mar 2013 21:09:53 +0000 (22:09 +0100)]
update TODO

7 years agounits: introduce to pull in dependencies from remote mounts
Lennart Poettering [Mon, 25 Mar 2013 21:04:40 +0000 (22:04 +0100)]
units: introduce to pull in dependencies from remote mounts

This introduces independently of The former is only for pulling things in, the
latter only for ordering.

The new semantics: is pulled in automatically by all remote mounts.
Shall be used to pull in other units that want to run when at least one
remote mount is set up. Is not ordered against the actual mount units,
in order to allow activation of its dependencies even 'a posteriori',
i.e. when a mount is established outside of systemd and is only picked
up by it. needs to be pulled in automatically by the
implementing service, is otherwise not part of the initial transaction.
This is ordered before all remote mount units.

A service that wants to be pulled in and run before all remote mounts
should hence have:

a) -- so that it is pulled in

b) + -- so that
   it is ordered before the mount point, normally.

7 years agoRevert " want"
Lennart Poettering [Mon, 25 Mar 2013 20:29:58 +0000 (21:29 +0100)]
Revert " want"

This reverts commit 6bde0b3220e95a08cefb70846f73b2cf24b7734a.

We should not pull in unconditionally. It's
supposed to be pulled in by the implementors of it, rather then its

7 years agounits: and also, order all early-boot sockets before
Lennart Poettering [Mon, 25 Mar 2013 20:25:06 +0000 (21:25 +0100)]
units: and also, order all early-boot sockets before

7 years agounits: order all udev services before, too
Lennart Poettering [Mon, 25 Mar 2013 20:22:52 +0000 (21:22 +0100)]
units: order all udev services before, too

Not that it would matter much, but let's make things a bit more
systematic: early boot services shall order themselves before, and nothing else.

7 years agoupdate TODO
Lennart Poettering [Mon, 25 Mar 2013 20:21:51 +0000 (21:21 +0100)]
update TODO

7 years agounits: introduce new and to hook timer/path units into...
Lennart Poettering [Mon, 25 Mar 2013 20:20:08 +0000 (21:20 +0100)]
units: introduce new and to hook timer/path units into for boot

7 years agofstab-generator: add missing strempty() calls
Mantas Mikulėnas [Mon, 25 Mar 2013 19:10:29 +0000 (21:10 +0200)]
fstab-generator: add missing strempty() calls

7 years agobuild-sys: add missing sed substitution for DEBUGTTY
Kay Sievers [Mon, 25 Mar 2013 17:49:55 +0000 (18:49 +0100)]
build-sys: add missing sed substitution for DEBUGTTY

7 years agobuild-sys: configurable debug shell tty path
Umut Tezduyar [Thu, 14 Mar 2013 13:58:40 +0000 (14:58 +0100)]
build-sys: configurable debug shell tty path

7 years agofstab-generator: fix minor memory leak on error path
Lennart Poettering [Mon, 25 Mar 2013 17:19:52 +0000 (18:19 +0100)]
fstab-generator: fix minor memory leak on error path

7 years agofstab-generator: add missing OOM check
Lennart Poettering [Mon, 25 Mar 2013 17:18:57 +0000 (18:18 +0100)]
fstab-generator: add missing OOM check

7 years agofstab-generator: rename x-initrd-rootfs.mount to x-initrd.rootfs
Lennart Poettering [Mon, 25 Mar 2013 17:18:09 +0000 (18:18 +0100)]
fstab-generator: rename x-initrd-rootfs.mount to x-initrd.rootfs

This changes the fstab mount option x-initrd-rootfs.mount to
x-initrd.rootfs, in order to only use a single namespace "x-initrd." for
all mount options of the initrd.

7 years agoupdate TODO
Lennart Poettering [Mon, 25 Mar 2013 17:17:15 +0000 (18:17 +0100)]
update TODO

7 years agojournal: Add sync timer to journal server
Oleksii Shevchuk [Mon, 25 Mar 2013 16:49:03 +0000 (18:49 +0200)]
journal: Add sync timer to journal server

Add option to force journal sync with fsync. Default timeout is 5min.
Interval configured via SyncIntervalSec option at journal.conf. Synced
journal files will be marked as OFFLINE.

Manual sync can be performed via sending SIGUSR1.

7 years agoupdate TODO
Lennart Poettering [Mon, 25 Mar 2013 16:25:48 +0000 (17:25 +0100)]
update TODO

7 years agocore: ensure LSB Provides are handled correctly
Frederic Crozat [Thu, 21 Mar 2013 14:40:45 +0000 (15:40 +0100)]
core: ensure LSB Provides are handled correctly

Let's say you have two initscripts, A and B:

A contains in its LSB header:
Required-Start: C

and B contains in its LSB header:
Provides: C

When systemd is parsing /etc/rc.d/, depending on the file order, you
can end up with either:
- B is parsed first. An unit "C.service" will be "created" and will be
added as additional name to B.service, with unit_add_name. No bug.
- A is parsed first. An unit "C.service" is created for the
"Required-Start" dependency (it will have no file attached, since
nothing provides this dependency yet). Then B is parsed and when trying
to handle "Provides: C", unit_add_name is called but will fail, because
"C.service" already exists in manager->units. Therefore, a merge should
occur for that case.

7 years agoudevd.c: set udev children_max according to CPU count
Harald Hoyer [Mon, 25 Mar 2013 12:02:05 +0000 (13:02 +0100)]
udevd.c: set udev children_max according to CPU count

Setting children_max according to RAM leads to too much concurrent I/O.

7 years agotimer: downgrade time change message to debug
Michal Schmidt [Mon, 25 Mar 2013 11:31:44 +0000 (12:31 +0100)]
timer: downgrade time change message to debug

The manager already prints "Time has been changed" at level info. It
seems too verbose to print the time change message additionally for
every waiting timer unit.

Downgrade the per-unit message to debug.