diff options
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" |
