Unverified Commit c87b10b0 authored by Jan Orel's avatar Jan Orel Committed by GitHub
Browse files

M #-: Rework packer scripts (#286)

- pass version + architecture as env variables,
    this allows scripts de-duplication
- use build-common.pkr.hcl symlink for most distros
- rename variables.pkr.hcl to vars-common.pkr.hcl
- add directory for custom scripts
parent deea2593
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
# Place customization scripts to this folder
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

# Download and install the latest one-context package.

: "${CTXEXT:=el9.noarch.rpm}"
: "${CTXEXT:=el${DIST_VER}.noarch.rpm}"

exec 1>&2
set -eux -o pipefail
+0 −16
Original line number Diff line number Diff line
#!/usr/bin/env bash

# Download and install the latest one-context package.

: "${CTXEXT:=el10.noarch.rpm}"

exec 1>&2
set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST"

dnf install -y --setopt=install_weak_deps=False NetworkManager

sync
+0 −16
Original line number Diff line number Diff line
#!/usr/bin/env bash

# Download and install the latest one-context package.

: "${CTXEXT:=el10.noarch.rpm}"

exec 1>&2
set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST"

dnf install -y --setopt=install_weak_deps=False NetworkManager

sync
+0 −18
Original line number Diff line number Diff line
#!/usr/bin/env bash

# Download and install the latest one-context package.

: "${CTXEXT:=el8.noarch.rpm}"

exec 1>&2
set -eux -o pipefail

LATEST=$(find /context/ -type f -name "one-context*.$CTXEXT" | sort -V | tail -n1)

dnf install -y "$LATEST" haveged

systemctl enable haveged

dnf install -y --setopt=install_weak_deps=False NetworkManager systemd-networkd

sync
Loading