mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
sys-fs/zfs-kmod: add USE=initramfs, and enable by default
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools dist-kernel-utils flag-o-matic linux-mod-r1 multiprocessing
|
||||
MODULES_INITRAMFS_IUSE=+initramfs
|
||||
inherit autotools flag-o-matic linux-mod-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
|
||||
HOMEPAGE="https://github.com/openzfs/zfs"
|
||||
@@ -64,13 +65,6 @@ PATCHES=(
|
||||
|
||||
pkg_pretend() {
|
||||
use rootfs || return 0
|
||||
|
||||
if has_version virtual/dist-kernel && ! use dist-kernel; then
|
||||
ewarn "You have virtual/dist-kernel installed, but"
|
||||
ewarn "USE=\"dist-kernel\" is not enabled for ${CATEGORY}/${PN}"
|
||||
ewarn "It's recommended to globally enable dist-kernel USE flag"
|
||||
ewarn "to auto-trigger initrd rebuilds with kernel updates"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
@@ -152,10 +146,6 @@ src_install() {
|
||||
pkg_postinst() {
|
||||
linux-mod-r1_pkg_postinst
|
||||
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel ; then
|
||||
dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
fi
|
||||
|
||||
if use x86 || use arm ; then
|
||||
ewarn "32-bit kernels will likely require increasing vmalloc to"
|
||||
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools dist-kernel-utils flag-o-matic linux-mod-r1 multiprocessing
|
||||
MODULES_INITRAMFS_IUSE=+initramfs
|
||||
inherit autotools flag-o-matic linux-mod-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
|
||||
HOMEPAGE="https://github.com/openzfs/zfs"
|
||||
@@ -64,13 +65,6 @@ PATCHES=(
|
||||
|
||||
pkg_pretend() {
|
||||
use rootfs || return 0
|
||||
|
||||
if has_version virtual/dist-kernel && ! use dist-kernel; then
|
||||
ewarn "You have virtual/dist-kernel installed, but"
|
||||
ewarn "USE=\"dist-kernel\" is not enabled for ${CATEGORY}/${PN}"
|
||||
ewarn "It's recommended to globally enable dist-kernel USE flag"
|
||||
ewarn "to auto-trigger initrd rebuilds with kernel updates"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
@@ -152,10 +146,6 @@ src_install() {
|
||||
pkg_postinst() {
|
||||
linux-mod-r1_pkg_postinst
|
||||
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel ; then
|
||||
dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
fi
|
||||
|
||||
if use x86 || use arm ; then
|
||||
ewarn "32-bit kernels will likely require increasing vmalloc to"
|
||||
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools dist-kernel-utils flag-o-matic linux-mod-r1 multiprocessing
|
||||
MODULES_INITRAMFS_IUSE=+initramfs
|
||||
inherit autotools flag-o-matic linux-mod-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
|
||||
HOMEPAGE="https://github.com/openzfs/zfs"
|
||||
@@ -66,13 +67,6 @@ PATCHES=(
|
||||
|
||||
pkg_pretend() {
|
||||
use rootfs || return 0
|
||||
|
||||
if has_version virtual/dist-kernel && ! use dist-kernel; then
|
||||
ewarn "You have virtual/dist-kernel installed, but"
|
||||
ewarn "USE=\"dist-kernel\" is not enabled for ${CATEGORY}/${PN}"
|
||||
ewarn "It's recommended to globally enable dist-kernel USE flag"
|
||||
ewarn "to auto-trigger initrd rebuilds with kernel updates"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
@@ -194,10 +188,6 @@ pkg_postinst() {
|
||||
|
||||
linux-mod-r1_pkg_postinst
|
||||
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel ; then
|
||||
dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
fi
|
||||
|
||||
if use x86 || use arm ; then
|
||||
ewarn "32-bit kernels will likely require increasing vmalloc to"
|
||||
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools dist-kernel-utils flag-o-matic linux-mod-r1 multiprocessing
|
||||
MODULES_INITRAMFS_IUSE=+initramfs
|
||||
inherit autotools flag-o-matic linux-mod-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
|
||||
HOMEPAGE="https://github.com/openzfs/zfs"
|
||||
@@ -65,13 +66,6 @@ PATCHES=(
|
||||
|
||||
pkg_pretend() {
|
||||
use rootfs || return 0
|
||||
|
||||
if has_version virtual/dist-kernel && ! use dist-kernel; then
|
||||
ewarn "You have virtual/dist-kernel installed, but"
|
||||
ewarn "USE=\"dist-kernel\" is not enabled for ${CATEGORY}/${PN}"
|
||||
ewarn "It's recommended to globally enable dist-kernel USE flag"
|
||||
ewarn "to auto-trigger initrd rebuilds with kernel updates"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
@@ -193,10 +187,6 @@ pkg_postinst() {
|
||||
|
||||
linux-mod-r1_pkg_postinst
|
||||
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel ; then
|
||||
dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
fi
|
||||
|
||||
if use x86 || use arm ; then
|
||||
ewarn "32-bit kernels will likely require increasing vmalloc to"
|
||||
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools dist-kernel-utils flag-o-matic linux-mod-r1 multiprocessing
|
||||
MODULES_INITRAMFS_IUSE=+initramfs
|
||||
inherit autotools flag-o-matic linux-mod-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
|
||||
HOMEPAGE="https://github.com/openzfs/zfs"
|
||||
@@ -64,13 +65,6 @@ PATCHES=(
|
||||
|
||||
pkg_pretend() {
|
||||
use rootfs || return 0
|
||||
|
||||
if has_version virtual/dist-kernel && ! use dist-kernel; then
|
||||
ewarn "You have virtual/dist-kernel installed, but"
|
||||
ewarn "USE=\"dist-kernel\" is not enabled for ${CATEGORY}/${PN}"
|
||||
ewarn "It's recommended to globally enable dist-kernel USE flag"
|
||||
ewarn "to auto-trigger initrd rebuilds with kernel updates"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
@@ -192,10 +186,6 @@ pkg_postinst() {
|
||||
|
||||
linux-mod-r1_pkg_postinst
|
||||
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel ; then
|
||||
dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
fi
|
||||
|
||||
if use x86 || use arm ; then
|
||||
ewarn "32-bit kernels will likely require increasing vmalloc to"
|
||||
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools dist-kernel-utils flag-o-matic linux-mod-r1 multiprocessing
|
||||
MODULES_INITRAMFS_IUSE=+initramfs
|
||||
inherit autotools flag-o-matic linux-mod-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
|
||||
HOMEPAGE="https://github.com/openzfs/zfs"
|
||||
@@ -64,13 +65,6 @@ PATCHES=(
|
||||
|
||||
pkg_pretend() {
|
||||
use rootfs || return 0
|
||||
|
||||
if has_version virtual/dist-kernel && ! use dist-kernel; then
|
||||
ewarn "You have virtual/dist-kernel installed, but"
|
||||
ewarn "USE=\"dist-kernel\" is not enabled for ${CATEGORY}/${PN}"
|
||||
ewarn "It's recommended to globally enable dist-kernel USE flag"
|
||||
ewarn "to auto-trigger initrd rebuilds with kernel updates"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
@@ -192,10 +186,6 @@ pkg_postinst() {
|
||||
|
||||
linux-mod-r1_pkg_postinst
|
||||
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel ; then
|
||||
dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
fi
|
||||
|
||||
if use x86 || use arm ; then
|
||||
ewarn "32-bit kernels will likely require increasing vmalloc to"
|
||||
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools dist-kernel-utils flag-o-matic linux-mod-r1 multiprocessing
|
||||
MODULES_INITRAMFS_IUSE=+initramfs
|
||||
inherit autotools flag-o-matic linux-mod-r1 multiprocessing
|
||||
|
||||
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs"
|
||||
HOMEPAGE="https://github.com/openzfs/zfs"
|
||||
@@ -64,13 +65,6 @@ PATCHES=(
|
||||
|
||||
pkg_pretend() {
|
||||
use rootfs || return 0
|
||||
|
||||
if has_version virtual/dist-kernel && ! use dist-kernel; then
|
||||
ewarn "You have virtual/dist-kernel installed, but"
|
||||
ewarn "USE=\"dist-kernel\" is not enabled for ${CATEGORY}/${PN}"
|
||||
ewarn "It's recommended to globally enable dist-kernel USE flag"
|
||||
ewarn "to auto-trigger initrd rebuilds with kernel updates"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
@@ -192,10 +186,6 @@ pkg_postinst() {
|
||||
|
||||
linux-mod-r1_pkg_postinst
|
||||
|
||||
if [[ -z ${ROOT} ]] && use dist-kernel ; then
|
||||
dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}"
|
||||
fi
|
||||
|
||||
if use x86 || use arm ; then
|
||||
ewarn "32-bit kernels will likely require increasing vmalloc to"
|
||||
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that."
|
||||
|
||||
Reference in New Issue
Block a user