diff options
author | Thomas Bächler <thomas@archlinux.org> | 2011-04-10 19:11:34 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2011-04-10 19:11:34 +0200 |
commit | 9fcd9c15d1d8c4542896da6cc0b6a75d43781fd3 (patch) | |
tree | 029270dd44551c8d68d97b83edf6f6dfd917a225 | |
parent | d09b04910202a7738d88005dcba98cebbafecec6 (diff) | |
download | mkinitcpio-9fcd9c15d1d8c4542896da6cc0b6a75d43781fd3.tar.gz mkinitcpio-9fcd9c15d1d8c4542896da6cc0b6a75d43781fd3.tar.xz |
Allow initramfs to be completely silent:
- Remove ":: Loading initramfs" message
- Start udev after command line parsing, so quiet will be respected
-rw-r--r-- | init | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -4,7 +4,6 @@ . /init_functions -msg ":: Loading Initramfs" /bin/mount -t proc proc /proc -o nosuid,noexec,nodev /bin/mount -t sysfs sys /sys -o nosuid,noexec,nodev if grep -q devtmpfs /proc/filesystems 2>/dev/null; then @@ -29,17 +28,6 @@ echo "/sbin/modprobe" > /proc/sys/kernel/modprobe # set default mount handler mount_handler="default_mount_handler" -# if available, start udevd at this stage -if [ -x /sbin/udevd ]; then - msg ":: Starting udevd..." - echo > /proc/sys/kernel/hotplug - /sbin/udevd --daemon --resolve-names=never - udevd_running=1 - msg "done." -else - udevd_running=0 -fi - for cmd in ${CMDLINE}; do case "${cmd}" in \#*) break ;; # ignore everything after a # in the commandline @@ -62,6 +50,17 @@ for cmd in ${CMDLINE}; do esac done +# if available, start udevd at this stage +if [ -x /sbin/udevd ]; then + msg ":: Starting udevd..." + echo > /proc/sys/kernel/hotplug + /sbin/udevd --daemon --resolve-names=never + udevd_running=1 + msg "done." +else + udevd_running=0 +fi + if [ -n "${disablehooks}" ]; then for d in $(echo "${disablehooks}" | sed 's|,| |g'); do eval "hook_${d}=disabled" |