Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean machine-id #179

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ubuntu/scripts/cloudimg/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
# cloud-init put networking in place on initial boot. Let's remove that, to
# allow MAAS to configure the networking on deploy.
rm /etc/netplan/50-cloud-init.yaml
: >| /etc/machine-id
rm -f /var/log/cloud-init*.log
rm -rf /var/lib/cloud/instances \
/var/lib/cloud/instance

# Everything in /run/packer_backup should be restored.
find /run/packer_backup
Expand Down
1 change: 1 addition & 0 deletions ubuntu/scripts/networking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ rm -f /etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg
rm -f /etc/cloud/cloud.cfg.d/99-installer.cfg
rm -f /etc/cloud/ds-identify.cfg
rm -f /etc/netplan/00-installer-config.yaml
: >| /etc/machine-id

rm -f /var/log/cloud-init*.log
rm -rf /var/lib/cloud/instances \
Expand Down