Commits

Show all
Author Commit Message Labels Comments Date
Tom Gundersen
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>
Tags
2011.12.1
Tom Gundersen
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>
Tom Gundersen
Merge remote-tracking branch 'falconindy/master'
Tom Gundersen
/run: move /var/{run,lock} to /run/{,lock} 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>
Dave Reisner
locale.sh: unset LANG before sourcing {locale,rc}.conf 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>
Tom Gundersen
do not limit size on API fs 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>
Dave Reisner
rc.sysinit: force linking of /etc/mtab to /proc/self/mounts 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>
Dave Reisner
functions: read from /etc/mtab in umount_all 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 Gund…
djpohly
hooks: add shutdown_preumount hook 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 Gunders…
Tom Gundersen
fsck: skip remounting / fsck'ing the root fs 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 Gund…
Tom Gundersen
Makefile: automate release a bit more Automaticall push the tarball to both gerolde and pkgbuild.com. Signed-off-by: Tom Gundersen <teg@jklm.no>
Gerardo Exequiel Pozzi
minilogd: last kill! Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Tags
2011.11.3
Tom Gundersen
locale.sh: remove leftovers We were in certain situations still writing to locale.sh. While it would not have caused any harm, it was unintended and now removed. This change means that locale.sh will no longer load the consolemap. This would only be useful if it had been reset accidentally, and logging in again would then fix a broken console. The issue is described in FS#18759. It is not clear to me if this is still an iss…
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
  1. Prev
  2. Next