New comment by pullmoll on void-packages repository https://github.com/void-linux/void-packages/pull/24314#issuecomment-686583901 Comment: Perhaps `chroot-style/uchroot` can check the mount point's filesystem and error out if with a explicit message. Some lines using `findmnt` from `util-linux` can be used to tell a path's file system: ``` #!/bin/bash path=$PWD while [ -z "$FSTYPE" -a ! -z "$path" ]; do eval $(findmnt -P "$path") path=${path%/*} done echo "$FSTYPE" ```