--- dracut-037.ebuild 2014-04-25 04:29:03.059387012 +0400 +++ dracut-037-r1.ebuild 2014-04-25 04:42:49.001896088 +0400 @@ -86,11 +86,19 @@ # ebuild functions # +pkg_pretend() { + local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS" + check_extra_config +} + src_prepare() { epatch "${PATCHES[@]}" local libdirs="/$(get_libdir) /usr/$(get_libdir)" - [[ $libdirs =~ /lib\ ]] || libdirs+=" /lib /usr/lib" + if [ "${SYMLINK_LIB}" = "yes" ] ; then + # Preserve lib -> lib64 synlinks in initramfs + [[ $libdirs =~ /lib\ ]] || libdirs+=" /lib /usr/lib" + fi einfo "Setting libdirs to \"${libdirs}\" ..." sed -e "3alibdirs=\"${libdirs}\"" \ -i "${S}/dracut.conf.d/gentoo.conf.example" || die @@ -186,43 +194,6 @@ } pkg_postinst() { - if linux-info_get_any_version && linux_config_src_exists; then - ewarn "" - ewarn "If the following test report contains a missing kernel" - ewarn "configuration option, you should reconfigure and rebuild your" - ewarn "kernel before booting image generated with this Dracut version." - ewarn "" - - local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS" - - # Kernel configuration options descriptions: - local desc_DEVTMPFS="Maintain a devtmpfs filesystem to mount at /dev" - local desc_BLK_DEV_INITRD="Initial RAM filesystem and RAM disk "\ -"(initramfs/initrd) support" - - local opt desc - - # Generate ERROR_* variables for check_extra_config. - for opt in ${CONFIG_CHECK}; do - opt=${opt#\~} - desc=desc_${opt} - eval "local ERROR_${opt}='CONFIG_${opt}: \"${!desc}\"" \ - "is missing and REQUIRED'" - done - - check_extra_config - echo - else - ewarn "" - ewarn "Your kernel configuration couldn't be checked. Do you have" - ewarn "/usr/src/linux/.config file there? Please check manually if" - ewarn "following options are enabled:" - ewarn "" - ewarn " CONFIG_BLK_DEV_INITRD" - ewarn " CONFIG_DEVTMPFS" - ewarn "" - fi - elog "To get additional features, a number of optional runtime" elog "dependencies may be installed:" elog ""