mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Useful for debugging (what happened during early boot).
Also useful for distro installers, which can import the early config into
their own environment early after starting:
chzdev --import /run/zdev.initrd.config --persistent --yes \
--no-root-update --force --verbose
After that, distro installers can modify/add the device config based
on interactive or unattended installation choices using
chzdev --enable --active --persistent ...
Finally, distro installers can likewise transfer the entire device config
to the installed system mounted under $SYSROOT:
chzdev --export /tmp/zdev.config --all --type --persistent --verbose
Github-ID: https://github.com/ibm-s390-linux/s390-tools/pull/158
Acked-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Acked-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
27 lines
1.0 KiB
Bash
27 lines
1.0 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Copyright IBM Corp. 2023
|
|
#
|
|
# s390-tools is free software; you can redistribute it and/or modify
|
|
# it under the terms of the MIT license. See LICENSE for details.
|
|
#
|
|
# 95zdev/retain-zdev.sh
|
|
# Copy zdev persistent config from initrd to root-fs.
|
|
#
|
|
|
|
chzdev --export /run/zdev.initrd.config --all --type --persistent --quiet
|
|
|
|
# Apart from debugging purposes, this is useful for distro installers,
|
|
# which can import the early config into their own environment early
|
|
# after starting:
|
|
# chzdev --import /run/zdev.initrd.config --persistent --yes --no-root-update --force --verbose
|
|
#
|
|
# After that, distro installers can modify/add the device config based
|
|
# on interactive or unattended installation choices using
|
|
# chzdev --enable --active --persistent ...
|
|
#
|
|
# Finally, distro installers can likewise transfer the entire device config
|
|
# to the installed system mounted under $SYSROOT:
|
|
# chzdev --export /tmp/zdev.config --all --type --persistent --verbose
|
|
# chzdev --import /tmp/zdev.config --persistent --yes --no-root-update --force --verbose --base "$SYSROOT"
|