mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdev: Add support for handling auto-configuration data
Auto-configuration is the name of a new configuration target that is
supported by chzdev and lszdev besides the existing active and
persistent configuration targets. Directives created in this new
configuration are stored as udev rules in the /run/udev/rules.d
directory.
Auto-configuration directives are only in effect if there are no
directives for the same device in the user-provided persistent
configuration. This allows users to override auto-configuration
directives if necessary.
Due to the volatile nature of the /run directory, auto-configuration
directives are cleared on reboot. Therefore mechanisms that generate
auto-configuration directives must recreate them on every boot.
The lszdev tool displays auto-configuration data both in list view
as well as in detail view. Users can specify the new option --auto-conf
to only show data from this configuration target.
Mechanisms that generate automated configuration directives can use
chzdev together with the --auto-conf option to create the corresponding
udev rules.
Note: This change does not include a mechanism that generates
auto-configuration directives.
Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
a86fb8b091
commit
fe68ec513d
@@ -428,8 +428,8 @@ using the \-\-import action like in the following example
|
||||
.B Note:
|
||||
By default all configuration data that is read is also applied. To reduce the
|
||||
scope of imported configuration data, you can select specific devices, a device
|
||||
type, or define whether only data for the active or persistent configuration
|
||||
should be imported.
|
||||
type, or define whether only data for the active, persistent or
|
||||
auto-configuration should be imported.
|
||||
.PP
|
||||
.
|
||||
.OD list-attributes "l" ""
|
||||
@@ -472,6 +472,18 @@ on reboot, or when a device becomes unavailable, or when a device driver is
|
||||
unloaded.
|
||||
.PP
|
||||
.
|
||||
.OD auto-conf "" ""
|
||||
Apply changes to the auto-configuration only.
|
||||
|
||||
This option is used internally to apply machine-provided I/O configuration data
|
||||
to a Linux system.
|
||||
|
||||
.B Note:
|
||||
There is typically no need for users to specify this option directly.
|
||||
In particular, user-initiated changes to this configuration will be lost
|
||||
the next time that machine-provided data is obtained (i.e. during boot).
|
||||
.PP
|
||||
.
|
||||
.OD base "" "PATH" | "KEY" = "VALUE"
|
||||
Change file system paths used to access files.
|
||||
|
||||
|
||||
@@ -69,12 +69,13 @@ With no further options specified, the output format defaults to list format.
|
||||
.
|
||||
.
|
||||
.SS "Configurations"
|
||||
There are two sources for configuration information: the active configuration
|
||||
of the currently running system, and the persistent configuration stored in
|
||||
configuration files.
|
||||
There are three sources for configuration information: the active configuration
|
||||
of the currently running system, the persistent configuration stored in
|
||||
configuration files, and the auto-configuration that is provided by some
|
||||
machine types to automatically enable I/O devices.
|
||||
.PP
|
||||
By default lszdev displays information from both the active and the persistent
|
||||
configuration.
|
||||
configuration, and, if available, from the auto-configuration.
|
||||
.PP
|
||||
.
|
||||
.
|
||||
@@ -319,6 +320,19 @@ Restricts output to information obtained from the active configuration, that
|
||||
is information from the running system.
|
||||
.PP
|
||||
.
|
||||
.OD auto-conf "" ""
|
||||
List information from the auto-configuration only.
|
||||
|
||||
Restricts output to information obtained from the auto-configuration.
|
||||
The auto-configuration is the collection of configuration data obtained
|
||||
automatically on some machine models during boot.
|
||||
|
||||
.B Note:
|
||||
This data is refreshed during each boot. Also configuration directives in
|
||||
the auto-configuration only take effect if there is no directive for the
|
||||
same device in the persistent configuration.
|
||||
.PP
|
||||
.
|
||||
.OD base "" "PATH" | "KEY" = "VALUE"
|
||||
Change file system paths used to access files.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user