Skip to content

Commit

Permalink
openshift snoplus: wipe all disks
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Feb 17, 2025
1 parent 398e614 commit 8742a2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kvirt/cluster/openshift/iso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

for vg in $(vgs -o name --noheadings) ; do vgremove -y $vg ; done
for pv in $(pvs -o name --noheadings) ; do pvremove -y $pv ; done
for disk in $(lsblk -dno NAME,TYPE | awk '$2=="disk" {print $1}') ; do
wipefs -a /dev/$disk
done
{% if install_disk is defined %}
install_device='/dev/{{ install_disk | basename }}'
{% else %}
Expand Down Expand Up @@ -53,6 +56,7 @@ if [ -f /root/macs.txt ] ; then
fi

{% if disable_ipv6|default(False) %}
firstboot_args="$firstboot_args ipv6.disable=1"
cp /root/config.ign /root/config.ign.ori
while true ; do
NIC=$(ip r | grep {{ baremetal_cidr|default('default') }} | head -1 | grep -oP '(?<=dev )[^ ]*')
Expand Down

0 comments on commit 8742a2e

Please sign in to comment.