Advertisement
Guest User

Untitled

a guest
Oct 21st, 2021
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. cd /usr/src/cloud-init
  4.  
  5. python3 -m pip install setuptools
  6. python3 -m pip install -r requirements.txt
  7. python3 setup.py build
  8. python3 setup.py install --init-system systemd
  9.  
  10. ln -s /usr/local/bin/cloud-init /usr/bin/cloud-init
  11.  
  12. chattr -i /etc/udev/rules.d/70-persistent-net.rules
  13.  
  14. systemctl unmask cloud-init-local.service
  15. systemctl unmask cloud-init.service
  16. systemctl unmask cloud-config.service
  17. systemctl unmask cloud-final.service
  18.  
  19. systemctl enable cloud-init-local.service
  20. systemctl enable cloud-init.service
  21. systemctl enable cloud-config.service
  22. systemctl enable cloud-final.service
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement