Skip to content

Commit

Permalink
Updated builder scripts for Debian 12 dhcp ntp issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ElstonLewis committed Oct 22, 2024
1 parent ce321ce commit 1adba8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/linux/net-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions scripts/linux/ntp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1adba8a

Please sign in to comment.