From d899cfbf1a2a2edce9cee7225c0a15aeb895a28e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 29 Sep 2021 14:31:18 -0400 Subject: [PATCH] Clean disk to install in pre Installers frequently fail if there's a derelict lvm on disk. Explicitly remove the on-disk content and deactive lvm to let anaconda work reliably. --- confluent_osdeploy/el8/profiles/default/scripts/pre.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index 3ea9faea..438f7927 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -93,5 +93,7 @@ if [ -e /tmp/installdisk -a ! -e /tmp/partitioning ]; then echo clearpart --all --initlabel >> /tmp/partitioning echo ignoredisk --only-use $(cat /tmp/installdisk) >> /tmp/partitioning echo autopart --nohome $LUKSPARTY >> /tmp/partitioning + dd if=/dev/zero of=/dev/$(cat /tmp/installdisk) bs=1M count=1 + vgchange -a n fi kill $logshowpid