diff options
| author | Shulhan <ms@kilabit.info> | 2022-07-03 02:56:57 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-07-25 19:29:22 +0700 |
| commit | abf42e55f9ad473f2e7ef28d9aadb389cff7ecfa (patch) | |
| tree | 1a9045d942223e293527e6b3a846ec8715b440d9 | |
| parent | 878e5e39e5afe89228814f2a8d0f8e37b6ff2317 (diff) | |
| download | compute-archlinux-image-builder-abf42e55f9ad473f2e7ef28d9aadb389cff7ecfa.tar.xz | |
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.
| -rwxr-xr-x | build-arch-gce | 2 |
1 files changed, 1 insertions, 1 deletions
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" |
