github.com/cptmikhailov/conmon@v2.0.20+incompatible/contrib/cirrus/packer/fedora_base-setup.sh (about) 1 #!/bin/bash 2 3 # N/B: This script is not intended to be run by humans. It is used to configure the 4 # fedora base image for importing, so that it will boot in GCE 5 6 set -e 7 8 # Load in library (copied by packer, before this script was run) 9 source $SRC/$SCRIPT_BASE/lib.sh 10 11 req_env_var " 12 SRC $SRC 13 " 14 15 [[ "$1" == "post" ]] || exit 0 # nothing to do 16 17 install_ooe 18 19 echo "Updating packages" 20 ooe.sh dnf -y update 21 22 echo "Installing necessary packages and google services" 23 ooe.sh dnf -y copr enable ngompa/gce-oslogin 24 ooe.sh dnf -y install rng-tools google-compute-engine google-compute-engine-oslogin 25 26 echo "Enabling services" 27 ooe.sh systemctl enable rngd 28 29 rh_finalize 30 31 echo "SUCCESS!"