Remove obsolete bootstrap script and update example script for clarity</message>

<message>Delete the existing bootstrap.sh script used for cloud-init first boot, as it is no longer needed. Update the bootstrap.sh.example script to provide clearer instructions for users on how to customize and deploy their own bootstrap script, ensuring better guidance for cloud-init integration. These changes streamline the provisioning process and enhance user experience.
This commit is contained in:
nearxos
2026-02-24 00:26:55 +02:00
parent 808fbf5c7c
commit 59f8ebe61d
3 changed files with 5 additions and 4 deletions

View File

@@ -1,4 +0,0 @@
#!/bin/bash
# Minimal bootstrap script for cloud-init first boot (test).
set -e
echo "[$(date -Iseconds)] test completed" | tee -a /var/log/cloud-init-bootstrap.log

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# Example bootstrap script run by cloud-init at first boot.
# Copy to bootstrap.sh, edit as needed, and place in your portal files (e.g. first-boot/)
# so it is served at http://YOUR_SERVER:5000/files/bootstrap.sh
# Copy to cloud-init/bootstrap.sh; sync-portal-files-to-lxc.sh deploys it to the portal root,
# served at http://YOUR_SERVER:5000/files/bootstrap.sh (not under first-boot/).
#
# Cloud-init downloads this and runs it as root. Add your first-boot logic here:
# - Install packages, apply config, run first-boot.sh from this repo, etc.