Removed runUdev, since we no longer use it.

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@581 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Chris Gianelloni 17 years ago
parent 37ef3eb473
commit 2df80062d6

@ -2,6 +2,10 @@
# Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $Header: $
02 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
generic/initrd.defaults, generic/initrd.scripts:
Removed runUdev, since we no longer use it.
11 Jan 2008; Chris Gianelloni <wolf31o2@gentoo.org> gen_initramfs.sh, 11 Jan 2008; Chris Gianelloni <wolf31o2@gentoo.org> gen_initramfs.sh,
gen_initrd.sh, genkernel: gen_initrd.sh, genkernel:
Fixing a problem where we were copying the busybox binary cache into the Fixing a problem where we were copying the busybox binary cache into the

@ -52,7 +52,7 @@ KV="`uname -r`"
KMAJOR=`echo $KV | cut -f1 -d.` KMAJOR=`echo $KV | cut -f1 -d.`
KMINOR=`echo $KV | cut -f2 -d.` KMINOR=`echo $KV | cut -f2 -d.`
KVER="${KMAJOR}.${KMINOR}" KVER="${KMAJOR}.${KMINOR}"
MISCOPTS='idebug detect' MISCOPTS='debug detect'
if [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -ge '6' ] if [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -ge '6' ]
then then

@ -269,8 +269,8 @@ findnfsmount() {
else else
bad_msg "NFS Mounting failed. Is the path correct ?" bad_msg "NFS Mounting failed. Is the path correct ?"
fi fi
# FIXME: Need to start portmap and the other rpc daemons in order to # FIXME: Need to start portmap and the other rpc daemons in
# FIXME: remount rw. # order to remount rw.
fi fi
fi fi
@ -297,32 +297,6 @@ run_shell() {
/bin/ash /bin/ash
} }
runUdev() {
mount -t tmpfs -o size=100k udev /dev
mkdir /dev/pts
mkdir /dev/shm
echo > /proc/sys/kernel/hotplug
/sbin/udevd --daemon
mkdir -p /dev/.udev/queue
/sbin/udevtrigger
good_msg 'Letting udev process events'
loop=0
while test -d /dev/.udev/queue; do
sleep 1;
test "$loop" -gt 30 && break
loop=$(($loop + 1))
done
good_msg "Udev finished proccsing after $loop iterations"
killall udevd > /dev/null 2>&1
ln -snf /proc/self/fd /dev/fd
ln -snf /proc/self/fd/0 /dev/stdin
ln -snf /proc/self/fd/1 /dev/stdout
ln -snf /proc/self/fd/2 /dev/stderr
ln -snf /proc/kcore /dev/core
}
runmdev() { runmdev() {
# busybox udev replacement # busybox udev replacement
mdev -s mdev -s
@ -379,7 +353,8 @@ crypt_filter() {
} }
whereis(){ whereis(){
# $1 = variable whose value is the path (examples: "REAL_ROOT", "LUKS_KEYDEV") # $1 = variable whose value is the path (examples: "REAL_ROOT",
# "LUKS_KEYDEV")
# $2 = label # $2 = label
# $3 = optional explanations for failure # $3 = optional explanations for failure
@ -431,7 +406,6 @@ start_dev_mgr() {
[ "${DO_slowusb}" ] && sleep 10 [ "${DO_slowusb}" ] && sleep 10
kill_devfsd kill_devfsd
good_msg 'Activating mdev' good_msg 'Activating mdev'
# runUdev
runmdev runmdev
[ "${DO_slowusb}" ] && sleep 20 [ "${DO_slowusb}" ] && sleep 20
cd / cd /

Loading…
Cancel
Save