Only unmount if there is a mount

This commit is contained in:
David Heinemeier Hansson committed 2025-09-10 09:36:07 +02:00
1 parent 14a04e736c
commit f63f9564e8
1 file changed
+3
+3
View File
@@ -53,6 +53,9 @@ if [[ $(tty) == "/dev/tty1" ]]; then
# Get username from installer config for reliable error recovery
OMARCHY_USER="$(jq -r '.users[0].username' user_credentials.json)"
# Ensure that no mounts exist from past install attempts
findmnt -R /mnt >/dev/null && umount -R /mnt
# Install using files generated by the ./configurator
archinstall \
--config user_configuration.json \