Skip to content

Commit

Permalink
Merge pull request #278 from ComputeCanada/fix277
Browse files Browse the repository at this point in the history
Fix #277
  • Loading branch information
cmd-ntrf authored Oct 20, 2023
2 parents fc58a50 + 66f0490 commit bad0a3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions site/profile/files/base/prepare4image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ if [ -f /etc/cloud/cloud-init.disabled ]; then
fi
cloud-init clean --logs
rm -rf /var/lib/cloud

# Remove all internal domain host entries
grep -v $(hostname -d) /etc/hosts > /etc/hosts.clean
mv /etc/hosts.clean /etc/hosts

rm -f /etc/hostname
rm -f /etc/udev/rules.d/70-persistent-net.rules
: > /etc/sysconfig/network
Expand Down

0 comments on commit bad0a3c

Please sign in to comment.