Only unmount if there is a mount
This commit is contained in:
1 parent
14a04e736c
commit
f63f9564e8
1 file changed
+3
@@ -53,6 +53,9 @@ if [[ $(tty) == "/dev/tty1" ]]; then
|
|||||||
# Get username from installer config for reliable error recovery
|
# Get username from installer config for reliable error recovery
|
||||||
OMARCHY_USER="$(jq -r '.users[0].username' user_credentials.json)"
|
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
|
# Install using files generated by the ./configurator
|
||||||
archinstall \
|
archinstall \
|
||||||
--config user_configuration.json \
|
--config user_configuration.json \
|
||||||
|
|||||||
Reference in new issue
Block a user