canonical / canonical/cloud-init

Scripts in /var/lib/cloud/scripts/vendor are never run

Open
#6,567 2 comments 0 reactions 0 assignees View on GitHub
bug incomplete
Dominant language
Python
Stars
3.8k
Forks
1.1k
Avg merge
2d 23h
Merged PRs (30d)
18

Description

# Bug report
I was looking at using vendor scripts as another place to drop in scripts to run. It doesn't look like these actually ever get run? I also see that cc_vendor_scripts use the current instance path. But this is a symlink to a path with the launched instance ID so it doesn't seem possible to include a script in there. Is there a way to use vendor scripts then in AWS with EC2?

I was trying to provide a set of scripts to run on boot that wouldn't collide with other user scripts.

## Steps to reproduce the problem
Put a script in `/var/lib/cloud/scripts/vendor`

## Environment details
- Cloud-init version:
- Operating System Distribution: Ubuntu 24.04
- Cloud provider, platform or installer type: AWS EC2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.