[13/21] linux: Disable all sorts of useless Device Mapper targets

Message ID 01ce4218-d617-8a52-6a55-75d2d3de1eaa@ipfire.org
State Accepted
Headers
Series linux: Update to 5.15.85 and backport many IPFire 3.x changes |

Commit Message

Peter Müller Dec. 26, 2022, 7:28 p.m. UTC
  This patch also compiles all sorts of device mapper stuff as modules.

Backported from IPFire 3.x as 6fe31a44d07d8705ca7713c449ccbb3dbb9684a0.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 config/kernel/kernel.config.x86_64-ipfire | 29 +++++++++--------------
 1 file changed, 11 insertions(+), 18 deletions(-)
  

Comments

Michael Tremer Dec. 27, 2022, 11:25 a.m. UTC | #1
Acked-by: Michael Tremer <michael.tremer@ipfire.org>

> On 26 Dec 2022, at 20:28, Peter Müller <peter.mueller@ipfire.org> wrote:
> 
> This patch also compiles all sorts of device mapper stuff as modules.
> 
> Backported from IPFire 3.x as 6fe31a44d07d8705ca7713c449ccbb3dbb9684a0.
> 
> Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
> ---
> config/kernel/kernel.config.x86_64-ipfire | 29 +++++++++--------------
> 1 file changed, 11 insertions(+), 18 deletions(-)
> 
> diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire
> index 9d3541cfe..a3f97641a 100644
> --- a/config/kernel/kernel.config.x86_64-ipfire
> +++ b/config/kernel/kernel.config.x86_64-ipfire
> @@ -2287,22 +2287,22 @@ CONFIG_MD_RAID0=m
> CONFIG_MD_RAID1=m
> CONFIG_MD_RAID10=m
> CONFIG_MD_RAID456=m
> -CONFIG_MD_MULTIPATH=m
> -CONFIG_MD_FAULTY=m
> +# CONFIG_MD_MULTIPATH is not set
> +# CONFIG_MD_FAULTY is not set
> CONFIG_BCACHE=m
> # CONFIG_BCACHE_DEBUG is not set
> # CONFIG_BCACHE_CLOSURES_DEBUG is not set
> # CONFIG_BCACHE_ASYNC_REGISTRATION is not set
> CONFIG_BLK_DEV_DM_BUILTIN=y
> -CONFIG_BLK_DEV_DM=y
> +CONFIG_BLK_DEV_DM=m
> # CONFIG_DM_DEBUG is not set
> -CONFIG_DM_BUFIO=y
> +CONFIG_DM_BUFIO=m
> # CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set
> CONFIG_DM_BIO_PRISON=m
> CONFIG_DM_PERSISTENT_DATA=m
> CONFIG_DM_UNSTRIPED=m
> CONFIG_DM_CRYPT=m
> -CONFIG_DM_SNAPSHOT=y
> +CONFIG_DM_SNAPSHOT=m
> # CONFIG_DM_THIN_PROVISIONING is not set
> CONFIG_DM_CACHE=m
> CONFIG_DM_CACHE_SMQ=m
> @@ -2310,26 +2310,19 @@ CONFIG_DM_WRITECACHE=m
> # CONFIG_DM_EBS is not set
> # CONFIG_DM_ERA is not set
> # CONFIG_DM_CLONE is not set
> -CONFIG_DM_MIRROR=y
> +CONFIG_DM_MIRROR=m
> CONFIG_DM_LOG_USERSPACE=m
> CONFIG_DM_RAID=m
> -CONFIG_DM_ZERO=y
> -CONFIG_DM_MULTIPATH=m
> -CONFIG_DM_MULTIPATH_QL=m
> -CONFIG_DM_MULTIPATH_ST=m
> -CONFIG_DM_MULTIPATH_HST=m
> -CONFIG_DM_MULTIPATH_IOA=m
> +CONFIG_DM_ZERO=m
> +# CONFIG_DM_MULTIPATH is not set
> # CONFIG_DM_DELAY is not set
> # CONFIG_DM_DUST is not set
> -# CONFIG_DM_INIT is not set
> CONFIG_DM_UEVENT=y
> # CONFIG_DM_FLAKEY is not set
> -CONFIG_DM_VERITY=m
> -# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set
> -# CONFIG_DM_VERITY_FEC is not set
> -CONFIG_DM_SWITCH=m
> +# CONFIG_DM_VERITY is not set
> +# CONFIG_DM_SWITCH is not set
> CONFIG_DM_LOG_WRITES=m
> -CONFIG_DM_INTEGRITY=m
> +# CONFIG_DM_INTEGRITY is not set
> CONFIG_DM_ZONED=m
> # CONFIG_TARGET_CORE is not set
> CONFIG_FUSION=y
> -- 
> 2.35.3
  

