diff options
| author | Shulhan <ms@kilabit.info> | 2025-12-26 15:02:04 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-12-26 15:50:22 +0700 |
| commit | 42ad2744c1122eeb6e33972ed34a87567a690a57 (patch) | |
| tree | 5fe7211e8a3831dbc75419d1814da386f6483e81 /build-arch-gce | |
| parent | 058f6729af0dc2f9a367a268e2d387a9f922406e (diff) | |
| download | compute-archlinux-image-builder-42ad2744c1122eeb6e33972ed34a87567a690a57.tar.xz | |
all: remove pacman-init service and ops-agent config.yaml
The original pacman-init.service usage is to populate the pacman keyrings.
Since we install archlinux-keyring package at pacstrap, we did not need
to do it anymore.
On ops-agent, the latest package released that include the same
config.yaml.
Diffstat (limited to 'build-arch-gce')
| -rwxr-xr-x | build-arch-gce | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/build-arch-gce b/build-arch-gce index ca03f13..7a9559f 100755 --- a/build-arch-gce +++ b/build-arch-gce @@ -122,9 +122,6 @@ cp ./sys/etc/systemd/journald.conf.d/00-google.conf $mount_dir/etc/systemd/journ echo '-- Configuring ssh.' cp ./sys/etc/ssh/sshd_config $mount_dir/etc/ssh/ -echo '-- Creating pacman-init service.' -cp ./sys/etc/systemd/system/pacman-init.service $mount_dir/etc/systemd/system/ - echo '-- Configuring initcpio.' cp ./sys/etc/mkinitcpio.conf $mount_dir/etc/ cp ./sys/etc/mkinitcpio.d/linux.preset $mount_dir/etc/mkinitcpio.d/ @@ -150,8 +147,6 @@ arch-chroot -- "$mount_dir" /bin/bash -s <<-'EOS' set -eEuo pipefail trap 'echo "Error: \`$BASH_COMMAND\` exited with status $?"' ERR - ls -l /etc/pacman.d/gnupg/ - echo '-- Configuring time.' ln -sf /usr/share/zoneinfo/UTC /etc/localtime systemctl --quiet enable systemd-timesyncd.service @@ -166,7 +161,7 @@ arch-chroot -- "$mount_dir" /bin/bash -s <<-'EOS' echo '-- Enabling sshd service.' systemctl --quiet enable sshd.service - echo '-- Installing google-compute-engine and guest-agent.' + echo '-- Installing google-compute-engine and ops-agent.' ## Import the key for build.kilabit.info repository. pacman-key --recv-key 4A5360B500C9C4F0 pacman-key --lsign-key 4A5360B500C9C4F0 @@ -177,7 +172,6 @@ arch-chroot -- "$mount_dir" /bin/bash -s <<-'EOS' google-compute-engine \ google-cloud-ops-agent-git - echo '-- Enabling google-cloud-ops-agent.service' systemctl --quiet enable google-cloud-ops-agent.service echo '-- Running mkinitcpio.' @@ -197,10 +191,6 @@ arch-chroot -- "$mount_dir" /bin/bash -s <<-'EOS' fi EOS -echo '- Configuring Google Cloud Ops Agent.' -mkdir -p $mount_dir/etc/google-cloud-ops-agent/ -cp ./sys/etc/google-cloud-ops-agent/config.yaml $mount_dir/etc/google-cloud-ops-agent/ - echo '- Configuring boot loader.' cp ./sys/efi/loader/loader.conf $mount_dir/boot/loader/ cp ./sys/efi/loader/entries/arch.conf $mount_dir/boot/loader/entries/ |
