From 1adba8a69678eae1340db1913a674b3d1f2bcbba Mon Sep 17 00:00:00 2001 From: Elston LEWIS Date: Tue, 22 Oct 2024 14:15:08 +0200 Subject: [PATCH] Updated builder scripts for Debian 12 dhcp ntp issue --- scripts/linux/net-tools.sh | 5 +++++ scripts/linux/ntp.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/scripts/linux/net-tools.sh b/scripts/linux/net-tools.sh index 2638772..444e07f 100644 --- a/scripts/linux/net-tools.sh +++ b/scripts/linux/net-tools.sh @@ -4,3 +4,8 @@ set -e if [[ "$1" == "debian12" ]] || [[ "$1" == "ubuntu24"* ]]; then chroot /mnt/ apt install net-tools -y fi + +# Netplan file permission fix OMI-239 +if [[ "$1" == "debian12" ]]; then + chmod 644 /mnt/etc/netplan/50-cloud-init.yaml +fi diff --git a/scripts/linux/ntp.sh b/scripts/linux/ntp.sh index ed3abe0..93d628e 100644 --- a/scripts/linux/ntp.sh +++ b/scripts/linux/ntp.sh @@ -5,3 +5,8 @@ if [[ "$1" == "debian12" ]]; then chroot /mnt/ apt update -y chroot /mnt/ apt install chrony -y fi + +# make executable chronyd script fix OMI-239 +if [[ "$1" == "debian12" ]]; then + chmod +x /mnt/etc/dhcp/dhclient-exit-hooks.d/chrony +fi