From 9fcd9c15d1d8c4542896da6cc0b6a75d43781fd3 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Sun, 10 Apr 2011 19:11:34 +0200 Subject: Allow initramfs to be completely silent: - Remove ":: Loading initramfs" message - Start udev after command line parsing, so quiet will be respected --- init | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/init b/init index a772e7f..d79dd3d 100644 --- a/init +++ b/init @@ -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" -- cgit v1.2.3-24-g4f1b