From 302fecf5559e8fd339d52a4e4bfc1ddf66efd927 Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Wed, 20 Sep 2023 13:15:37 +0900 Subject: [PATCH] Forcely remove all LVMs on installing rocky --- templates/kiss/matchbox/boot/rocky9.ks | 2 +- templates/kiss/tasks/commission/storage-cleanup-device.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/kiss/matchbox/boot/rocky9.ks b/templates/kiss/matchbox/boot/rocky9.ks index f8a63505..f985500e 100644 --- a/templates/kiss/matchbox/boot/rocky9.ks +++ b/templates/kiss/matchbox/boot/rocky9.ks @@ -86,7 +86,7 @@ ROOTDEV="" ROOTSIZE=1000000000 # Remove all LVM partitions -dmsetup remove_all +dmsetup remove_all --force # /sys/block/*/size is in 512 byte chunks for DEV in $(lsblk -d | sed 's/^\(nvme[0-9]\+n[0-9]\+\)\?\([sv]d[a-z]\+\)\?.*$/\1\2/g' | xargs); do diff --git a/templates/kiss/tasks/commission/storage-cleanup-device.yaml b/templates/kiss/tasks/commission/storage-cleanup-device.yaml index 6cef7be8..88a4101a 100644 --- a/templates/kiss/tasks/commission/storage-cleanup-device.yaml +++ b/templates/kiss/tasks/commission/storage-cleanup-device.yaml @@ -19,7 +19,7 @@ force: true - name: Unregister all logical devices - command: dmsetup remove_all + command: dmsetup remove_all --force - name: Update facts setup: