mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-15 11:22:43 +03:00
* numerous imds script enhancements, including -h/--help * check imds for secondary ipv4 & ipvs via ifupdown-ng executor * simplify shell source to things /etc/conf.d/ and /lib/tiny-cloud/ * move log function to /lib/tiny-cloud/common
29 lines
449 B
Bash
Executable File
29 lines
449 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
|
|
|
|
ebegin "Saving Instance UserData"
|
|
save_userdata
|
|
eend $?
|
|
|
|
if is_userdata_script; then
|
|
ebegin "Executing UserData Script"
|
|
run_userdata
|
|
eend $?
|
|
fi
|
|
|
|
ebegin "Marking Instance Bootstrap Complete"
|
|
bootstrap_complete
|
|
eend $?
|
|
} |