mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
use local pacman.conf and mirrorlist in container
This commit is contained in:
parent
6abc0f8f48
commit
aaf262789c
1 changed files with 3 additions and 2 deletions
|
@ -54,8 +54,9 @@ systemd-nspawn -D "${_DIR}" locale-gen
|
||||||
# generate pacman keyring
|
# generate pacman keyring
|
||||||
systemd-nspawn -D "${_DIR}" pacman-key --init
|
systemd-nspawn -D "${_DIR}" pacman-key --init
|
||||||
systemd-nspawn -D "${_DIR}" pacman-key --populate archlinux
|
systemd-nspawn -D "${_DIR}" pacman-key --populate archlinux
|
||||||
# add genneral mirror
|
# copy local mirrorlist to container
|
||||||
systemd-nspawn -D "${_DIR}" /bin/bash -c "echo 'Server = https://mirror.rackspace.com/archlinux/\$repo/os/\$arch' >> /etc/pacman.d/mirrorlist"
|
cp /etc/pacman.d/mirrorlist "${_DIR}"/etc/pacman.d/mirrorlist
|
||||||
|
cp /etc/pacman.conf "${_DIR}"/etc/pacman.conf
|
||||||
# disable checkspace option in pacman.conf, to allow to install packages in environment
|
# disable checkspace option in pacman.conf, to allow to install packages in environment
|
||||||
systemd-nspawn -D "${_DIR}" /bin/bash -c "sed -i -e 's:^CheckSpace:#CheckSpace:g' /etc/pacman.conf"
|
systemd-nspawn -D "${_DIR}" /bin/bash -c "sed -i -e 's:^CheckSpace:#CheckSpace:g' /etc/pacman.conf"
|
||||||
# enable parallel downloads
|
# enable parallel downloads
|
||||||
|
|
Loading…
Reference in a new issue