summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/install.sh4
-rw-r--r--src/installer/chroot.sh5
2 files changed, 4 insertions, 5 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
diff --git a/src/installer/chroot.sh b/src/installer/chroot.sh
index f4d10a1..dcdadb4 100644
--- a/src/installer/chroot.sh
+++ b/src/installer/chroot.sh
@@ -26,11 +26,6 @@ installer_chroot_main()
local foreign="${4}"
shift 4
- if [ -d "${root}" ] && ! dir_is_empty "${root}" 'lost+found'; then
- error "$(get_msg 'installer_chroot_dir_exists')" "${root}"
- return 1
- fi
-
install_system "${arch}" "${plat}" "${root}" "${foreign}" || return 1
return 0
}