diff --git a/src/installer.sh b/src/installer.sh index 614fea4..3dc24e5 100644 --- a/src/installer.sh +++ b/src/installer.sh @@ -58,4 +58,14 @@ run_installer() { fi read -r -p "Press Enter once the installer is complete..." _ + + # Verify critical mounts are still intact after installer + if ! findmnt "$MOUNT_ROOT" >/dev/null 2>&1; then + die "Root mount disappeared after installer. The installer may have reformatted the filesystem." + fi + if ! findmnt "$ESP_MOUNT" >/dev/null 2>&1; then + die "ESP mount disappeared after installer. The installer may have reformatted the filesystem." + fi + + log_info "Mount verification passed." }