diff --git a/scripts/main.sh b/scripts/main.sh index 4b75333..50f8891 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -374,6 +374,10 @@ function main_install() { } function main_chroot() { + # Skip if already mounted + mountpoint -q -- "$1" \ + || die "'$1' is not a mountpoint" + gentoo_chroot "$@" einfo "Unmounting chroot environment" gentoo_umount