mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-15 11:22:43 +03:00
* save `user-data` during main `tiny-cloud` init script instead of `tiny-cloud-final`
* allow manual setting of bootstrap state with...
* `service tiny-cloud complete`
* `service tiny-cloud incomplete`
* use `${VAR:=default}` idiom instead of `VAR=${VAR:-default}`
* fix inconsequential typo in `imds-net-sync`
25 lines
389 B
Bash
Executable File
25 lines
389 B
Bash
Executable File
#!/sbin/openrc-run
|
|
# vim:set ts=8 noet ft=sh:
|
|
|
|
description="Tiny Cloud Bootstrap - final phase"
|
|
|
|
depend() {
|
|
after *
|
|
provide cloud-final
|
|
}
|
|
|
|
start() {
|
|
source /lib/tiny-cloud/init-final
|
|
|
|
is_bootstrapped && return 0
|
|
|
|
if is_userdata_script; then
|
|
ebegin "Executing UserData Script"
|
|
run_userdata
|
|
eend $?
|
|
fi
|
|
|
|
ebegin "Marking Instance Bootstrap Complete"
|
|
bootstrap_complete
|
|
eend $?
|
|
} |