From abf42e55f9ad473f2e7ef28d9aadb389cff7ecfa Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 3 Jul 2022 02:56:57 +0700 Subject: all: speeding up running pacstrap by using package cache on host Passing -c on pacstrap allow the bootstrap process to use the current package cache on host. Without using this flag, each build will re-downloads all packages again from the Internet. --- build-arch-gce | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-arch-gce b/build-arch-gce index 1e6e16d..eeefa31 100755 --- a/build-arch-gce +++ b/build-arch-gce @@ -77,7 +77,7 @@ append_gce_repo() { } cp /etc/pacman.conf "$work_dir" append_gce_repo "$work_dir/pacman.conf" -pacstrap -G -M -C "$work_dir/pacman.conf" -- "$mount_dir" \ +pacstrap -c -G -M -C "$work_dir/pacman.conf" -- "$mount_dir" \ base linux dosfstools e2fsprogs dhclient openssh sudo google-compute-engine append_gce_repo "$mount_dir/etc/pacman.conf" -- cgit v1.3