mirror of
https://github.com/elasticdog/packer-arch.git
synced 2026-07-17 16:36:26 +00:00
Move pacman mirror config just before package installation
This commit is contained in:
parent
090a1cb9a6
commit
16cfbbd2e5
1 changed files with 3 additions and 3 deletions
|
|
@ -21,9 +21,6 @@ TARGET_DIR='/mnt'
|
|||
COUNTRY=${COUNTRY:-US}
|
||||
MIRRORLIST="https://www.archlinux.org/mirrorlist/?country=${COUNTRY}&protocol=http&protocol=https&ip_version=4&use_mirror_status=on"
|
||||
|
||||
echo ">>>> install-base.sh: Setting pacman ${COUNTRY} mirrors.."
|
||||
curl -s "$MIRRORLIST" | sed 's/^#Server/Server/' > /etc/pacman.d/mirrorlist
|
||||
|
||||
echo ">>>> install-base.sh: Clearing partition table on ${DISK}.."
|
||||
/usr/bin/sgdisk --zap ${DISK}
|
||||
|
||||
|
|
@ -43,6 +40,9 @@ echo ">>>> install-base.sh: Creating /root filesystem (ext4).."
|
|||
echo ">>>> install-base.sh: Mounting ${ROOT_PARTITION} to ${TARGET_DIR}.."
|
||||
/usr/bin/mount -o noatime,errors=remount-ro ${ROOT_PARTITION} ${TARGET_DIR}
|
||||
|
||||
echo ">>>> install-base.sh: Setting pacman ${COUNTRY} mirrors.."
|
||||
curl -s "$MIRRORLIST" | sed 's/^#Server/Server/' > /etc/pacman.d/mirrorlist
|
||||
|
||||
echo ">>>> install-base.sh: Bootstrapping the base installation.."
|
||||
/usr/bin/pacstrap ${TARGET_DIR} base base-devel linux
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue