Sanity check ./install -R that the directory is a mountpoint
This commit is contained in:
parent
86e4a32fd0
commit
09928ba3a5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue