git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@610
67a159dc-881f-0410-a524-
ba9dfbe2cb84
# Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 04 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> gen_initramfs.sh:
+ If we have a raid456.ko module, we need to create a raid45.ko symlink since
+ dmraid can be rather stupid. This should resolve bug #195804.
+
04 Mar 2008; Chris Gianelloni <wolf31o2@gentoo.org> sparc64/kernel-config,
alpha/kernel-config-2.6, ia64/kernel-config-2.6, x86/kernel-config-2.6,
x86_64/kernel-config-2.6:
/bin/tar -jxpf "${DMRAID_BINCACHE}" -C "${TEMP}/initramfs-dmraid-temp" ||
gen_die "Could not extract dmraid binary cache!";
cd "${TEMP}/initramfs-dmraid-temp/"
+ RAID456=`find . -type f -name raid456.ko`
+ if [ -n "${RAID456}" ]
+ then
+ cd "${RAID456/raid456.ko/}"
+ ln -sf raid456.kp raid45.ko
+ cd "${TEMP}/initramfs-dmraid-temp/"
+ fi
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
rm -r "${TEMP}/initramfs-dmraid-temp/"
}