From a28e50cebdb15733be98808db7cb96ad4910adc0 Mon Sep 17 00:00:00 2001 From: fake Date: Thu, 13 Jul 2006 14:49:43 +0000 Subject: [PATCH] fake: livecd: mount dev/pts, remove hwscan, too [2006071115345251980] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7729 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- target/livecd/linuxrc.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/target/livecd/linuxrc.sh b/target/livecd/linuxrc.sh index 21c6f3768..ae3db1eb8 100644 --- a/target/livecd/linuxrc.sh +++ b/target/livecd/linuxrc.sh @@ -357,16 +357,6 @@ config_net() { # {{{ ip route echo } # }}} -autoload_modules () { # {{{ - while read cmd mod rest ; do - [ -n "${rest}" ] && continue - [ -z "${cmd}" ] && continue - if [ "${cmd}" == "modprobe" -o "${cmd}" == "insmod" ] ; then - echo "${cmd} ${mod}" - ${cmd} ${mod} 2>&1 >/dev/null - fi - done < <( /bin/gawk -f /sbin/hwscan ) -} # }}} exec_sh() { # {{{ echo "Quit the shell to return to the stage 1 loader!" /bin/sh @@ -402,6 +392,8 @@ export PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH" cp -r /lib/udev/devices/* /dev +mount -t devpts devpts /dev/pts || echo "Can't mount devpts on /dev/pts" + echo "" > /proc/sys/kernel/hotplug /sbin/udevd --daemon @@ -410,8 +402,6 @@ emit_udev_events mod_load_info -autoload_modules - # some devices (scsi...) need time to settle... echo "Waiting for devices to settle..." sleep 5