Skip to content

Commit

Permalink
FreeBSD init: use cloudinit_enable as only rcvar
Browse files Browse the repository at this point in the history
all components of cloudinit need to run, and in a specific order.
If cloudinit is to be enabled, it should only rely on one variable.
This change better encodes that.
  • Loading branch information
igalic committed Nov 23, 2022
1 parent 65eb520 commit 822b8a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sysvinit/freebsd/cloudconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ cloudconfig_start()
${command} modules --mode config
}

load_rc_config $name
load_rc_config $rcvar

: ${cloudconfig_enable="NO"}
: ${cloudinit_enable="NO"}

run_rc_command "$1"
4 changes: 2 additions & 2 deletions sysvinit/freebsd/cloudfinal
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ cloudfinal_start()
${command} modules --mode final
}

load_rc_config $name
load_rc_config $rcvar

: ${cloudfinal_enable="NO"}
: ${cloudinit_enable="NO"}

run_rc_command "$1"
2 changes: 1 addition & 1 deletion sysvinit/freebsd/cloudinit
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cloudinit_start()
${command} init
}

load_rc_config $name
load_rc_config $rcvar

: ${cloudinit_enable="NO"}

Expand Down
4 changes: 2 additions & 2 deletions sysvinit/freebsd/cloudinitlocal
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ cloudlocal_start()
${command} init --local
}

load_rc_config $name
load_rc_config $rcvar

: ${cloudinitlocal_enable="NO"}
: ${cloudinit_enable="NO"}

run_rc_command "$1"

0 comments on commit 822b8a0

Please sign in to comment.