From 7095da9f9d316500194e9f254b8891b2e1d751bd Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Tue, 17 Jan 2023 13:47:13 +0000 Subject: [PATCH] dumpconf: add options for ldipl ECKD devices Add the following options to dumpconf so that LDIPL ECKD devices can be configured for dumping: br_chr: (optional) location of boot record device: ccw device bootprog: boot program selector Signed-off-by: Sven Schnelle Acked-by: Stefan Haberland Signed-off-by: Steffen Eiden --- scripts/dumpconf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/scripts/dumpconf b/scripts/dumpconf index 83902f7e..a8ba9202 100755 --- a/scripts/dumpconf +++ b/scripts/dumpconf @@ -301,6 +301,9 @@ setup_reipl() fi case "$REIPL_TYPE" in + eckd) + setup_ccw_device $REIPL_CONFIG_DIR $REIPL_TYPE + ;; ccw) setup_ccw_device $REIPL_CONFIG_DIR $REIPL_TYPE ;; @@ -332,6 +335,9 @@ setup_reipl() setup_dump() { case "$DUMP_TYPE" in + eckd) + setup_ccw_device $DUMP_CONFIG_DIR $DUMP_TYPE + ;; ccw) setup_ccw_device $DUMP_CONFIG_DIR $DUMP_TYPE ;; @@ -408,6 +414,16 @@ print_ccw_device() pr_info "device..: $DEVICE" } +print_eckd_device() +{ + DEVICE=$(cat $1/eckd/device) || RETVAL=1 + pr_info "device..: $DEVICE" + BR_CHR=$(cat $1/eckd/br_chr) || RETVAL=1 + pr_info "br_chr..: $BR_CHR" + BOOTPROG=$(cat $1/eckd/bootprog) || RETVAL=1 + pr_info "bootprog: $BOOTPROG" +} + print_nvme_device() { FID=$(cat $1/nvme/fid) || RETVAL=1 @@ -433,6 +449,11 @@ status_dump() none) pr_info "type....: no dump device configured" ;; + eckd) + pr_info "type....: eckd" + print_eckd_device $DUMP_CONFIG_DIR + verify_ccw_dump_device $(cat $DUMP_CONFIG_DIR/eckd/device) + ;; ccw) pr_info "type....: ccw" print_ccw_device $DUMP_CONFIG_DIR @@ -458,6 +479,9 @@ status_reipl() REIPL_TYPE=$(cat $REIPL_CONFIG_DIR/reipl_type) || RETVAL=1 pr_info "type....: $REIPL_TYPE" case "$REIPL_TYPE" in + eckd) + print_eckd_device $REIPL_CONFIG_DIR + ;; ccw) print_ccw_device $REIPL_CONFIG_DIR ;;