From 2299ccc32fdde3bb869bdbc5fac98d7b54d2efaa Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 17 Mar 2022 12:19:42 -0400 Subject: [PATCH] Handle VROC devices in autoyast At time of running pre, array is not assembled by default, inject a scan to check for them. VROC must not be specified by 'md' name, or yast thinks it needs to own making it, and complains that the setup doesn't specify members. --- confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh b/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh index b947de43..54fea7c2 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh +++ b/confluent_osdeploy/suse15/profiles/hpc/scripts/pre.sh @@ -38,7 +38,16 @@ if grep ^ntpservers: /etc/confluent/confluent.deploycfg > /dev/null; then echo '' >> /tmp/ntp.cfg ntpcfg=$(paste -sd '' /tmp/ntp.cfg) fi +mdadm --assemble --scan run_remote_python getinstalldisk +if grep ^md /tmp/installdisk > /dev/null; then + for md in /dev/disk/*/*; do + rmd=$(readlink $md) + if echo $rmd|grep $(cat /tmp/installdisk)$ > /dev/null; then + echo ${md#/dev/} > /tmp/installdisk + fi + done +fi sed -e s'!'%%INSTDISK%%'!'/dev/$(cat /tmp/installdisk)'!' -e s'!'%%NODENAME%%'!'$nodename'!' -e 's!!'"$ntpcfg"'!' -e "s?%%ROOTPASSWORD%%?${rootpw}?" /tmp/profile/autoinst.xml > /tmp/profile/modified.xml if grep append /tmp/bootloader.xml > /dev/null; then sed -i 's@@'"$(tr -d '\n' < /tmp/bootloader.xml)"'@' /tmp/profile/modified.xml