diff --git a/ctc_configure b/ctc_configure index 1634b93..3d4ee1f 100644 --- a/ctc_configure +++ b/ctc_configure @@ -44,6 +44,14 @@ debug_mesg () { esac } +add_cio_channel() { + echo "$* # ${DATE}" >> /boot/zipl/active_devices.txt +} + +remove_cio_channel() { + [ -w /boot/zipl/active_devices.txt ] && sed -i -e "/^${1}/d" /boot/zipl/active_devices.txt +} + usage(){ echo "Usage: ${0} []" echo " read/write channel = x.y.ssss where" @@ -112,3 +120,9 @@ RC=${?} if [ ${RC} -ne 0 ]; then exit ${RC} fi + +if [ ${ON_OFF} == 1 ]; then + add_cio_channel "${CTC_READ_CHAN},${CTC_WRITE_CHAN}" +else remove_cio_channel "${CTC_READ_CHAN}" + remove_cio_channel "${CTC_WRITE_CHAN}" +fi diff --git a/dasd_configure.opensuse b/dasd_configure.opensuse index 6f135ee..a04fcde 100644 --- a/dasd_configure.opensuse +++ b/dasd_configure.opensuse @@ -43,6 +43,14 @@ debug_mesg () { esac } +add_cio_channel() { + echo "$* # ${DATE}" >> /boot/zipl/active_devices.txt +} + +remove_cio_channel() { + [ -w /boot/zipl/active_devices.txt ] && sed -i -e "/^${1}/d" /boot/zipl/active_devices.txt +} + usage(){ echo "Usage: ${0} [-f -t ] [use_diag]" echo @@ -157,4 +165,9 @@ elif [ ${ON_OFF} == 1 ]; then fi fi +if [ ${ON_OFF} == 1 ]; then + add_cio_channel "${CCW_CHAN_ID}" +else remove_cio_channel "${CCW_CHAN_ID}" +fi + exit ${exitcode} diff --git a/dasd_configure.suse b/dasd_configure.suse index 6b453b2..1aae177 100644 --- a/dasd_configure.suse +++ b/dasd_configure.suse @@ -43,6 +43,14 @@ debug_mesg () { esac } +add_cio_channel() { + echo "$* # ${DATE}" >> /boot/zipl/active_devices.txt +} + +remove_cio_channel() { + [ -w /boot/zipl/active_devices.txt ] && sed -i -e "/^${1}/d" /boot/zipl/active_devices.txt +} + usage(){ echo "Usage: ${0} [-f -t ] [use_diag]" echo @@ -157,4 +165,9 @@ elif [ ${ON_OFF} == 1 ]; then fi fi +if [ ${ON_OFF} == 1 ]; then + add_cio_channel "${CCW_CHAN_ID}" +else remove_cio_channel "${CCW_CHAN_ID}" +fi + exit ${exitcode} diff --git a/qeth_configure b/qeth_configure index bf30117..8e883ab 100644 --- a/qeth_configure +++ b/qeth_configure @@ -48,6 +48,14 @@ debug_mesg () { esac } +add_cio_channel() { + echo "$* # ${DATE}" >> /boot/zipl/active_devices.txt +} + +remove_cio_channel() { + [ -w /boot/zipl/active_devices.txt ] && sed -i -e "/^${1}/d" /boot/zipl/active_devices.txt +} + usage(){ echo "Usage: ${0} [options] " echo " -i Configure IP takeover" @@ -157,3 +165,10 @@ RC=${?} if [ ${RC} -ne 0 ]; then exit ${RC} fi + +if [ ${ON_OFF} == 1 ]; then + add_cio_channel "${QETH_READ_CHAN},${QETH_WRITE_CHAN},${QETH_DATA_CHAN}" +else remove_cio_channel "${QETH_READ_CHAN}" + remove_cio_channel "${QETH_WRITE_CHAN}" + remove_cio_channel "${QETH_DATA_CHAN}" +fi diff --git a/s390-tools.changes b/s390-tools.changes index 6383dd8..df42d83 100644 --- a/s390-tools.changes +++ b/s390-tools.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Tue Nov 5 07:39:58 UTC 2024 - Nikolay Gueorguiev + +- Amended the *_configure scripts to update again the SUSE's specific file + '/boot/zipl/active_devices.txt' (bsc#1232474, bsc#1216257) + * ctc_configure + * dasd_configure + * qeth_configure + * zfcp_host_configure + ------------------------------------------------------------------- Tue Oct 8 10:35:04 UTC 2024 - Nikolay Gueorguiev diff --git a/zfcp_host_configure b/zfcp_host_configure index db5036c..047560b 100644 --- a/zfcp_host_configure +++ b/zfcp_host_configure @@ -38,6 +38,14 @@ debug_mesg () { esac } +add_cio_channel() { + echo "$* # ${DATE}" >> /boot/zipl/active_devices.txt +} + +remove_cio_channel() { + [ -w /boot/zipl/active_devices.txt ] && sed -i -e "/^${1}/d" /boot/zipl/active_devices.txt +} + usage(){ echo "Usage: ${0} " echo " ccwid = x.y.ssss where" @@ -80,3 +88,8 @@ RC=${?} if [ ${RC} -ne 0 ]; then exit ${RC} fi + +if [ ${ON_OFF} == 1 ]; then + add_cio_channel "${CCW_CHAN_ID}" +else remove_cio_channel "${CCW_CHAN_ID}" +fi