Drop to recovery shell when mounting main media filesystem fails.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
parent
b880be1ae9
commit
59d7a39994
@ -85,16 +85,24 @@ archiso_mount_handler() {
|
|||||||
if mount -r -t "${FSTYPE}" ${archisodevice} /bootmnt > /dev/null 2>&1; then
|
if mount -r -t "${FSTYPE}" ${archisodevice} /bootmnt > /dev/null 2>&1; then
|
||||||
if [ -e "${isomounts}" ]; then
|
if [ -e "${isomounts}" ]; then
|
||||||
echo "SUCCESS: Mounted archiso volume successfully."
|
echo "SUCCESS: Mounted archiso volume successfully."
|
||||||
|
fserror="0"
|
||||||
else
|
else
|
||||||
echo "ERROR: Mounting was successful, but the ${isomounts} file does not exist."
|
echo "ERROR: Mounting was successful, but the ${isomounts} file does not exist."
|
||||||
exit 1
|
fserror="1"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "ERROR; Failed to mount ${archisodevice} (FS is ${FSTYPE})"
|
echo "ERROR; Failed to mount ${archisodevice} (FS is ${FSTYPE})"
|
||||||
exit 1
|
fserror="1"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "ERROR: ${archisodevice} found, but the filesystem type is unknown."
|
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
|
fi
|
||||||
|
|
||||||
msg ":: Mounting root (aufs) filesystem"
|
msg ":: Mounting root (aufs) filesystem"
|
||||||
|
Loading…
Reference in New Issue
Block a user