This commit is contained in:
Bernhard Landauer 2017-03-14 02:47:38 +01:00
commit 41ec7af586
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 \