Patch

diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire
index 9d3541cfe..a3f97641a 100644
--- a/config/kernel/kernel.config.x86_64-ipfire
+++ b/config/kernel/kernel.config.x86_64-ipfire
@@ -2287,22 +2287,22 @@  CONFIG_MD_RAID0=m
 CONFIG_MD_RAID1=m
 CONFIG_MD_RAID10=m
 CONFIG_MD_RAID456=m
-CONFIG_MD_MULTIPATH=m
-CONFIG_MD_FAULTY=m
+# CONFIG_MD_MULTIPATH is not set
+# CONFIG_MD_FAULTY is not set
 CONFIG_BCACHE=m
 # CONFIG_BCACHE_DEBUG is not set
 # CONFIG_BCACHE_CLOSURES_DEBUG is not set
 # CONFIG_BCACHE_ASYNC_REGISTRATION is not set
 CONFIG_BLK_DEV_DM_BUILTIN=y
-CONFIG_BLK_DEV_DM=y
+CONFIG_BLK_DEV_DM=m
 # CONFIG_DM_DEBUG is not set
-CONFIG_DM_BUFIO=y
+CONFIG_DM_BUFIO=m
 # CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set
 CONFIG_DM_BIO_PRISON=m
 CONFIG_DM_PERSISTENT_DATA=m
 CONFIG_DM_UNSTRIPED=m
 CONFIG_DM_CRYPT=m
-CONFIG_DM_SNAPSHOT=y
+CONFIG_DM_SNAPSHOT=m
 # CONFIG_DM_THIN_PROVISIONING is not set
 CONFIG_DM_CACHE=m
 CONFIG_DM_CACHE_SMQ=m
@@ -2310,26 +2310,19 @@  CONFIG_DM_WRITECACHE=m
 # CONFIG_DM_EBS is not set
 # CONFIG_DM_ERA is not set
 # CONFIG_DM_CLONE is not set
-CONFIG_DM_MIRROR=y
+CONFIG_DM_MIRROR=m
 CONFIG_DM_LOG_USERSPACE=m
 CONFIG_DM_RAID=m
-CONFIG_DM_ZERO=y
-CONFIG_DM_MULTIPATH=m
-CONFIG_DM_MULTIPATH_QL=m
-CONFIG_DM_MULTIPATH_ST=m
-CONFIG_DM_MULTIPATH_HST=m
-CONFIG_DM_MULTIPATH_IOA=m
+CONFIG_DM_ZERO=m
+# CONFIG_DM_MULTIPATH is not set
 # CONFIG_DM_DELAY is not set
 # CONFIG_DM_DUST is not set
-# CONFIG_DM_INIT is not set
 CONFIG_DM_UEVENT=y
 # CONFIG_DM_FLAKEY is not set
-CONFIG_DM_VERITY=m
-# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set
-# CONFIG_DM_VERITY_FEC is not set
-CONFIG_DM_SWITCH=m
+# CONFIG_DM_VERITY is not set
+# CONFIG_DM_SWITCH is not set
 CONFIG_DM_LOG_WRITES=m
-CONFIG_DM_INTEGRITY=m
+# CONFIG_DM_INTEGRITY is not set
 CONFIG_DM_ZONED=m
 # CONFIG_TARGET_CORE is not set
 CONFIG_FUSION=y