mirror of
https://gitlab.manjaro.org/applications/manjaro-architect
synced 2024-11-06 03:20:36 +00:00
Merge branch 'master' of https://github.com/Chrysostomus/manjaro-architect
This commit is contained in:
commit
41ec7af586
@ -318,8 +318,8 @@ install_base() {
|
||||
fi
|
||||
|
||||
# if branch was chosen, use that also in installed system. If not, use the system setting
|
||||
if [[ ! -e ${BRANCH} ]]; then
|
||||
echo "$(grep -oE -m 1 "unstable|stable|testing" /etc/pacman.d/mirrorlist)" > "${BRANCH}"
|
||||
if [[ ! -e "${BRANCH}" ]]; then
|
||||
echo "$(grep -oE -m 1 'unstable|stable|testing' /etc/pacman.d/mirrorlist)" > "${BRANCH}"
|
||||
ini branch "$(<${BRANCH})"
|
||||
fi
|
||||
sed -i "s/Branch =.*/Branch = $(cat ${BRANCH})/;s/# //" ${MOUNTPOINT}/etc/pacman-mirrors.conf 2>$ERR
|
||||
|
@ -42,6 +42,7 @@ PACKAGES="/tmp/.pkgs" # Packages to install
|
||||
MOUNT_OPTS="/tmp/.mnt_opts" # Filesystem Mount options
|
||||
INIT="/tmp/.init" # init systemd|openrc
|
||||
ERR="/tmp/.errlog"
|
||||
BRANCH="/tmp/.branch"
|
||||
|
||||
# Installer-Log
|
||||
LOGFILE="/var/log/m-a.log" # path for the installer log in the live environment
|
||||
@ -354,7 +355,6 @@ configure_mirrorlist() {
|
||||
|
||||
rank_mirrors() {
|
||||
#Choose the branch for mirrorlist
|
||||
BRANCH="/tmp/.branch"
|
||||
DIALOG " $_MirrorBranch " --radiolist "\n$_UseSpaceBar\n " 0 0 3 \
|
||||
"stable" "-" on \
|
||||
"testing" "-" off \
|
||||
|
Loading…
Reference in New Issue
Block a user