commit:     0fb92ac33c3ad755bceb0afea4585957ea9844eb
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  9 15:53:19 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Nov  9 16:00:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fb92ac3

sys-kernel/dracut: drop kernel checks

I can't imagine users would be silly enough to attempt using a dracut
with initrd or devtmpfs disabled.

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-kernel/dracut/dracut-059-r4.ebuild          | 29 +------------------------
 sys-kernel/dracut/dracut-060_pre20231030.ebuild | 29 +------------------------
 sys-kernel/dracut/dracut-9999.ebuild            | 29 +------------------------
 3 files changed, 3 insertions(+), 84 deletions(-)

diff --git a/sys-kernel/dracut/dracut-059-r4.ebuild 
b/sys-kernel/dracut/dracut-059-r4.ebuild
index 8fb039a75d98..444537fc6276 100644
--- a/sys-kernel/dracut/dracut-059-r4.ebuild
+++ b/sys-kernel/dracut/dracut-059-r4.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit bash-completion-r1 linux-info optfeature systemd toolchain-funcs
+inherit bash-completion-r1 optfeature systemd toolchain-funcs
 
 if [[ ${PV} == 9999 ]] ; then
        inherit git-r3
@@ -118,33 +118,6 @@ src_install() {
 }
 
 pkg_postinst() {
-       if linux-info_get_any_version && linux_config_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 ERROR_DEVTMPFS='CONFIG_DEVTMPFS: "Maintain a devtmpfs 
filesystem to mount at /dev" '
-               ERROR_DEVTMPFS+='is missing and REQUIRED'
-               local ERROR_BLK_DEV_INITRD='CONFIG_BLK_DEV_INITRD: "Initial RAM 
filesystem and RAM disk '
-               ERROR_BLK_DEV_INITRD+='(initramfs/initrd) support" is missing 
and REQUIRED'
-
-               check_extra_config
-               echo
-       else
-               ewarn ""
-               ewarn "Your kernel configuration couldn't be checked."
-               ewarn "Please check manually if following options are enabled:"
-               ewarn ""
-               ewarn "  CONFIG_BLK_DEV_INITRD"
-               ewarn "  CONFIG_DEVTMPFS"
-               ewarn ""
-       fi
-
        optfeature "Networking support" net-misc/networkmanager
        optfeature "Legacy networking support" net-misc/curl 
"net-misc/dhcp[client]" \
                sys-apps/iproute2 "net-misc/iputils[arping]"

diff --git a/sys-kernel/dracut/dracut-060_pre20231030.ebuild 
b/sys-kernel/dracut/dracut-060_pre20231030.ebuild
index 25b978da1b87..c0c9e9080678 100644
--- a/sys-kernel/dracut/dracut-060_pre20231030.ebuild
+++ b/sys-kernel/dracut/dracut-060_pre20231030.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit bash-completion-r1 edo linux-info optfeature systemd toolchain-funcs
+inherit bash-completion-r1 edo optfeature systemd toolchain-funcs
 
 if [[ ${PV} == 9999 ]] ; then
        inherit git-r3
@@ -118,33 +118,6 @@ src_install() {
 }
 
 pkg_postinst() {
-       if linux-info_get_any_version && linux_config_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 ERROR_DEVTMPFS='CONFIG_DEVTMPFS: "Maintain a devtmpfs 
filesystem to mount at /dev" '
-               ERROR_DEVTMPFS+='is missing and REQUIRED'
-               local ERROR_BLK_DEV_INITRD='CONFIG_BLK_DEV_INITRD: "Initial RAM 
filesystem and RAM disk '
-               ERROR_BLK_DEV_INITRD+='(initramfs/initrd) support" is missing 
and REQUIRED'
-
-               check_extra_config
-               echo
-       else
-               ewarn ""
-               ewarn "Your kernel configuration couldn't be checked."
-               ewarn "Please check manually if following options are enabled:"
-               ewarn ""
-               ewarn "  CONFIG_BLK_DEV_INITRD"
-               ewarn "  CONFIG_DEVTMPFS"
-               ewarn ""
-       fi
-
        optfeature "Networking support" net-misc/networkmanager
        optfeature "Legacy networking support" net-misc/curl 
"net-misc/dhcp[client]" \
                sys-apps/iproute2 "net-misc/iputils[arping]"

diff --git a/sys-kernel/dracut/dracut-9999.ebuild 
b/sys-kernel/dracut/dracut-9999.ebuild
index 59e9f37ffb3f..e8a3b5a5155d 100644
--- a/sys-kernel/dracut/dracut-9999.ebuild
+++ b/sys-kernel/dracut/dracut-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit bash-completion-r1 edo linux-info optfeature systemd toolchain-funcs
+inherit bash-completion-r1 edo optfeature systemd toolchain-funcs
 
 if [[ ${PV} == 9999 ]] ; then
        inherit git-r3
@@ -117,33 +117,6 @@ src_install() {
 }
 
 pkg_postinst() {
-       if linux-info_get_any_version && linux_config_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 ERROR_DEVTMPFS='CONFIG_DEVTMPFS: "Maintain a devtmpfs 
filesystem to mount at /dev" '
-               ERROR_DEVTMPFS+='is missing and REQUIRED'
-               local ERROR_BLK_DEV_INITRD='CONFIG_BLK_DEV_INITRD: "Initial RAM 
filesystem and RAM disk '
-               ERROR_BLK_DEV_INITRD+='(initramfs/initrd) support" is missing 
and REQUIRED'
-
-               check_extra_config
-               echo
-       else
-               ewarn ""
-               ewarn "Your kernel configuration couldn't be checked."
-               ewarn "Please check manually if following options are enabled:"
-               ewarn ""
-               ewarn "  CONFIG_BLK_DEV_INITRD"
-               ewarn "  CONFIG_DEVTMPFS"
-               ewarn ""
-       fi
-
        optfeature "Networking support" net-misc/networkmanager
        optfeature "Legacy networking support" net-misc/curl 
"net-misc/dhcp[client]" \
                sys-apps/iproute2 "net-misc/iputils[arping]"

Reply via email to