Skip to content

Commit 36dff88

Browse files
Expose replica_first_boot user script phase
The Coriolis API now accepts the "replica_first_boot" user script phase. We'll update the client accordingly.
1 parent 121576b commit 36dff88

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

coriolisclient/constants.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@
5656
PHASE_OSMORPHING_PRE_OS_MOUNT = "osmorphing_pre_os_mount"
5757
# Scripts that are executed after the OS partition is mounted (the default).
5858
PHASE_OSMORPHING_POST_OS_MOUNT = "osmorphing_post_os_mount"
59-
# We may eventually add "PHASE_REPLICA_FIRST_BOOT" for convenience, although
60-
# the users can already achieve this by using os-morphing scripts to schedule
61-
# scripts that will be executed at the next boot. This may require import
62-
# provider support.
59+
# Scripts that are executed when the replica VM starts for the first time.
60+
PHASE_REPLICA_FIRST_BOOT = "replica_first_boot"
6361

6462
USER_SCRIPT_PHASES = [
6563
PHASE_OSMORPHING_PRE_OS_MOUNT,
6664
PHASE_OSMORPHING_POST_OS_MOUNT,
65+
PHASE_REPLICA_FIRST_BOOT,
6766
]

0 commit comments

Comments
 (0)