Skip to content

[PUBM-51741] BYOLinux: mention runcmd to replace postInstallationScript#18

Merged
sbraz merged 1 commit intomainfrom
PUBM-51741_script
Mar 16, 2026
Merged

[PUBM-51741] BYOLinux: mention runcmd to replace postInstallationScript#18
sbraz merged 1 commit intomainfrom
PUBM-51741_script

Conversation

@sbraz
Copy link
Member

@sbraz sbraz commented Mar 12, 2026

BYOLinux does not support the postInstallationScript customization available on standard OVHcloud OS templates. Added a note and updated the API example to use a cloud-init configDriveUserData with runcmd.

See also ovh/docs#9180

README.md Outdated
- vim
- tree
runcmd:
- echo "Post-installation complete" > /opt/post-install.log
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should use the same script as we provided elsewhere in the official docuementation ?

#!/bin/bash
echo "coucou postInstallationScript" > /opt/coucou
cat /etc/machine-id  >> /opt/coucou
date "+%Y-%m-%d %H:%M:%S" --utc >> /opt/coucou

BYOLinux does not support the postInstallationScript customization available
on standard OVHcloud OS templates. Added a note and updated the API example
to use a cloud-init configDriveUserData with runcmd.

See also ovh/docs#9180
@sbraz sbraz force-pushed the PUBM-51741_script branch from 6c3786a to fbe5eb0 Compare March 16, 2026 15:11
}
```

The `configDriveUserData` field above is base64-encoded. Here is the clear-text version:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Top ça

Copy link
Member

@ashmonger ashmonger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for me

@sbraz sbraz merged commit a12856f into main Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants