|
|
@ -361,26 +361,20 @@ arch_chroot() {
|
|
|
|
check_mount() {
|
|
|
|
check_mount() {
|
|
|
|
if [[ $(lsblk -o MOUNTPOINT | grep ${MOUNTPOINT}) == "" ]]; then
|
|
|
|
if [[ $(lsblk -o MOUNTPOINT | grep ${MOUNTPOINT}) == "" ]]; then
|
|
|
|
DIALOG " $_ErrTitle " --msgbox "$_ErrNoMount" 0 0
|
|
|
|
DIALOG " $_ErrTitle " --msgbox "$_ErrNoMount" 0 0
|
|
|
|
ANSWER=0
|
|
|
|
|
|
|
|
HIGHLIGHT=0
|
|
|
|
HIGHLIGHT=0
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
else
|
|
|
|
|
|
|
|
return 0
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Ensure that Manjaro has been installed
|
|
|
|
# Ensure that Manjaro has been installed
|
|
|
|
check_base() {
|
|
|
|
check_base() {
|
|
|
|
check_mount && {
|
|
|
|
if check_mount; then
|
|
|
|
if [[ ! -e /mnt/.base_installed ]]; then
|
|
|
|
if [[ ! -e /mnt/.base_installed ]]; then
|
|
|
|
DIALOG " $_ErrTitle " --msgbox "$_ErrNoBase" 0 0
|
|
|
|
DIALOG " $_ErrTitle " --msgbox "$_ErrNoBase" 0 0
|
|
|
|
ANSWER=1
|
|
|
|
HIGHLIGHT=1
|
|
|
|
HIGHLIGHT=1
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
|
|
|
|
return 0
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# install a pkg in the live session if not installed
|
|
|
|
# install a pkg in the live session if not installed
|
|
|
|