diff --git a/sys-kernel/debian-sources/Manifest b/sys-kernel/debian-sources/Manifest index f9f6b2d..eb89f1b 100644 --- a/sys-kernel/debian-sources/Manifest +++ b/sys-kernel/debian-sources/Manifest @@ -1,7 +1,6 @@ DIST linux-6.1.162.tar.xz 135402204 BLAKE2B 896f671313ba243cbd11c96a474599c51c779838404f730d2bfa8ed504b3853bfb7dbf0a597c24a1f300ca7fdf828a94036c888266abc5b52e33eebc60132ce6 SHA512 4c07fbc875941d969417361029001ac436e20f45bf30761101645a483a1872958aebae7aa27c27f66f9f95ace629c9313d96949fa8094fd7caeb1bde6ec39d13 DIST linux-6.1.164.tar.xz 135378304 BLAKE2B 2533f05c81486b563ec7959e3434eff699fb59be43bb5c2c5c2a831482238c29648b85f8204bb067248135025e81aefc515bc69b3ddb13955b3d1a42997c6adf SHA512 a91b3859a1b1019e86efde206eae8253683cf4ec2c8aa261c47c66180d719482d4777ba75b57530a187ae87641e2544894d1db0c1a0a276d063f3a2279c26baa DIST linux-6.1.170.tar.xz 135436044 BLAKE2B 70c62807f6d97c945f8cbe24058b5ab02ad5dc98ba865dec68ece96e4620f9c9fa7b624f4532451277d3cce0afe2a8d50fc1852ded2ef3066d20c5ab90316d05 SHA512 c49bca145a57d42fcf4b89b7500868f829910059195b07648de95afeb2d7ca5b080adcb4acc5eda4dc711ff2e914727cb010da87d266106ce006f4014adfdd3d -DIST linux-6.12.73.tar.xz 148198508 BLAKE2B 344395dff181769ee0bc782ed6a781bfa073c10f8027a4d5a73a84680742d40616646ea8aa04e6564d2f47ad330811ade7d955d570796dd0b3c3bc642c8ebd28 SHA512 d0cba5af9ae432a43b0d8fcad6244650101829b0ef633c73f08f9fe31fd7645f9ccb29194603b5284799ab0339761d813d6c45e087a8ee7442d7516ec87e2177 DIST linux-6.12.74.tar.xz 148229948 BLAKE2B 702eee7dd67c6d090d3340138c2f3ed40d5eb54b59d5d9e2706cfafe97a44ac17cdd65adbcb12a3d0871431bd19df7bc91ae72c348bc6c8d74b59cc0e1ef2308 SHA512 7a9a28345146a570720722344571a77b976f6f04c782ab31d82c3af2ed9d222a026a20c868eb2b2c086d47b4f48fed27cf69f34c94578481da1f97aa9e517cee DIST linux-6.12.86.tar.xz 148255976 BLAKE2B 79b33470d1a115e19a29fc9dc6ab450029584e7656976a5a09c5e2d8aebcdcc1bb7f5980d7fa28fab7775a20f572afb60b3ca0ef44f35ada726fe0e5ccd6c037 SHA512 02c377c66ad4f418474e9e0fb73adc96591716f407d3678d1c3ae4a8695747df19e660352ab9dba02628afadbddca54523b6adb8d17f563ba40cf1d236e89a4c DIST linux-6.19.11.tar.xz 156159916 BLAKE2B 7304717954b8ad9eec54071d28d2d6c9af108d2c84686cee9b401e38078d4b39810541a854e458c85349de10959d96edb2ba7e38b0e0a7ebc46949e69e7816b3 SHA512 d458fdf65f08b501978d1e274c777633b8473628fb099e2a9a8aac3a943b157fa5132a8ec026cc242f836eb2c441701b5e342f30402d10b12f6759097775de2a @@ -10,7 +9,6 @@ DIST linux-6.19.14.tar.xz 156141352 BLAKE2B 64c2a0003d8080f268772d36923ff6ef8b2d DIST linux_6.1.162-1.debian.tar.xz 1812632 BLAKE2B 680cfdd2f755260f52850835e237ab5f036af80e8fa47ce29e8736f2826a1837aa4889e6184116e3bad61e7221d326d3b9f11cfdd40ffbf1231b4172031bf2f2 SHA512 0fd46bad050bfd5ce312e409b4f7708f2188e634278ef78ea38becdc8f91a408384777e90beee3cf68d531496f9136d5f34702dc648f087d46343096bfca1c94 DIST linux_6.1.164-1.debian.tar.xz 1830072 BLAKE2B 2c73b0ce6df6fef7fe82795840120bc98a36c0e8d6dedba1379acac79405f988faccfb07c1def789555733fcdae611332f8a308755de53a592c8e7b13ae88c66 SHA512 781ce2a6b00ea2180f5f450db37a0adecf71d2fc2d73059e22ccade37de2f895bedf008ffe2e5c002c01e76dc26b361446562bf386299be392c16252ca92e7c7 DIST linux_6.1.170-1.debian.tar.xz 1837236 BLAKE2B 31941f98a0a1a16d3b728d488cbcd5402f8c089d1bf40746452f6e2f676c27727eb51ae4c9a2022583479f112e3357535a7a85049a96a750be5cbcf59da8683b SHA512 1dad04429ba2ceb1ddc9e64b45250ce46f4b9f9f4df28b0748ff74d1ec5015bf6831b9bae426b66b4344bafe2d3a42985864a6db15bf9dae1a4bd582254723af -DIST linux_6.12.73-1.debian.tar.xz 1768260 BLAKE2B f47552ad004096374e97f988a8ff1003cc5bd7ecc0c25ea06d467360f27a3e687d3fb14117e57161bf6932e929c25d2c5de76b4098dc677c84c552cd26a9aea7 SHA512 5a16972d3cd0ce3ba9b06707b095abc5319adba7693129366b877569662189c178f2ad9a466892d6a5db21573dbd9f71914b3ead23200923d5f4beb122fe369c DIST linux_6.12.74-2.debian.tar.xz 1783784 BLAKE2B 5d0bd6e9d1d47d29ee9b146d6ded5a2b4aaf3819599e387389429526368baffae92272a6a380e1371859c1839a1f89f72b10cadbb2041245d8d44ad00b4c610b SHA512 eb2724656beca90db4c4f7a5e095f552a14ad1be2cfc0993c6fd35e373d020d29ef7e1cb505c1a903e007767ec4da96541048e32104d25f5e2488f9f7e3d9cce DIST linux_6.12.86-1.debian.tar.xz 1812972 BLAKE2B 44179c8e5dce791197104c1a4b003ae8a30f7798674acc0a96a218c8b859c0cf08b396cc8d2b92159791c75cc6ab47225bb3040f8e190ded8ccfa9453df59925 SHA512 3c5088a82d18afc0e05f6b127629af96bb9da2f5be3d9ed9b6d8daf9906e79beff622effb1e4dd498b458f68c1f707294d96311e157b3dcc89c750dad0c9728f DIST linux_6.19.11-1.debian.tar.xz 1485108 BLAKE2B 3b5f427acc13025a82e7da65ca3e3efc7889ac78b97bc50201a3ee8be68f8f7a5d39e13132dfcaee976e7060707d2f211d7accdb7b2a4c1f58f99d4802e30f1f SHA512 ffa9ad9dcdbd2579e22dda87480c30dff3c6725682db14d3549ced575d3f9ce1ac387015b63c94b0168748356f4100e2189895eb21c69f709e7b5d84189de13e diff --git a/sys-kernel/debian-sources/debian-sources-6.12.73_p1-r200.ebuild b/sys-kernel/debian-sources/debian-sources-6.12.73_p1-r200.ebuild deleted file mode 100644 index 0a6a182..0000000 --- a/sys-kernel/debian-sources/debian-sources-6.12.73_p1-r200.ebuild +++ /dev/null @@ -1,428 +0,0 @@ -# Distributed under the terms of the GNU General Public License v2 -# Created by MARK Devkit - -EAPI=6 - -inherit check-reqs eutils ego savedconfig - -SLOT=trixie/6.12.73_p1 - -# NOTE: When updating: use the version from Debian testing (trixie) -# https://packages.debian.org/trixie/linux-source -DEB_PATCHLEVEL="1" -KERNEL_TRIPLET="6.12.73" - -# like "_p1-r1" -#VERSION_SUFFIX="_p${DEB_PATCHLEVEL}" -if [ ${PR} != "r0" ]; then - REVISION_SUFFIX+="-${PR}" -fi - -MACARONI_KTYPE="debian" -MACARONI_KSUFFIX="debian${DEB_PATCHLEVEL}-mark" -# like "-r1-debian1-mark" -EXTRAVERSION="${REVISION_SUFFIX}-${MACARONI_KSUFFIX}" -# like "6.12.38-r1" -MACARONI_KVER="${KERNEL_TRIPLET}${REVISION_SUFFIX}" -# like "6.12.38-r1-debian1-mark" -# same as ${KERNEL_TRIPLET}${EXTRAVERSION} -MOD_DIR_NAME="${KERNEL_TRIPLET}${REVISION_SUFFIX}-${MACARONI_KSUFFIX}" - -# install sources to /usr/src/$LINUX_SRCDIR -LINUX_SRCDIR=linux-${PF} -DEB_PV="${KERNEL_TRIPLET}-${DEB_PATCHLEVEL}" - -RESTRICT="binchecks strip" -LICENSE="GPL-2" -KEYWORDS="*" -IUSE="acpi-ec binary btrfs custom-cflags dracut ec2 +logo luks lvm mdadm savedconfig sshd sign-modules zfs -" - -RDEPEND="sys-apps/gawk -dracut? ( - sys-apps/whip-catalog - sys-kernel/dracut - virtual/dracut-mark -) -" -DEPEND="virtual/libelf -btrfs? ( sys-fs/btrfs-progs ) -zfs? ( sys-fs/zfs ) -luks? ( sys-fs/cryptsetup ) -lvm? ( sys-fs/lvm2 ) -mdadm? ( sys-fs/mdadm ) -" -REQUIRED_USE="binary? ( - ^^ ( dracut ) - btrfs? ( dracut ) - mdadm? ( dracut ) - luks? ( dracut ) - lvm? ( dracut ) - sshd? ( dracut ) -) -sshd? ( binary ) -" - -DESCRIPTION="Debian Sources (and optional binary kernel)" -HOMEPAGE="https://packages.debian.org/unstable/kernel/" -SRC_URI=" -https://deb.debian.org/debian/pool/main/l/linux/linux_6.12.73-1.debian.tar.xz -> linux_6.12.73-1.debian.tar.xz -https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.12.73.tar.xz -> linux-6.12.73.tar.xz" -S="$WORKDIR/linux-${KERNEL_TRIPLET}" - - -get_patch_list() { - [[ -z "${1}" ]] && die "No patch series file specified" - local patch_series="${1}" - while read line ; do - if [[ "${line:0:1}" != "#" ]] ; then - echo "${line}" - fi - done < "${patch_series}" -} - -tweak_config() { - einfo "Setting $2=$3 in kernel config." - sed -i -e "/^$2=/d" $1 - echo "$2=$3" >> $1 -} - -setno_config() { - einfo "Setting $2*=y to n in kernel config." - sed -i -e "s/^$2\(.*\)=.*/$2\1=n/g" $1 -} - -setyes_config() { - einfo "Setting $2*=* to y in kernel config." - sed -i -e "s/^$2\(.*\)=.*/$2\1=y/g" $1 -} - -zap_config() { - einfo "Removing *$2* from kernel config." - sed -i -e "/$2/d" $1 -} - -get_vendor() { - vendor_string=$(grep vendor /proc/cpuinfo | uniq | cut -d ':' -f 2) - vendor=$([[ ${vendor_string^^} =~ (INTEL)|(AMD) ]] && echo ${BASH_REMATCH[0]}) - echo $vendor -} - -pkg_pretend() { - # Ensure we have enough disk space to compile - if use binary ; then - CHECKREQS_DISK_BUILD="6G" - check-reqs_pkg_setup - echo "binary" - fi -} - -get_certs_dir() { - # find a certificate dir in /etc/kernel/certs/ that contains signing cert for modules. - for subdir in $PF $P linux; do - certdir=/etc/kernel/certs/$subdir - if [ -d $certdir ]; then - if [ ! -e $certdir/signing_key.pem ]; then - eerror "$certdir exists but missing signing key; exiting." - exit 1 - fi - echo $certdir - return - fi - done -} - -pkg_setup() { - export REAL_ARCH="$ARCH" - unset ARCH; unset LDFLAGS #will interfere with Makefile if set - export FEATURESET="standard" -} - -src_prepare() { - default - for debpatch in $( get_patch_list "${WORKDIR}/debian/patches/series" ); do - epatch -p1 "${WORKDIR}/debian/patches/${debpatch}" - done - - # do not include debian devs certificates - rm -rf "${WORKDIR}"/debian/certs - - # remove references to debian uefi certs - sed -i -e 's|\${CURDIR}\/debian\/certs\/debian-uefi-certs\.pem||g' "${WORKDIR}"/debian/rules.gen - - sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile || die - sed -i -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' Makefile || die - rm -f .config >/dev/null - cp -a "${WORKDIR}"/debian "${T}" - make -s mrproper || die "make mrproper failed" - cd "${S}" || die - cp -aR "${WORKDIR}"/debian "${S}"/debian - - # patches common to all kernel versions - epatch "${FILESDIR}"/latest/ikconfig.patch || die - epatch "${FILESDIR}"/latest/mcelog.patch || die - - # patches for this particular branch - epatch "${FILESDIR}"/6.1.79+/more-ISA-levels-and-uarches-for-kernel-6.1.79+.patch || die - - if use savedconfig; then - einfo Restoring saved .config ... - restore_config .config - else - cp "${FILESDIR}"/config-extract-6.6 ./config-extract || die - chmod +x config-extract || die - fi - - # Set up arch-specific variables and this will fail if run in pkg_setup() - # since ARCH can be unset there: - if [ "${REAL_ARCH}" = x86 ]; then - export DEB_ARCH="i386" - export DEB_SUBARCH="686-pae" - export KERN_ARCH="i686" - elif [ "${REAL_ARCH}" = amd64 ]; then - export DEB_ARCH="amd64" - export DEB_SUBARCH="amd64" - export KERN_ARCH="x86_64" - else - die "Architecture '${REAL_ARCH}' not handled in ebuild" - fi - # like "debian-x86_64-6.12.38-r1-debian1-mark" - export KERN_SUFFIX="${MACARONI_KTYPE}-${KERN_ARCH}-${MACARONI_KVER}-${MACARONI_KSUFFIX}" - - if ! use savedconfig; then - ./config-extract ${DEB_ARCH} ${FEATURESET} ${DEB_SUBARCH} || die - fi - - setno_config .config CONFIG_DEBUG - if use acpi-ec; then - # most fan control tools require this - tweak_config .config CONFIG_ACPI_EC_DEBUGFS m - tweak_config .config CONFIG_DEBUG_FS y - fi - if use ec2; then - setyes_config .config CONFIG_BLK_DEV_NVME - setyes_config .config CONFIG_XEN_BLKDEV_FRONTEND - setyes_config .config CONFIG_XEN_BLKDEV_BACKEND - setyes_config .config CONFIG_IXGBEVF - fi - if use logo; then - cp "${FILESDIR}"/latest/macaroni-os_logo_clut224.ppm "$S"/drivers/video/logo/logo_linux_clut224.ppm || die - tweak_config .config CONFIG_LOGO y - ewarn "Linux kernel frame buffer boot logo is now enabled with a custom MacaroniOS pixmap." - ewarn "The new logo can be viewed at /usr/src/linux/drivers/video/logo/logo_linux_clut224.ppm" - ewarn "Remove the quiet kernel parameter (from params in /etc/boot.conf, and re-run boot-update)." - ewarn "This will ensure the custom kernel logo is displayed during boot over frame buffer." - ewarn "" - fi - if use sign-modules; then - certs_dir=$(get_certs_dir) - echo - if [ -z "$certs_dir" ]; then - eerror "No certs dir found in /etc/kernel/certs; aborting." - die - else - einfo "Using certificate directory of $certs_dir for kernel module signing." - fi - echo - # turn on options for signing modules. - # first, remove existing configs and comments: - zap_config .config CONFIG_MODULE_SIG - # now add our settings: - tweak_config .config CONFIG_MODULE_SIG y - tweak_config .config CONFIG_MODULE_SIG_FORCE n - tweak_config .config CONFIG_MODULE_SIG_ALL n - tweak_config .config CONFIG_MODULE_SIG_HASH \"sha512\" - tweak_config .config CONFIG_MODULE_SIG_KEY \"${certs_dir}/signing_key.pem\" - tweak_config .config CONFIG_SYSTEM_TRUSTED_KEYRING y - tweak_config .config CONFIG_SYSTEM_EXTRA_CERTIFICATE y - tweak_config .config CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE 4096 - echo "CONFIG_MODULE_SIG_SHA512=y" >> .config - ewarn "This kernel will ALLOW non-signed modules to be loaded with a WARNING." - ewarn "To enable strict enforcement, YOU MUST add module.sig_enforce=1 as a kernel boot" - ewarn "parameter (to params in /etc/boot.conf, and re-run boot-update.)" - ewarn "" - else - tweak_config .config CONFIG_MODULE_SIG n - fi - if use custom-cflags; then - MARCH="$(python3 -c "import portage; print(portage.settings[\"CFLAGS\"])" | sed 's/ /\n/g' | grep "march")" - - if [ -n "$MARCH" ]; then - if [[ $MARCH =~ (native) ]] && [[ -n $(get_vendor) ]]; then - einfo "Detected -march=native on $(get_vendor)" - CONFIG_MARCH=CONFIG_MNATIVE_$(get_vendor) - else - CONFIG_MARCH="$(grep -m 1 -e "${MARCH}" -B 1 arch/x86/Makefile | sort -r | grep -m 1 -o CONFIG_\[^\)\]* )" - fi - - if [ -n "${CONFIG_MARCH}" ]; then - einfo "Optimizing kernel for ${CONFIG_MARCH}" - tweak_config .config CONFIG_GENERIC_CPU n - tweak_config .config "${CONFIG_MARCH}" y - else - ewarn "Could not find optimized settings for $MARCH, compiling generic kernel." - fi - fi - fi - # build generic CRC32C module into kernel, to defeat FL-11913 - # (cannot mount ext4 filesystem in initramfs if created with recent e2fsprogs version) - tweak_config .config CONFIG_CRYPTO_CRC32C y - - # disable module compression until the initramfs plays nicely with it - tweak_config .config CONFIG_MODULE_COMPRESS n - tweak_config .config CONFIG_MODULE_COMPRESS_XZ n - tweak_config .config CONFIG_MODULE_COMPRESS_GZIP n - tweak_config .config CONFIG_MODULE_COMPRESS_ALL n - tweak_config .config CONFIG_MODULE_COMPRESS_NONE y - - # get config into good state: - yes "" | make oldconfig >/dev/null 2>&1 || die - cp .config "${T}"/config || die - make -s mrproper || die "make mrproper failed" -} - -src_compile() { - ! use binary && return - install -d "${WORKDIR}"/build - cp "${T}"/config "${WORKDIR}"/build/.config || die "couldn't copy kernel config" - make ${MAKEOPTS} O="${WORKDIR}"/build bzImage || die "kernel build failure" - make ${MAKEOPTS} O="${WORKDIR}"/build modules || die "modules build failure" -} - -src_install() { - # copy sources into place: - dodir /usr/src - cp -a "${S}" "${D}"/usr/src/${LINUX_SRCDIR} || die - cd "${D}"/usr/src/${LINUX_SRCDIR} - # prepare for real-world use and 3rd-party module building: - make mrproper || die - cp "${T}"/config .config || die - cp -a "${T}"/debian debian || die - - # if we didn't compile a kernel, we're done. The kernel source tree is left in - # an unconfigured state - you can't compile 3rd-party modules against it yet. - use binary || return - make ${MAKEOPTS} O="${WORKDIR}"/build INSTALL_MOD_PATH="${D}" modules_install || die "modules install failure" - insinto /boot - newins ${WORKDIR}/build/arch/x86/boot/bzImage "vmlinuz-${KERN_SUFFIX}.tmp" - newins ${WORKDIR}/build/System.map "System.map-${KERN_SUFFIX}.tmp" - newins ${WORKDIR}/build/.config "config-${KERN_SUFFIX}.tmp" - make prepare || die - make scripts || die - # FL-8004: In Linux 5.10, module.lds is generated by 'modules_prepare', - # so we need to run it as well to be able to compile modules - make modules_prepare || die - - # module symlink fixup: - rm -f "${D}"/lib/modules/*/source || die - rm -f "${D}"/lib/modules/*/build || die - cd "${D}"/lib/modules - local moddir="$(ls -d [1-9]*)" - ln -s /usr/src/${LINUX_SRCDIR} "${D}"/lib/modules/${moddir}/source || die - ln -s /usr/src/${LINUX_SRCDIR} "${D}"/lib/modules/${moddir}/build || die - # Fixes FL-14 - cp "${WORKDIR}/build/System.map" "${D}/usr/src/${LINUX_SRCDIR}/" || die - cp "${WORKDIR}/build/Module.symvers" "${D}/usr/src/${LINUX_SRCDIR}/" || die - if use sign-modules; then - # TODO FIXME: check for compressed modules. - find "${D}"/lib/modules -iname *.ko -exec ${WORKDIR}/build/scripts/sign-file sha512 $certs_dir/signing_key.pem $certs_dir/signing_key.x509 {} \; || die - # install the sign-file executable for future use. - exeinto /usr/src/${LINUX_SRCDIR}/scripts - doexe ${WORKDIR}/build/scripts/sign-file - fi - # The following line associates the .tmp dir with this package, so that - # when the package is uninstalled, the modules are not removed. - # Otherwise, modules for the current running kernel might be erased! - mv "${D}"/lib/modules/${MOD_DIR_NAME}{,.tmp} -} - -pkg_postinst() { - # Ensure that /boot is mounted in this phase - ego_pkg_preinst - - # Prevent kernel and modules erasure during upgrade. - if use binary; then - # first rename the initramfs - if use savedconfig; then - if [[ -f "/boot/initramfs-${KERN_SUFFIX}" ]]; then - mv /boot/initramfs-${KERN_SUFFIX}{,.old} || die - fi - fi - # then rename everything else, and copy the new files into place - for i in {vmlinuz,System.map,config}; do - if [[ -f "/boot/$i-${KERN_SUFFIX}" ]]; then - # USE=savedconfig means the config might have changed! - # In that case, keep the old kernel around, for safety. - if use savedconfig; then - if [[ -f /boot/$i-${KERN_SUFFIX}.old ]]; then - rm /boot/$i-${KERN_SUFFIX}.old - fi - einfo "Preserving: mv /boot/$i-${KERN_SUFFIX}{,.old}" - mv /boot/$i-${KERN_SUFFIX}{,.old} || die - else - rm /boot/$i-${KERN_SUFFIX} || die - fi - fi - mv /boot/$i-${KERN_SUFFIX}{.tmp,} || die - done - if [[ -d "/lib/modules/${MOD_DIR_NAME}" ]]; then - # USE=savedconfig means the config might have changed! - # In that case, keep the old modules around, for safety. - if use savedconfig; then - if [[ -d "/lib/modules/${MOD_DIR_NAME}.old" ]]; then - rm -r /lib/modules/${MOD_DIR_NAME}.old - fi - einfo "Preserving: mv /lib/modules/${MOD_DIR_NAME}{,.old}" - mv /lib/modules/${MOD_DIR_NAME}{,.old} || die - else - rm -r /lib/modules/${MOD_DIR_NAME} || die - fi - fi - mv /lib/modules/${MOD_DIR_NAME}{.tmp,} || die - fi - - # Finally, generate a new initramfs with dracut, via whip - # NOTE: For now, the initramfs is generic. - if use binary && use dracut; then - dracut_modules_pre=" - $(use lvm && echo lvm) - $(use luks && echo crypt) - $(use mdadm && echo mdraid) - $(use btrfs && echo btrfs) - $(use sshd && echo sshd) - " - dracut_drivers_pre=" - $(use luks && echo dm-crypt) - " - DRACUT_ADD_MODULES="$(echo ${dracut_modules_pre} | xargs)" \ - DRACUT_ADD_DRIVERS="$(echo ${dracut_drivers_pre} | xargs)" \ - KVER="${KERN_ARCH}-${MACARONI_KVER}" \ - KTYPE="${MACARONI_KTYPE}" \ - KSUFFIX="${MACARONI_KSUFFIX}" \ - KMODDIR="/lib/modules/$MOD_DIR_NAME" \ - whip h initramfs.generate_with_dracut || die - fi - - if use binary && [[ -h "${ROOT}"usr/src/linux ]]; then - rm "${ROOT}"usr/src/linux || die - fi - - if use binary && [[ ! -e "${ROOT}"usr/src/linux ]]; then - ewarn "With binary use flag enabled /usr/src/linux" - ewarn "symlink automatically set to debian kernel" - ewarn "If you have external modules, don't forget to rebuild them with:" - ewarn "" - ewarn " emerge @module-rebuild" - ewarn "" - ln -sf ${LINUX_SRCDIR} "${ROOT}"usr/src/linux || die - fi - - if [ -e ${ROOT}lib/modules ]; then - depmod -a $MOD_DIR_NAME || die - fi - - # Update bootloader and unmount /boot - ego_pkg_postinst -} - -# vim: syn=ebuild noet ts=4