zdev: Introduce --no-module-load option for chzdev

When called with a device parameter, chzdev tries to load the kernel
module of the corresponding device type. This might not be desired in
certain situations like early initial RAM-disk processing.

To support this use cases, add a new command-line option
--no-module-load to prevent the loading of any kernel module by chzdev.

Suggested-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Vineeth Vijayan
2025-08-26 12:42:29 +02:00
committed by Steffen Eiden
parent 0356d78bc2
commit d1bf9e68c6
3 changed files with 19 additions and 0 deletions

View File

@@ -636,6 +636,15 @@ option unless chzdev is run in an environment where udev is not fully
functional (such as in the early phase of an initial RAM disk).
.PP
.
.OD no-module-load "" ""
Do not load kernel modules during chzdev execution.
In some situations \fBchzdev\fR will attempt to load kernel modules to
complete a configuration action. This behavior may be undesirable in some
scenarios. The \fB\-\-no-module-load\fR option suppresses kernel module loading
during \fBchzdev\fR execution.
.PP
.
.OD persistent "p" ""
Apply changes to persistent configuration only.