From 36dff880d52ad0b460f13d651e3b3816383f0bc0 Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Thu, 28 May 2026 10:10:41 +0000 Subject: [PATCH] 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. --- coriolisclient/constants.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/coriolisclient/constants.py b/coriolisclient/constants.py index 10c1981..ca33db8 100644 --- a/coriolisclient/constants.py +++ b/coriolisclient/constants.py @@ -56,12 +56,11 @@ PHASE_OSMORPHING_PRE_OS_MOUNT = "osmorphing_pre_os_mount" # Scripts that are executed after the OS partition is mounted (the default). PHASE_OSMORPHING_POST_OS_MOUNT = "osmorphing_post_os_mount" -# We may eventually add "PHASE_REPLICA_FIRST_BOOT" for convenience, although -# the users can already achieve this by using os-morphing scripts to schedule -# scripts that will be executed at the next boot. This may require import -# provider support. +# Scripts that are executed when the replica VM starts for the first time. +PHASE_REPLICA_FIRST_BOOT = "replica_first_boot" USER_SCRIPT_PHASES = [ PHASE_OSMORPHING_PRE_OS_MOUNT, PHASE_OSMORPHING_POST_OS_MOUNT, + PHASE_REPLICA_FIRST_BOOT, ]