Skip to content

Commit

Permalink
Merge pull request #60 from Itxaka/fix_loops
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Jun 12, 2023
2 parents b65986b + ccc0d52 commit 1372a93
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tools-image/build-arm-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,7 @@ cleanup() {
umount $oem || true
fi

if [ "$disable_lvm" == "false" ]; then
lvremove --yes KairosVG || true
fi
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;
losetup -D "${LOOP}" || true;
}

ensure_dir_structure() {
Expand Down

0 comments on commit 1372a93

Please sign in to comment.