diff --git a/install/iventoy-install.sh b/install/iventoy-install.sh index 650eb6278..a9564d9e2 100644 --- a/install/iventoy-install.sh +++ b/install/iventoy-install.sh @@ -13,6 +13,12 @@ setting_up_container network_check update_os +if [[ "${CTTYPE:-1}" != "0" ]]; then + msg_error "iVentoy requires a privileged LXC container." + msg_error "Recreate the container with unprivileged=0." + exit 10 +fi + fetch_and_deploy_gh_release "iventoy" "ventoy/PXE" "prebuild" "latest" "/opt/iventoy" "iventoy-*-linux-$(arch_resolve x86_64-free arm64-trial).tar.gz" mkdir -p /opt/iventoy/{data,iso}