1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-15 11:22:43 +03:00
tiny-cloud/etc/init.d/tiny-cloud-final
Jake Buchholz Göktürk 1d2618dfd0 * imds is now an executable script
* 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
2022-01-24 19:07:35 -08:00

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 $?
}