# Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
# $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,
gen_initrd.sh, genkernel:
Fixing a problem where we were copying the busybox binary cache into the
KMAJOR=`echo $KV | cut -f1 -d.`
KMINOR=`echo $KV | cut -f2 -d.`
KVER="${KMAJOR}.${KMINOR}"
-MISCOPTS='idebug detect'
+MISCOPTS='debug detect'
if [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -ge '6' ]
then
else
bad_msg "NFS Mounting failed. Is the path correct ?"
fi
- # FIXME: Need to start portmap and the other rpc daemons in order to
- # FIXME: remount rw.
+ # FIXME: Need to start portmap and the other rpc daemons in
+ # order to remount rw.
fi
fi
/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() {
# busybox udev replacement
mdev -s
}
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
# $3 = optional explanations for failure
[ "${DO_slowusb}" ] && sleep 10
kill_devfsd
good_msg 'Activating mdev'
-# runUdev
runmdev
[ "${DO_slowusb}" ] && sleep 20
cd /