summaryrefslogtreecommitdiffstats
path: root/src/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/install.sh')
-rw-r--r--src/install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/install.sh b/src/install.sh
index a1deaf9..54d474f 100644
--- a/src/install.sh
+++ b/src/install.sh
@@ -325,6 +325,10 @@ install_system()
shift 4
info "$(get_msg 'install_setting_up_chroot')"
+ if [ -d "${root}" ] && ! dir_is_empty "${root}" 'lost+found'; then
+ error "$(get_msg 'install_chroot_dir_exists')" "${root}"
+ return 1
+ fi
if ! mkdir -p -- "${root}/.prokit" "${root}/prokit"; then
error "$(get_msg 'install_mkdir_chroot_fail')" "${root}"
return 1