aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2007-11-02 00:37:39 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2007-11-02 00:37:39 +0000
commitd9cffe7d0351ef0f16010fdc76fa34f6d0671638 (patch)
tree17bb5df893daf133e908026be5c71e086af12374 /gen_initramfs.sh
parentFixed device-mapper/man removal for bug #196087, fixed mdadm.conf copying, an... (diff)
downloadgenkernel-d9cffe7d0351ef0f16010fdc76fa34f6d0671638.tar.gz
genkernel-d9cffe7d0351ef0f16010fdc76fa34f6d0671638.tar.bz2
genkernel-d9cffe7d0351ef0f16010fdc76fa34f6d0671638.zip
Reverting the removal of generic/modprobe for bug #197730. This is genkernel 3.4.9_pre6 for testing.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@551 67a159dc-881f-0410-a524-ba9dfbe2cb84
Diffstat (limited to 'gen_initramfs.sh')
-rw-r--r--gen_initramfs.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh
index 8790cd9..852b129 100644
--- a/gen_initramfs.sh
+++ b/gen_initramfs.sh
@@ -384,6 +384,12 @@ append_auxilary() {
done
echo '"' >> "${TEMP}/initramfs-aux-temp/etc/initrd.defaults"
+ if [ -f "${GK_SHARE}/${ARCH}/modprobe" ]
+ then
+ cp "${GK_SHARE}/${ARCH}/modprobe" "${TEMP}/initramfs-aux-temp/sbin/modprobe"
+ else
+ cp "${GK_SHARE}/generic/modprobe" "${TEMP}/initramfs-aux-temp/sbin/modprobe"
+ fi
if isTrue $CMD_DOKEYMAPAUTO
then
echo 'MY_HWOPTS="${MY_HWOPTS} keymap"' >> ${TEMP}/initramfs-aux-temp/etc/initrd.defaults
@@ -413,6 +419,7 @@ append_auxilary() {
chmod +x "${TEMP}/initramfs-aux-temp/init"
chmod +x "${TEMP}/initramfs-aux-temp/etc/initrd.scripts"
chmod +x "${TEMP}/initramfs-aux-temp/etc/initrd.defaults"
+ chmod +x "${TEMP}/initramfs-aux-temp/sbin/modprobe"
cd "${TEMP}/initramfs-aux-temp/"
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
cd "${TEMP}"