diff --git a/target/bootdisk/build_stage1.sh b/target/bootdisk/build_stage1.sh index f90876b52..45327af5d 100644 --- a/target/bootdisk/build_stage1.sh +++ b/target/bootdisk/build_stage1.sh @@ -95,6 +95,7 @@ for x in ${rock_targetdir}/initrd/initrd_* ; do fi # if [ -b ${f} -o -c ${f} -o -p ${f} -o -L ${f} ] ; then +# echo "cp -a ${f} ${tfile}" cp -a ${f} ${tfile} # else # cp ${f} ${tfile} diff --git a/target/bootdisk/initrd/initrd_bootdisk b/target/bootdisk/initrd/initrd_bootdisk index f5a9f3eda..0cab08df6 100644 --- a/target/bootdisk/initrd/initrd_bootdisk +++ b/target/bootdisk/initrd/initrd_bootdisk @@ -36,3 +36,10 @@ /usr/sbin/lspci /usr/sbin/lspci /etc/udev etc/udev /lib/udev lib/udev +/bin/ps /bin/ps +/sbin/modinfo /sbin/modinfo +/usr/bin/lsmod /usr/bin/lsmod +/usr/bin/find /usr/bin/find +/usr/sbin/udevmonitor /usr/sbin/udevmonitor +/sbin/rmmod /sbin/rmmod +/sbin/depmod /sbin/depmod diff --git a/target/bootdisk/linuxrc.sh b/target/bootdisk/linuxrc.sh index 6535d5503..049596edb 100644 --- a/target/bootdisk/linuxrc.sh +++ b/target/bootdisk/linuxrc.sh @@ -411,6 +411,8 @@ mount -t proc proc /proc || echo "Can't mount proc on /proc!" mount -t sysfs sysfs /sys || echo "Can't mount sysfs on /sys!" mount -t tmpfs tmpfs /dev || echo "Can't mount a tmpfs on /dev!" +/sbin/depmod -ae + cp -r /lib/udev/devices/* /dev echo "" > /proc/sys/kernel/hotplug