From 4ed237d791149786b8faf5d38adaa3e18542159c Mon Sep 17 00:00:00 2001 From: "elston.lewis" Date: Wed, 29 Nov 2023 12:23:20 +0100 Subject: [PATCH] Added chrony pkg install for Debian 12 --- linux.pkr.hcl | 1 + scripts/linux/ntp.sh | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 scripts/linux/ntp.sh diff --git a/linux.pkr.hcl b/linux.pkr.hcl index 21e8305..6ca4525 100644 --- a/linux.pkr.hcl +++ b/linux.pkr.hcl @@ -67,6 +67,7 @@ build { "./scripts/linux/mount.sh", "./scripts/linux/dns.sh", "./scripts/linux/rhel-activation.sh", + "./scripts/linux/ntp.sh", "./scripts/linux/packages.sh", "./scripts/linux/boot.sh", "./scripts/linux/ssh.sh", diff --git a/scripts/linux/ntp.sh b/scripts/linux/ntp.sh new file mode 100644 index 0000000..2211eff --- /dev/null +++ b/scripts/linux/ntp.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e + +if [[ ! "$1" == "debian12" ]]; then + chroot /mnt/ apt install chrony -y +fi