diff options
| author | Shulhan <ms@kilabit.info> | 2022-07-03 03:00:35 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-07-25 19:29:22 +0700 |
| commit | 47197aebab856e44ad78061d0bc7bc9f5ca91a9c (patch) | |
| tree | 6fb4efed6a29b5a890a89d39ae90585e7d993e43 /build-arch-gce | |
| parent | 4b1d03fe563fc72a322eb8b8be8b58cf1b1a994a (diff) | |
| download | compute-archlinux-image-builder-47197aebab856e44ad78061d0bc7bc9f5ca91a9c.tar.xz | |
all: use the host mirrorlist, gnupg, and db caches from host
This is to speeding up the bootstrap.
Diffstat (limited to 'build-arch-gce')
| -rwxr-xr-x | build-arch-gce | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build-arch-gce b/build-arch-gce index 2ea7fbb..1d96907 100755 --- a/build-arch-gce +++ b/build-arch-gce @@ -64,8 +64,12 @@ echo '- Mounting the EFI partition.' mkdir -p -- "$mount_dir/boot" mount -- "$efi_dev" "$mount_dir/boot" +echo '- Copy the host pacman database caches' +mkdir -p $mount_dir/var/lib/pacman/sync +rsync -r /var/lib/pacman/sync/ $mount_dir/var/lib/pacman/sync/ + echo '- Installing Arch Linux.' -pacstrap -c -G -M -C "./sys/etc/pacman.conf" -- "$mount_dir" \ +pacstrap -c -C "./sys/etc/pacman.conf" -- "$mount_dir" \ base linux dosfstools e2fsprogs dhclient openssh sudo google-compute-engine cp -f ./sys/etc/pacman.conf "$mount_dir/etc/pacman.conf" |
