Skip to content

Instantly share code, notes, and snippets.

@Alex4386
Created February 27, 2026 09:46
Show Gist options
  • Select an option

  • Save Alex4386/942ce7311eb41281e7f0583077c214fd to your computer and use it in GitHub Desktop.

Select an option

Save Alex4386/942ce7311eb41281e7f0583077c214fd to your computer and use it in GitHub Desktop.
Freeze Ubuntu Netplan configuration by cloud-init
#!/bin/bash
echo "network: {config: disabled}" | sudo tee /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
@Alex4386
Copy link
Author

Alex4386 commented Feb 27, 2026

curl -L https://gist.githubusercontent.com/Alex4386/942ce7311eb41281e7f0583077c214fd/raw/freeze-netplan.sh | sudo bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment