/lib/rc/sh/openrc-run.sh: line 65: /var/lib/cloud/user-data.sh: not found
Created by: pxljoy
Hi,
I'm builing my own AMI but haven't changed any settings (running ./scripts/builder.py amis alpine edge-x86_64
and using it in a launch template.)
The problem is that the user-data script isn't being run. What's weird is when I ssh into the instance the user-data.sh file is there. I have a feeling that, for whatever reason, it doesn't exist at the time of being checked.
cat /var/log/cloud-bootstrap.log
> /lib/rc/sh/openrc-run.sh: line 65: /var/lib/cloud/user-data.sh: not found
Help would be appreciated :)
Cheers
Edit Turns out I was using #!/bin/bash instead of #!/bin/sh, my bad! :)