mirror of
https://gitlab.manjaro.org/applications/manjaro-architect
synced 2024-11-08 01:10:26 +00:00
if base not installed go to install_base_menu directly; some logging
This commit is contained in:
parent
1aac7b3bae
commit
7c9b49eaae
@ -337,7 +337,7 @@ uefi_bootloader() {
|
||||
if [[ $(cat ${PACKAGES}) != "" ]]; then
|
||||
clear
|
||||
basestrap ${MOUNTPOINT} $(cat ${PACKAGES} | grep -v "systemd-boot") efibootmgr dosfstools 2>$ERR
|
||||
check_for_error "uefi_bootloader" "$?"
|
||||
check_for_error "$FUNCNAME" "$?"
|
||||
|
||||
case $(cat ${PACKAGES}) in
|
||||
"grub")
|
||||
|
12
lib/util.sh
12
lib/util.sh
@ -290,7 +290,7 @@ rank_mirrors() {
|
||||
"unstable" "-" off 2>${BRANCH}
|
||||
clear
|
||||
[[ ! -z "$(cat ${BRANCH})" ]] && pacman-mirrors -gib "$(cat ${BRANCH})" && \
|
||||
check_for_error "branch selected: $(cat ${BRANCH})" "$?"
|
||||
check_for_error "$FUNCNAME branch $(cat ${BRANCH})" "$?"
|
||||
}
|
||||
|
||||
# Originally adapted from AIS. Added option to allow users to edit the mirrorlist.
|
||||
@ -344,7 +344,7 @@ check_mount() {
|
||||
check_base() {
|
||||
if [[ ! -e /tmp/.base_installed ]]; then
|
||||
DIALOG " $_ErrTitle " --msgbox "$_ErrNoBase" 0 0
|
||||
main_menu_online
|
||||
install_base_menu
|
||||
fi
|
||||
}
|
||||
|
||||
@ -356,8 +356,8 @@ inst_needed() {
|
||||
|
||||
# install a pkg in the chroot if not installed
|
||||
check_pkg() {
|
||||
if ! arch_chroot "pacman -Q $1" ; then
|
||||
basestrap "$1" 2>$ERR
|
||||
check_for_error "install missing pkg $1 to target." "$?"
|
||||
fi
|
||||
if ! arch_chroot "pacman -Q $1" ; then
|
||||
basestrap "$1" 2>$ERR
|
||||
check_for_error "install missing pkg $1 to target." "$?"
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user