GitHub user top-secrett added a comment to the discussion: Rocky Linux 9 and 
Ubuntu 24.04 template with cloud-init doesn't reset password on next subsequent 
boots

@hanisirfan thank you
For now I found working solution. All my features like password and ssh key 
reset, lvresize and resize2fs work right
```#!/bin/bash

### BEGIN INIT INFO
# Provides:          password
# Required-Start:    $all
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:
# Short-Description: your description here
### END INIT INFO
cloud-init clean
cloud-init init --local
cloud-init init
cloud-init modules --mode config
cloud-init modules --mode final
```

GitHub link: 
https://github.com/apache/cloudstack/discussions/9690#discussioncomment-10657102

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to