From 84e9a0558e836a68be7fb1bcc755a1d48f0ab550 Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Sat, 3 Feb 2007 02:01:59 +0000 Subject: [PATCH] Stefan Fiedler: rockinitrd: apply same fix for module autoloading as in the bootdisk target target/bootdisk: remove junk line from previous patch [2007013018482719268] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8201 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/rockinitrd/init | 2 ++ package/base/rockinitrd/initrd_base.txt | 1 + target/bootdisk/build_stage1.sh | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) 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}