Age | Commit message (Collapse) | Author | Files |
|
Detect -v as a parameter to status and avoid dumping everything to
/dev/null. Use this to restore error output to modprobe on loading
user-specified modules.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Hello,
in the manpage of rc.conf there was a typo that I fixed with this patch.
Greetings,
Christoph Vigano
|
|
The commit message was wrong about the semantics of the Age parameter,
revert to the way it was before.
We leave /run/daemons as a 'd' as it does not make sense to delete its
contents (it is on a tmpfs).
This reverts commit 3efdfe82da085888354f27565fd9c6fab3c8b5a8.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
The Arch default was 30 but upstream default was 120. This caused problems when
udev-177-3 introduced a 30 second timeout for broken kernel drivers.
We don't want to do this kind of fiddling in initscripts, if there is a need for
overriding the timeout this should be added upstream to udev.conf. My feeling is
that this is a bad idea, as there are now at least three different kinds of timeouts
at play in udev, and if they are set to something incompatible it will cause unneccesary
problems.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
|
|
This was needed when /etc/mtab was a regular file in order to avoid writing to it
when /etc/ was mounted ro. However, now it is not needed.
Passing -n should have been a noop, except for the NILFS mount helper. It will only
start the daemon if the -n flag is not passed.
This fixes FS#22523.
Tested-by: Alexander Lam <lambchop468@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Udev requires devtmpfs to work, so no point in pretending that the system will work without it.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
tac stupidly writes to a tempfile when the input isn't seekable, which
is true in our case as it's reading from a pipe. Since the whole goal
here is to avoid using disk, build an array in reverse. For whatever
reason, Bash truly sucks at doing this from a execution time standpoint,
but that isn't really a concern here.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Partially-requested-by: Dieter Plaetinck <dieter@plaetinck.be>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Reported-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Never use 'd' with non-empty Age, as the age refers to how old files can be
before they are deleted, and 'd' never deletes anything.
Also, we never want to delete /run/daemons, except for on boot (and then it
must be empty since /run is tmpfs), so change that into 'd'.
This makes our files diverge from systemd's again (undoing the previous patch),
but I submitted the same fix to systemd, so they should eventually converge
again.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This makes the entries shipped by systemd and initscripst the same.
No functional change as initscripts ignore the time entries, but it
silences some warnings in systemd.
These particular rules should eventually be shipped upstream in xorg
and not in initscripts+systemd.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
People should refer to the manpage.
Reported-by: Andrea Scarpino <andrea@archlinux.org>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
We were unconditionally copying the zoneinfo file when we should
be doing nothing.
Reported-by: Leonid Isaev <lisaev@umail.iu.edu>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
When doing the manpages, this made more sense to me, so change the default.
Also, this is apparently what other distros have been doing...
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This attempts to unify the look of the man pages.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Also fix typo in Makefile making the install of the other manpages fail.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Taken from systemd, but adapted to be Arch-specific. Some things left
commented out as we might want to implement them.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
The manpage was not being installed.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
|
|
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
getent will process numeric UIDs/GIDs for us.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
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>
|
|
[tomegun: remove the Default line as it is not used any more.]
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
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>
|
|
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>
|
|
[tomegun: fixed whitespace error]
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
With of filesystem-2011.12 this would never get triggered.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
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>
|
|
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>
|
|
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>
|
|
|
|
All packages in core/extra now supports this, and keeping them separated
might soon cause problems (in particular, I submitted a patch to rpcbind
that would cause problems if the symlinks are not in place).
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
If we source locale.sh with a LANG already set and locale.conf doesn't
exist, we may never properly set the locale according rc.conf.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
|
|
These are all owned by root, so risk of DoS is low. Also, running out of space on the fs'
would be more critical than running low on memory.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
At this point, libmount powered mount does the right thing in 99% of
cases. util-linux tools all behave in a much more expected manner when
this symlink exists, particularly when parsing /etc/mtab.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
The kernel won't store options it doesn't understand, so looking for
_netdev in /proc/self/mountinfo is worthless. Note that when /etc/mtab
is a symlink to /proc/self/mounts, libmount-powered mount will read from
/run/mount/utab to find the _netdev option.
Reported at: https://bbs.archlinux.org/viewtopic.php?pid=1021427
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This would be useful for filesystem monitoring software which needs to
capture all changes to the filesystem - including the final writes to
the random seed and wtmp.
[tomegun: this hook is now the same as the postkillall hook, but that might
change, so I agree with adding it for the sake of having sane semantics.]
Signed-off-by: Devin J. Pohly <djpohly+arch@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
In case the initramfs already fsck'ed and mounted the root fs ro, we don't remount ro and
fsck.
We still remount the rootfs rw unconditionally at the end. We should probably stop doing
this and require the user to specify rw/ro explicitly in fstab.
We assume that the initramfs will also fsck and mount /usr, so we do not fsck any
mounted fs (not restricted to the rootfs).
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Automaticall push the tarball to both gerolde and pkgbuild.com.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|