only show reboot message if /install is a mountpoint

This commit is contained in:
Tobias Powalowski 2023-03-14 21:25:34 +01:00
parent 367548bc89
commit 0f425d4560

View file

@ -323,7 +323,7 @@ _mainmenu() {
"8")
[[ -e /tmp/.setup-running ]] && rm /tmp/.setup-running
clear
if [[ "${_DESTDIR}" == "/install" ]]; then
if mountpoint -q /install; then
echo ""
echo "If the install finished successfully, you can now type 'reboot'"
echo "to restart the system."