diff --git a/package/base/rockinitrd/init b/package/base/rockinitrd/init index 5ccb00146..031c55162 100644 --- a/package/base/rockinitrd/init +++ b/package/base/rockinitrd/init @@ -50,6 +50,8 @@ mount -n -t proc proc /proc || echo "Can't mount procfs!" mount -n -t sysfs sysfs /sys || echo "Can't mount sysfs!" mount -n -t ramfs ramfs /dev || echo "Can't mount ramfs!" +/sbin/depmod -ae + cp -r /lib/udev/devices/* /dev echo "" > /proc/sys/kernel/hotplug diff --git a/package/base/rockinitrd/initrd_base.txt b/package/base/rockinitrd/initrd_base.txt index e48b5e0e3..ee5264772 100644 --- a/package/base/rockinitrd/initrd_base.txt +++ b/package/base/rockinitrd/initrd_base.txt @@ -16,6 +16,7 @@ /sbin/udevsettle /sbin/udevsettle /sbin/udevd /sbin/udevd /sbin/modprobe /sbin/modprobe +/sbin/depmod /sbin/depmod /etc/udev /etc/udev /lib/udev /lib/udev /etc/hotplug.d /etc/hotplug.d diff --git a/target/bootdisk/build_stage1.sh b/target/bootdisk/build_stage1.sh index 45327af5d..f90876b52 100644 --- a/target/bootdisk/build_stage1.sh +++ b/target/bootdisk/build_stage1.sh @@ -95,7 +95,6 @@ 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}