From: Chris Gianelloni Date: Tue, 4 Mar 2008 00:41:37 +0000 (+0000) Subject: If we have a raid456.ko module, we need to create a raid45.ko symlink since dmraid... X-Git-Tag: v3.4.10.902~142 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f62aa7b1c9947bc858684176529fedfb9477acd2;p=genkernel.git 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. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@610 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/ChangeLog b/ChangeLog index 6c4e0b0..ad37e55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 04 Mar 2008; Chris Gianelloni 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 sparc64/kernel-config, alpha/kernel-config-2.6, ia64/kernel-config-2.6, x86/kernel-config-2.6, x86_64/kernel-config-2.6: diff --git a/gen_initramfs.sh b/gen_initramfs.sh index e80213a..a9ee20f 100644 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -101,6 +101,13 @@ append_dmraid(){ /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/" }