Skip to content

Commit d849af6

Browse files
committed
system/init: added plugin functions
1 parent 386f6da commit d849af6

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎system/cuos/init.sh‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ wait_for_lxc_system_init() {
2929
done
3030
}
3131

32+
patch_system_config() {
33+
:
34+
}
35+
3236
ensure_system_config() {
3337
# Exec first-run if not yet started. E.g. for testing in docker containers.
3438
if [[ ! -f "/etc/active_slot" ]]; then
@@ -118,6 +122,7 @@ ensure_system_config() {
118122
/sbin/reboot
119123
fi
120124
fi
125+
patch_system_config "${CONFIG_PATH}"
121126
}
122127

123128
check_schema_system_json() {
@@ -725,6 +730,14 @@ start_guest_tools() {
725730
esac
726731
}
727732

733+
init_pre() {
734+
:
735+
}
736+
737+
init_post() {
738+
:
739+
}
740+
728741
main() {
729742
set -x
730743

@@ -741,6 +754,8 @@ main() {
741754
state jq '.starting = true'
742755
fi
743756

757+
init_pre
758+
744759
prepare_data_volume
745760

746761
ensure_docker_config_json
@@ -767,6 +782,8 @@ main() {
767782

768783
start_guest_tools
769784

785+
init_post
786+
770787
exit 0
771788
}
772789

0 commit comments

Comments
 (0)