Commit 5593144e authored by dalto's avatar dalto

Non-block device support for filesystems check

parent be3f3f42
......@@ -328,7 +328,7 @@ select_language() {
CURR_LOCALE="uk_UA.UTF-8"
KEYMAP="ua"
fl="u"
;;
*) clear && exit 0
;;
esac
......@@ -467,7 +467,7 @@ arch_chroot() {
# Ensure that a partition is mounted
check_mount() {
if [[ $(lsblk -o MOUNTPOINT | grep ${MOUNTPOINT}) == "" ]]; then
if [[ $(findmnt --list -o TARGET | grep ${MOUNTPOINT}) == "" ]]; then
DIALOG " $_ErrTitle " --msgbox "\n$_ErrNoMount\n " 0 0
ANSWER=0
HIGHLIGHT=0
......@@ -572,7 +572,7 @@ final_check() {
}
exit_done() {
if [[ $(lsblk -o MOUNTPOINT | grep ${MOUNTPOINT} 2>/dev/null) != "" ]]; then
if [[ $(findmnt --list -o TARGET | grep ${MOUNTPOINT} 2>/dev/null) != "" ]]; then
final_check
dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --yesno "$(printf "\n$_CloseInstBody\n$(cat ${CHECKLIST})\n ")" 20 40
if [[ $? -eq 0 ]]; then
......
Markdown is supported
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