-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zdev/dracut: retain early persistent config over switch root
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: #158 Acked-by: Vineeth Vijayan <[email protected]> Acked-by: Peter Oberparleiter <[email protected]> Signed-off-by: Steffen Maier <[email protected]> Signed-off-by: Jan Höppner <[email protected]>
- Loading branch information
1 parent
b4b5e0b
commit bc4f455
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters