Fix no mirrorlist in built image
parent
864d88e36a
commit
67acf5e440
|
@ -5,6 +5,8 @@ COPY files /files
|
||||||
RUN \
|
RUN \
|
||||||
apk add arch-install-scripts pacman-makepkg curl && \
|
apk add arch-install-scripts pacman-makepkg curl && \
|
||||||
cat /files/repos-$TARGETARCH >> /etc/pacman.conf && \
|
cat /files/repos-$TARGETARCH >> /etc/pacman.conf && \
|
||||||
|
mkdir -p /etc/pacman.d && \
|
||||||
|
cp /files/mirrorlist-$TARGETARCH /etc/pacman.d/mirrorlist && \
|
||||||
if [[ "$TARGETARCH" == "amd64" ]]; then \
|
if [[ "$TARGETARCH" == "amd64" ]]; then \
|
||||||
apk add zstd && \
|
apk add zstd && \
|
||||||
mkdir /tmp/archlinux-keyring && \
|
mkdir /tmp/archlinux-keyring && \
|
||||||
|
@ -19,6 +21,7 @@ RUN \
|
||||||
pacman-key --populate && \
|
pacman-key --populate && \
|
||||||
mkdir /rootfs && \
|
mkdir /rootfs && \
|
||||||
/files/pacstrap-docker /rootfs $PACKAGE_GROUP && \
|
/files/pacstrap-docker /rootfs $PACKAGE_GROUP && \
|
||||||
|
cp /etc/pacman.d/mirrorlist /rootfs/etc/pacman.d/mirrorlist && \
|
||||||
echo "en_US.UTF-8 UTF-8" > /rootfs/etc/locale.gen && \
|
echo "en_US.UTF-8 UTF-8" > /rootfs/etc/locale.gen && \
|
||||||
echo "LANG=en_US.UTF-8" > /rootfs/etc/locale.conf && \
|
echo "LANG=en_US.UTF-8" > /rootfs/etc/locale.conf && \
|
||||||
chroot /rootfs locale-gen && \
|
chroot /rootfs locale-gen && \
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Server = http://mirrors.xtom.com/archlinux/$repo/os/$arch
|
|
@ -0,0 +1 @@
|
||||||
|
Server = http://mirror.archlinuxarm.org/$arch/$repo
|
|
@ -1,8 +1,8 @@
|
||||||
[core]
|
[core]
|
||||||
Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community]
|
[community]
|
||||||
Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
[core]
|
[core]
|
||||||
Server = http://mirror.archlinuxarm.org/$arch/$repo
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
Server = http://mirror.archlinuxarm.org/$arch/$repo
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community]
|
[community]
|
||||||
Server = http://mirror.archlinuxarm.org/$arch/$repo
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[alarm]
|
[alarm]
|
||||||
Server = http://mirror.archlinuxarm.org/$arch/$repo
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[aur]
|
[aur]
|
||||||
Server = http://mirror.archlinuxarm.org/$arch/$repo
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
Loading…
Reference in New Issue