#!/bin/sh -eu tool=$(readlink -e "${0%/*}/..") . "$tool"/host/lib.sh case $local_use_lvm in (yes) "$tool"/host/part-root-umount "$tool"/host/part-var-umount "$tool"/host/part-home-umount ! sudo vgs | grep -q "^ $local_lvm_vg " || sudo vgchange -a n $local_lvm_vg ;; (*) exit 1;; esac