Age | Commit message (Collapse) | Author | Files |
|
When using process substitution with status(), the resulting /dev/fd/* might get lost before it is actualy used. This happens in case a custom stat_busy() forks a subshell.
|
|
Note: The code
status "$text" $command > $file
writes nothing because there's a &>/dev/null within status().
|
|
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
To avoid setting the kernel timezone with an out-of-date /etc/localtime, we pass TZ
directly to hwclock.
Also document how TIMEZONE and HARDWARECLOCK are optional in rc.conf
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This is a cleanup of a commit 171da3d. We get errors because /tmp/. and /tmp/.. cannot
be deleted on boot. Send them to /dev/null.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
|
|
|
|
rc.single changes (when coming from multi-user):
* avoid settling UDev quietly as in rc.sysinit
* modules defined in rc.conf are loaded if missing
* minilogd is started before udevd as in rc.sysinit
rc.sysinit behaviour is unchanged
|
|
|
|
|
|
|
|
|
|
|
|
Error/stat_fail when $TIMEZONE is invalid instead of skipping silently.
|
|
|
|
|
|
|
|
|
|
In case loading modules enables a frambuffer with higher resolution than the
standard 80 columns, we recalculate the number of columns after all modules
have been loaded.
Original-patch-by: Aaron Griffin <aaronmgriffin@gmail.com>
Original-patch-by: Søren Poulsen <nikorpoulsen@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
In some cases is good to know when rc.sysinit is going to use /usr
See FS#24712
Signed-off-by: jofko <joffko@gmail.com>
[tomegun: added comment to 'functions' and changed name of hook]
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Although silly, this would positively match something such as
USRBTRFS=deadeyes
Instead, enumerate the match as a simple glob.
Signed-off-by: Dave Reisner <d@falconindy.com>
|
|
This is some unfinished business from our removal of load-modules.sh.
We call modprobe with -ab for the contents of the MODULES array, which
should no longer contain ! prefixed module names. --quiet is explicitly
ommitted, as users should be aware of any errors that might occur here.
Signed-off-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This allows us to ignore the hostname utility, whose home is currently in flux.
Suggested-by: Thomas Bächler <thomas@archlinux.org>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Conflicts:
rc.single
rc.sysinit
Mostly trivial conflicts with Dave's path purging
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This has been removed from the udev package, so this code would never
be executed. Can finally be removed.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This allows HARDWARECLOCK to be removed from rc.conf, if you want to
rely on /var/lib/hwclock/adjtime (or wherever the file ends up in the
future). It assumes the relevant path is on the rootfs.
Furthermore, we can assume (since kernel2.6.??) that the rtc modules
set the time from rtc themselves, so our job is just to adjust the tz.
(FWIW, this coincides with what systemd does).
To get the old behavior of not touching the rtc, set it to anything
anything else.
We should probably have chosen a syntax for this, like IGNORE. Maybe
another time...
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|
|
If settle finishes too early, we want to know as some needed devices might not
yet have been enumerated. Do not pass --quiet.
Do not check for running udev before doing trigger/settle. Worst case, if someone
does not have udev (which is not supported), they will see some extra status lines,
but boot will still continue.
Lastly, remove obvious comments (they were repeating the status message in the line
below).
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Since we're declaring a PATH anyways, we may as well use it. This gives
us immunity against binaries moving around, as in the recent case of
iproute2. A few other minor, associated, tweaks to go along with this:
* any -x tests are modified to use 'type -P' to resolve the path before
checking for execute permission
* any pidof checks are stripped of paths as well.
|
|
Conflicts:
rc.sysinit
Conflict with ip move away from /usr
|
|
The move to iproute2 broke the setup of loopback for users having
a separate /usr, as it was not monuted before /usr/bin/ip was called.
Together with iprouet2-2.6.38-3, this fixes the problem by using
/sbin/ip instead.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Dave Reisner <d@falconindy.com>
|
|
Signed-off-by: Dave Reisner <d@falconindy.com>
|
|
We already have /tmp and /dev/shm as world writeable directories with
exec permissions, so it doesn't necessarily make sense to inhibit exec
here. There also might be use cases where running one-off programs from
/run might make sense.
Signed-off-by: Dave Reisner <d@falconindy.com>
|
|
Upstream already supports this via the loglevel= parameter on the kernel
cmdline, so we should support using this instead of our own homegrown
solution.
Signed-off-by: Dave Reisner <d@falconindy.com>
|
|
This is as part of deprecating net-tools. nisdoaminname has been moved to
yp-tools, and the location of the config file has changed. When using ypbind
the doaminname is set as part of the rc script. If needed for other purposes
a new rc script should be added.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Commit d8796827 introduced a minor bug, this fixes it.
We alse add some indentation to avoid future confusion.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This reverts commit 99d64f5789f01243903be4b32078ec38bdce75fa.
We decided not to provide a compatibility layer, but rather require
the user to create blacklist files in /etc/modprobe.d manually.
Hence, this is no longer needed.
The reason was that the compatibliy would not be 1-to-1, so it might
be missleading to pretend that it was. Also, most people should not
need the blacklisting in the first place.
Conflicts:
Makefile
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
|
|
Provide large warnings when net-tools functionality is used. Add
documentation in rc.conf for the new iproute2 based config.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This patch improve coloring in light and transparent term.
It uses tput if available or default color code.
It remplace \033 by \e. It's a kind of rollback from commit 65f410,
because initscripts are now in bash, and argument
"\e isn't recongized in all shells" is not an issue anymore.
This is not done in locale.sh script which can be sourced by others shell,
so we try to be the more compliant as possible
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
eda191cf78365cc3d1 inadvertently introduced a change so that /tmp was not cleared if it was a mountpoint. This restores the old behaviour.
It is strongly adviced to not monut anything but a tmpfs on /tmp. This would avoid the issue.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
udev will read /etc/modprobe.d/*.conf and blacklist all modules that are listed as
blacklist <module>
We parse rc.conf at boot and generate such a .conf file. It cannot be written to
/etc this early, so we save it to /run. A symlink exists in /etc to get the desired
functionality.
With this patch (and an analogous one in mkinitcpio) load-modules.sh can be removed
from the udev package without loss of significant functionality.
Setting MOD_AUTOLOAD will then no longer take effect, nor will kernel parameters.
Thouhgh, kernel parameters might still affect the initramfs as the implementation
is independent.
Original-idea-by: Benjamen Richer <br@waldteufel-online.net>
Based-on-patch-by: David Reisner <d@falconindy.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
This did not work if the folder existed already. Rather than overwriting the folder with a symlink, the symlink was placed in the folder.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|