locale: export LANG to daemons

This was not done in case $DAEMON_LOCALE was set and locale.conf
did not exist.

Fixes FS#27498.

Signed-off-by: Tom Gundersen <teg@jklm.no>
status: break line after BKGD message

This looked ok on screen due to line-wrap, but the logs were a mess.

Should also avoid some lines being cut due to exceeding 256 chars.

Reported-by: Florian Pritz <bluewind@xinu.at>
Signed-off-by: Tom Gundersen <teg@jklm.no>
allow ro root

We no longer force root to be rw, but follow what is set in fstab.

Things might not work well if root is mounted ro, but now we at least
have the possibility of chasing down problems elsewhere.

This implements FS#9384.

Signed-off-by: Tom Gundersen <teg@jklm.no>
mtab: drop conditional symlinking

With of filesystem-2011.12 this would never get triggered.

Signed-off-by: Tom Gundersen <teg@jklm.no>
warn about lack of devtmpfs support

This still works (probably), but is not tested, and I have a feeling that
udev will drop support for this at some point, so we better prepare people.

There is no reason not to enable devtmpfs support (except that it requires a
recompile of course).

Signed-off-by: Tom Gundersen <teg@jklm.no>
Add manpage(5) for rc.conf

[tomegun: fixed whitespace error]

Signed-off-by: Tom Gundersen <teg@jklm.no>
tweaked the default rc.conf a bit

Many env vars in rc.conf can stay unset in most cases, make this clear
by keeping them empty by default and recommend keeping them like that if
possible.

Signed-off-by: Tom Gundersen <teg@jklm.no>
rc.conf: move most of the comments from the standard file to the manpage

Having the documentation in the config file means users have to merge the config
file every time we update the documentation. Also, repeating the documentation in
two places means it will eventually go out of sync.

Signed-off-by: Tom Gundersen <teg@jklm.no>
rc.conf: add hint about manpage

Since this is likely the first config file a new user will have to edit,
I guess we can be generous and point out that they should look at the man
page.

Signed-off-by: Tom Gundersen <teg@jklm.no>
clarify NETWORKS a bit more

[tomegun: remove the Default line as it is not used any more.]

Signed-off-by: Tom Gundersen <teg@jklm.no>
arch-tmpfiles: don't truncate directories on --create

arch-tmpfiles should not truncate directories when invoked with
--create. This matches behavior from systemd's tmpfiles binary.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
arch-tmpfiles: avoid pipe to xargs

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
arch-tmpfiles: simplify action invocation

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
arch-tmpfiles: simplify uid/gid validation

getent will process numeric UIDs/GIDs for us.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
arch-tmpfiles: add handling for _z and _Z

This doesn't actually relabel security contexts, since arch's coreutils
isn't built with selinux support, but it handles maintenance of mode and
ownership if you're into that sort of thing.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
config: add /etc/hostname support

If /etc/hostname is non-empty its contents is assumed to be the hostname.
This takes precedence over HOSTNAME in rc.conf.

This implements FS#27732 and http://0pointer.de/public/systemd-man/hostname.html,
and is the same as what is done on Debian, Ubuntu, Fedora and Suse.

Signed-off-by: Tom Gundersen <teg@jklm.no>
rc.conf: leave HARDWARECLOCK and TIMEZONE empty by default

On a fresh install this makes sense as HARDWARECLOCK will then
be set to UTC, or something else if manually specified by an hwclock
invocation; TIMEZONE is left at whatever was set during install, or
UTC if nothing was set at all.

Signed-off-by: Tom Gundersen <teg@jklm.no>
man: updated rc.conf(5)

Fixed defaults, mentioned precedence and minor issues.

Still need to sort out the formatting, which is a bit of a trainwreck.

Signed-off-by: Tom Gundersen <teg@jklm.no>
Use /run instead of /var/run in network

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Tom Gundersen <teg@jklm.no>
.gitignore: add manpages