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