examples/simple/scripts/CLOUD/10-network
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code |
| 4 | |
| 5 | # Disable systemd's network interface name management. |
| 6 | # References: |
| 7 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863385 |
| 8 | # https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ |
| 9 | |
| 10 | fcopy -M /etc/default/grub.d/10_cloud_disable_net.ifnames.cfg |
| 11 | $ROOTCMD update-grub |