mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-08-31 14:53:13 +00:00
Be less agressive on arm cleanup
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
@@ -75,13 +75,11 @@ cleanup() {
|
||||
if [ "$disable_lvm" == "false" ]; then
|
||||
lvremove --yes KairosVG
|
||||
fi
|
||||
|
||||
for LOOPS in $(losetup -a | awk -F':' {'print $1'} | awk -F'/' {'print $3'}); do
|
||||
for LOOPPART in $(ls /dev/mapper/${LOOPS}*| awk -F'/' {'print $4'}); do
|
||||
dmsetup remove "${LOOPPART}" || true;
|
||||
done;
|
||||
losetup -d /dev/"${LOOPS}" || true;
|
||||
done
|
||||
MAPPER_LOOP=$(basename "$LOOP")
|
||||
for LOOPPART in $(ls /dev/mapper/"${MAPPER_LOOP}"*| awk -F'/' {'print $4'}); do
|
||||
dmsetup remove "${LOOPPART}" || true;
|
||||
done;
|
||||
losetup -d "${LOOP}" || true;
|
||||
}
|
||||
|
||||
ensure_dir_structure() {
|
||||
|
Reference in New Issue
Block a user