mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add possibility for network install to enable testing repository
This commit is contained in:
parent
5b69be23a4
commit
3e077b9826
1 changed files with 17 additions and 0 deletions
|
@ -2868,6 +2868,13 @@ select_mirror() {
|
||||||
echo "Using mirror: ${SYNC_URL}" >${LOG}
|
echo "Using mirror: ${SYNC_URL}" >${LOG}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# dotesting()
|
||||||
|
# enable testing repository on ftp install
|
||||||
|
dotesting() {
|
||||||
|
DOTESTING=""
|
||||||
|
DIALOG --defaultno --yesno "Do you want to enable [testing] repository?\n\nOnly enable this if you need latest available packages for testing purposes!" 8 60 && DOTESTING="yes"
|
||||||
|
}
|
||||||
|
|
||||||
# pacman_conf()
|
# pacman_conf()
|
||||||
# creates temporary pacman.conf file
|
# creates temporary pacman.conf file
|
||||||
pacman_conf() {
|
pacman_conf() {
|
||||||
|
@ -2875,6 +2882,10 @@ pacman_conf() {
|
||||||
local serverurl="${FILE_URL}"
|
local serverurl="${FILE_URL}"
|
||||||
elif [[ "${MODE}" = "ftp" ]]; then
|
elif [[ "${MODE}" = "ftp" ]]; then
|
||||||
local serverurl="${SYNC_URL}"
|
local serverurl="${SYNC_URL}"
|
||||||
|
if [[ "${DOTESTING}" = "yes" ]]; then
|
||||||
|
TESTING_REPOSITORY="[testing]"
|
||||||
|
TESTING_SERVER="Server = ${serverurl}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# Setup a pacman.conf in /tmp
|
# Setup a pacman.conf in /tmp
|
||||||
cat << EOF > /tmp/pacman.conf
|
cat << EOF > /tmp/pacman.conf
|
||||||
|
@ -2886,6 +2897,9 @@ CacheDir = ${DESTDIR}/var/cache/pacman/pkg
|
||||||
CacheDir = /packages/core-$(uname -m)/pkg
|
CacheDir = /packages/core-$(uname -m)/pkg
|
||||||
CacheDir = /packages/core-any/pkg
|
CacheDir = /packages/core-any/pkg
|
||||||
|
|
||||||
|
${TESTING_REPOSITORY}
|
||||||
|
${TESTING_SERVER}
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
Server = ${serverurl}
|
Server = ${serverurl}
|
||||||
|
|
||||||
|
@ -4908,6 +4922,9 @@ select_source() {
|
||||||
if [[ ${S_NET} -eq 0 ]]; then
|
if [[ ${S_NET} -eq 0 ]]; then
|
||||||
donetwork
|
donetwork
|
||||||
fi
|
fi
|
||||||
|
if [[ ${S_TESTING} -eq 0 ]]; then
|
||||||
|
dotesting
|
||||||
|
fi
|
||||||
TITLE="Arch Linux FTP/HTTP Installation"
|
TITLE="Arch Linux FTP/HTTP Installation"
|
||||||
fi
|
fi
|
||||||
getsource || return 1
|
getsource || return 1
|
||||||
|
|
Loading…
Reference in a new issue