Commits

Show all
Author Commit Message Labels Comments Date
Dave Reisner
functions: move all logic to the end of the file ...where it belongs Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Tags
2011.11.2
Dave Reisner
functions: fix a number of shortcomings in parse_envfile Embarassing. This function was just plain broken. - read/trim the correct variables - allow comments (only start of line, no midline) - allow quoting via single or double quotes. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Dave Reisner
PKGBUILD: use %Y%m%d format instead of %s Using seconds from epoch will cause 'makepkg -i' to fail. Lame. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Tags
2011.11.1
Dave Reisner
functions: implement a environment file parser This adds a 'parse_envfile' function that reads files such as /etc/locale.conf and /etc/vconsole.conf without sourcing them as bash logic. Several benefits are realized from this: - Impossible to execute arbitrary code - Bad syntax won't prevent the entire file from being read - Possible to limit what variables are allowed Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Dave Reisner
functions: declare locale vars in an array for reuse This also fixes a bug that unintentionally sets LOCALE instead of just defaulting to a value when its empty. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Dave Reisner
functions: properly quote ${mounts[@]} Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Dave Reisner
functions: remove redundant 'return $?' Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Dave Reisner
fix non-uniform indentation Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Dave Reisner
avoid unnecessary escaping of newlines The bash parser assumes that an expression continues when || is at the end of a line. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Jelle van der Waa
Fix misspelt error message FS#26726 error message should say 'Daemon' instead of 'Dameon' [tomegun: fixed commit message] Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
Tom Gundersen
locale.sh: fix LC_TELEPHONE/LC_MEASUREMENT Thanks to Fabio Scotoni. Signed-off-by: Tom Gundersen <teg@jklm.no>
Tom Gundersen
bootlog: filter out some more escapecodes In particular "^[[119G". Signed-off-by: Tom Gundersen <teg@jklm.no>
Tom Gundersen
swapoff: umount swap-backed fs before switching off swap Factor out umounting. Explicitly skip umounting API directories, rather than matching on fs type. This allows us to e.g. unmount all tmpfs but leaving /run and /dev/shm alone. v3: fixed some regressions in v2, made 'API filesystems' less general v2: new umount_all implementation based on proposal by Dave and input from Anthony. Also, ignore ramfs as it is not backed by swap. Cc: Dave Reisner <d@…
Tom Gundersen
rc.shutdown: reorder a bit The new ordering is now: 1) book-keeping 2) shutting down and killing processes 3) swapoff 4) unmounting and tearing down of block devices The reason to move 1) to the top is so it will not interfere with the killing of processes. The reason for not moving 3) to the top as well is that we want to minimize the amount of stuff that has to be moved from swap to ram. However, swapoff must happen be…
Tom Gundersen
minilogd: kill This is not very useful, is not maintained, has open serious bugs. Better to admit that it does not work and just remove it. Someone could easily make an AUR package with a hook, if they want it and can make it work as expected. The only case where this would be useful is in case lvm monitoring is in use and dmeventd sends out a message to syslog before syslog-ng is started (there is a very small…
Tom Gundersen
locale: fix locale.sh for zsh Uglier script, but should now work with zsh as well as bash. v2: only read rc.conf if LANG is not set in locale.conf, no functional change. Based on suggestion by Dave. Signed-off-by: Tom Gundersen <teg@jklm.no>
Tom Gundersen
udev: binary moved, require 174
Tom Gundersen
udev: exit on shutdown udev was receiving some events (due to e.g. swapoff) on shutdown that caused it to fork new processes. These then receivde TERM before they could finish, and complained on the console. In principle, I'm worried that, with the right ammonut of bad luck, we could fork off some process at exactly the wrong time which escapes the killall logic. This, by the way, highlights the frailty of the killall…
Tom Gundersen
bits, bytes, who cares? Signed-off-by: Tom Gundersen <teg@jklm.no>
Tom Gundersen
config: add /etc/vconsole.conf support Read KEYMAP, CONSOLEFONT and CONSOLEMAP from vconsole.conf. If they are set they take precedence over the values in rc.conf. Signed-off-by: Tom Gundersen <teg@jklm.no>
Tom Gundersen
mtab: delete any stale locks This should fix (to the extent possible) #FS26337. Figured-out-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
Tags
2011.10.2
Tom Gundersen
DAEMON_LOCALE: support in the same way as locale.sh We don't have the problem with non-bash shells here, but better make the support uniform.
Tom Gundersen
PKGBUILD: update We now require udev 173, and the manpages use asciidoc.
Sébastien Luttringer
Add rc.d manual page Thanks to Elvis Stansvik <elvstone@gmail.com> for its template. Fix bug: FS#25269 Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
Tags
2011.10.1
Tom Gundersen
locale.sh: support /etc/locale.conf This is mainly to support non-bash shells that cannot source rc.conf. The format of /etc/locale.conf is described here: <http://0pointer.de/public/systemd-man/locale.conf.html>. If LANG is not set in locale.conf, then we fall back to LOCALE from rc.conf, as before. Signed-off-by: Tom Gundersen <teg@jklm.no>
Tom Gundersen
hooks: move shutdown_poweroff before remounting / ro This will make sure the same hook is run regardless of whether you pivot to the shutdown ramfs or not. This is in order to run apcupsd --killpower as pointed out by Gerardo. Signed-off-by: Tom Gundersen <teg@jklm.no>
Tags
2011.09.2
Tom Gundersen
rc.conf: disable hwclock and netfs by default These are only useful to a minority of users. Signed-off-by: Tom Gundersen <teg@jklm.no>
Dave Reisner
respect the user's choice for /etc/localtime This can be a symlink or a regular file, and rc.sysinit will preserve it as such. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Tom Gundersen
bootlog: clean some more ANSI codes I was getting "^[71G", this fixed it. Signed-off-by: Tom Gundersen <teg@jklm.no>
Tags
2011.09.1
Tom Gundersen
kill: give proper error messages and increase timeout With the new logic we will only wait for the timeout in case of problems, we therefore increase the timeout as this will make problems more obvious. There has been reports of problems with processes not being terminated, but hopefully this should help us reproduce them. Signed-off-by: Tom Gundersen <teg@jklm.no>
  1. Prev
  2. Next