Commits

Show all
Author Commit Message Labels Comments Date
Tom Gundersen
network: reword depracation message Make it clear that the message refers to network settings, as some users found this confusing. Signed-off-by: Tom Gundersen <teg@jklm.no>
Tags
2011.07.1
Dave Reisner
arch-tmpfiles: add cmdline parameters Categorize actions as 'create' or 'remove', for finer control. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Dave Reisner
arch-tmpfiles: check args, warn on invalid entries Introduces the checkparams functions, which thoroughly checks arguments for presence, length, and some amount of data validation. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Tom Gundersen
Merge remote-tracking branch 'kujub/master'
Dave Reisner
arch-tmpfiles: add new script to handle volatile file control This is the same concept as systemd's tmpfiles handling, slightly simplified to avoid timed re-triggering of file cleaning. Most of our current file cleaning that takes place in rc.single and rc.sysinit is replaced by this, with the exception that we hold onto the /var/lock and /var/run for finer control, since we still check for the possibility of these directories being symlinks and adjust accor…
Kurt J. Bosch
rc.shutdown: Move 'run_hook shutdown_start' after "Initiating Shutdown..." Rationale Avoid printing any start hook status messages above the head line.
Kurt J. Bosch
rc.sysinit: Move 'run_hook sysinit_start' after mount root read-only Rationale Currently we have to duplicate at least the mount /proc code line into a custom sysinit_start hook to be able to start a splash daemon or something in case no initcpio is used. Moreover we want to make sure nothing can open files read/write on root which would block the read-only remount. So running the sysinit_start hook a bit later appears to be more save.
Kurt J. Bosch
functions: Cosmetics: Refactor usage of local daemon variables
Kurt J. Bosch
Fix/unify quoting The rules should be: * Use quotes when literal strings are involved. * Use quotes when ever using a substitution which might produce blanks as a possitional parameter unless word splitting is intended. * Use quotes on the right hand side within '[[ = ]]' unless pattern matching is intended. * Don't use quotes for substitutions where not needed as in assignments.
Kurt J. Bosch
functions: Unify whitespace inside '(( ))'
Kurt J. Bosch
functions: Remove useless '$' within '(( ))'
Kurt J. Bosch
rc.single: Call remove_leftover() when going single-user This avoids trouble because of stale /run/daemons/* files.
Kurt J. Bosch
functions/rc.sysinit: Refactor 'Removing Leftover Files' code Move it into a function to allow clean error detection of all steps performed and also to be able to reuse this in rc.single.
Kurt J. Bosch
rc.sysinit: Fix /tmp/.* pattern Use correct patterns and get rid of the /dev/null redirection workaround needed when trying to remove '..'.
Kurt J. Bosch
functions: Make in_array() non DAEMONS specific For checking whether a daemon is started via the DAEMONS array we use ck_autostart() now. So make in_array() generic as the name suggests instead of removing '@'-prefixes from array members behind ones back. Suggested-by: Dave Reisner <d@falconindy.com>
Kurt J. Bosch
functions: Use ck_autostart in stop_all_daemons() This is just a bit simpler. in_array() should be fixed to be non daemon specific in a later patch.
Kurt J. Bosch
rc.sysinit: fixup fsck refactoring Revert to using in_array() instead of is_in_array() which actually doesn't exist.
Tom Gundersen
Merge remote-tracking branch 'seblu/master'
Kurt J. Bosch
rc.single: Remove $PATH assignment No need to set $PATH any more now that is in functions
Kurt J. Bosch
rc.sysinit: Simplify /var/run/daemons workaround There are only two possible situations: a) /var/run is a symlink to /run: Conditional result is always 'false' even without checking /var/run/daemons (which doesn't exist). b) /var/run is a directory: Conditional result is always 'true' because any symlink was removed when cleaning /var/run. So following changes can be made: * /var/run/daemons can be removed unconditionally because a symlink does…
Kurt J. Bosch
functions/netfs: Refactor filesystem type lists and $NETFS Currently $NETFS is used only for fsck and mount in rc.sysinit. Since we moved it into functions, we can use it in netfs too to get rid of redundancy. functions: * Move 'nosysfs' from $NETFS into the mount -a type list because thats obviously the only meaningfull place. * Add 'nofuse.glusterfs' to $NETFS to match the lists in netfs. * Remove all 'no'-prefixes from $NETFS to make it more useful an…
Kurt J. Bosch
netfs: Refactor to provide meaningful exit code Get rid of simple if-clauses and provide meaningfull exit code. Maybe someone wants to abort suspend to disk/ram or something if umount fails or even start this in a loop.
Kurt J. Bosch
netfs: Strip paths from binaries We set $PATH in functions now, so use it.
Kurt J. Bosch
netfs: cleanup whitespace
Kurt J. Bosch
functions: Speed up reboot/shutdown by recognizing killall5 exit code 2 killall5 returns 2 if it didn't find any processes to send to. Using this avoids sleeping longer than needed. This saves another up to six seconds of reboot/shutdown/go-single time.
Kurt J. Bosch
functions: Make status() return the actual exit code The exit code returned by the given command might be useful/expected, so don't discard but return it.
Kurt J. Bosch
rc.sysinit: Remove unneeded variables initializations Variables should be empty anyway here.
Kurt J. Bosch
functions/rc.sysinit: Refactor fsck-redirection to prevent breakage $FSCK_OUT/$FSCK_ERR might not be set when: * unset in some custom sysinit_prefsck hook * calling fsck() from a shutdown hook
Kurt J. Bosch
rc.sysinit: Declare $FORCEFSCK read-only This prevents sysinit_prefsck hooks from overwriting the value.
Kurt J. Bosch
Refactor kill_everything, fsck_all and mount_all code Genaral scheme for hook positions is now: run_hook pre_foo if [[$WE_WANT_TO_DO_FOO]]]; then stat_busy "Doing foo" if [[$PRECONDITIONS_FOR_FOO_NOT_SATISFIED]]; then stat_fail else ... stat_done fi fi run hook post_foo rc.sysinit ----------- run_hook pre_foo [[$WE_WANT_TO_DO_FOO]] && status "Doing foo" foo run hook post_foo functions ------------ foo() { [[$PRECO…
  1. Prev
  2. Next