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/" }