Commit 59d7a399 authored by Gerardo Exequiel Pozzi's avatar Gerardo Exequiel Pozzi
Browse files

Drop to recovery shell when mounting main media filesystem fails.



Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
parent b880be1a
......@@ -85,16 +85,24 @@ archiso_mount_handler() {
if mount -r -t "${FSTYPE}" ${archisodevice} /bootmnt > /dev/null 2>&1; then
if [ -e "${isomounts}" ]; then
echo "SUCCESS: Mounted archiso volume successfully."
fserror="0"
else
echo "ERROR: Mounting was successful, but the ${isomounts} file does not exist."
exit 1
fserror="1"
fi
else
echo "ERROR; Failed to mount ${archisodevice} (FS is ${FSTYPE})"
exit 1
fserror="1"
fi
else
echo "ERROR: ${archisodevice} found, but the filesystem type is unknown."
fserror="1"
fi
if [ "${fserror}" = "1" ]; then
echo " Falling back to interactive prompt"
echo " You can try to fix the problem manually, log out when you are finished"
launch_interactive_shell
fi
msg ":: Mounting root (aufs) filesystem"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment