aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2012-03-10netfs: force umounts in order to avoid hanging on NFSTom Gundersen1
This should hopefully fix problems with umount hanging on shutdown. FWIW, this is also what systemd does. Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-03-05network: pass -q to dhcpcd on shutdownDave Reisner1
Avoid unnecessary output about sending a SIGTERM to the active PID. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-03-05functions: check for length before using arrayDave Reisner1
This avoids passing an empty array to umount Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-03-05rc.sysinit: avoid exporting empty TIMEZONE as TZDave Reisner1
fixes FS#28458 Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-02-24Revert "deal with both valid return codes of mount -a"Tom Gundersen1
This reverts commit fd54cc63cd6853b839d8a0d15ff7c8506743ac5a. The correct return codes of "mount -a" are: 0 all mounts succeeded 64 some mounts succeeded and some failed 32 all mounts failed We want to show "FAILED" on all return codes except for 0. There is a bug in the new mount where "ignored" is taken to be "failed", which gives some false negative. This will be fixed in util-linux.
2012-02-24deal with both valid return codes of mount -a2012.02.2Tom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-02-24Update the rc.conf manpage for kmodJonathan Frazier1
kmod has a modprobe.d man page not modprobe.conf Signed-off-by: Jonathan Frazier <eyeswide@gmail.com>
2012-02-03rc.sysinit: Remove redundant command substitution2012.02.1Lukas Fleischer1
Invoke `grep -q` and check its return value instead of checking whether grep(1) produces non-empty output. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-02-03Small style cleanupLukas Fleischer4
* Add whitespace to arithmetic expressions. * Use boolean logic for semantically boolean variables. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-02-03Fix indentationLukas Fleischer3
Indent code using tabs (instead of spaces) in all source files. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-01-31Add fastboot supportLukas Fleischer2
This one adds support for the "/fastboot" file, as well as the "fastboot" kernel command line parameter. If either of them is specified, file system checks are skipped. The only exception is the existence of "/forcefsck" or the "forcefsck" kernel parameter which have precedence over fastboot. Implements FS#26154. Reported-by: Mark <mark@voidzero.net> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2012-01-30Merge remote-tracking branch 'falconindy/working'Tom Gundersen1
2012-01-22functions: skip check for /proc/modulesDave Reisner1
kmod doesn't read from /proc/modules to get attributes like module init state, and won't act up when /proc isn't mounted or if /proc/modules doesn't exist. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-01-22functions: allow verbose output from status()Dave Reisner1
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>
2012-01-21man: fix typoChristoph Vigano1
Hello, in the manpage of rc.conf there was a typo that I fixed with this patch. Greetings, Christoph Vigano
2012-01-19Revert "tmpfiles: fix 'd' and 'D' confusion"2012.01.3Tom Gundersen1
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>
2012-01-18udev: don't override settle timeoutTom Gundersen3
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>
2012-01-18Merge branch 'bikeshed'Tom Gundersen2
2012-01-14mount: no longer pass '-n' to mountTom Gundersen3
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>
2012-01-12/dev: remove non-devtmpfs supportTom Gundersen2
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>
2012-01-12functions: avoid usage of tacDave Reisner1
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>
2012-01-11rc.conf: waste less space and unset hostname by defaultTom Gundersen2
Partially-requested-by: Dieter Plaetinck <dieter@plaetinck.be> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-01-10man: fix name of adjtime fileTom Gundersen1
Reported-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-01-03tmpfiles: fix 'd' and 'D' confusion2012.01.2Tom Gundersen1
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>
2012-01-02tmpfiles.conf: add time argument to some entriesTom Gundersen1
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>
2012-01-01rc.conf: remove leftover commentTom Gundersen1
People should refer to the manpage. Reported-by: Andrea Scarpino <andrea@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-01-01timezone: correct check for when there is nothing to doTom Gundersen1
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>
2011-12-31man: minor fixups2012.01.1Tom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-31rc.conf: default DAEMON_LOCALE to 'yes'Tom Gundersen2
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>
2011-12-31man: minor fixes and typesettingTom Gundersen3
This attempts to unify the look of the man pages. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-31man: add hostname(5)Tom Gundersen3
Also fix typo in Makefile making the install of the other manpages fail. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-31man: add Arch-specific man page for locale.conf and vconsole.confTom Gundersen4
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>
2011-12-30man: install rc.conf.5Tom Gundersen1
The manpage was not being installed. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-30.gitignore: add manpagesTom Gundersen1
2011-12-28Use /run instead of /var/run in networkAllan McRae1
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-28man: updated rc.conf(5)Tom Gundersen1
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>
2011-12-28rc.conf: leave HARDWARECLOCK and TIMEZONE empty by defaultTom Gundersen1
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>
2011-12-27config: add /etc/hostname supportTom Gundersen1
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>
2011-12-26arch-tmpfiles: add handling for _z and _ZDave Reisner1
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>
2011-12-26arch-tmpfiles: simplify uid/gid validationDave Reisner1
getent will process numeric UIDs/GIDs for us. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: simplify action invocationDave Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: avoid pipe to xargsDave Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: don't truncate directories on --createDave Reisner1
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>
2011-12-26clarify NETWORKS a bit moreDieter Plaetinck1
[tomegun: remove the Default line as it is not used any more.] Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-26rc.conf: add hint about manpageTom Gundersen1
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>
2011-12-26rc.conf: move most of the comments from the standard file to the manpageTom Gundersen2
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>
2011-12-26tweaked the default rc.conf a bitTom Gundersen2
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>
2011-12-26Add manpage(5) for rc.confDieter Plaetinck2
[tomegun: fixed whitespace error] Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-12-21warn about lack of devtmpfs supportTom Gundersen1
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>
2011-12-21mtab: drop conditional symlinkingTom Gundersen1
With of filesystem-2011.12 this would never get triggered. Signed-off-by: Tom Gundersen <teg@jklm.no>