mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zdev/dracut: import persistent config of early devices into kdump initrd
The existing code can already determine the required devices for the actively running system. In case users would have a need to configure additional devices for early boot in kdump initrd, import those devices marked with "zdev:early=1" for completeness. Assuming this is a small number of devices and could even overlap between the root-fs and the kdump case, do not further distinguish those two sets of devices. Github-ID: https://github.com/ibm-s390-linux/s390-tools/pull/158 Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com> 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>
This commit is contained in:
committed by
Jan Höppner
parent
7e8126704b
commit
9d08fd8c7e
@@ -81,6 +81,11 @@ install() {
|
||||
for_each_host_dev_and_slaves_all check_zdev
|
||||
sed -i -e 's/^\[active /\[persistent /' "$_tempfile"
|
||||
|
||||
# in addition to active devices above, also add persistent config
|
||||
# of devices the user marked for early initrd use
|
||||
chzdev --export - --persistent --by-attrib "zdev:early=1" --quiet \
|
||||
--type 2>/dev/null >> "$_tempfile"
|
||||
|
||||
ddebug < "$_tempfile"
|
||||
|
||||
# Apply via --import to prevent other devices from being configured
|
||||
|
||||
Reference in New Issue
Block a user