Skip to content

Commit

Permalink
ds-identify: override environment variables on FreeBSD
Browse files Browse the repository at this point in the history
override PATH_DI_CONFIG and PATH_ETC_CLOUD when executing ds-identify \
on startup.

Inconviniently, we can't just override PATH_ROOT, because that would set
/run to /usr/local/run and /var/lib/cloud to /usr/local/var/lib/cloud.

In the future we will want to override /run, but we can't do that just
yet without also ensuring that the python code can relocate /run.

Fixes: GH-4481
Sponsored by: The FreeBSD Foundation
  • Loading branch information
igalic committed Oct 4, 2023
1 parent 7476851 commit 9145a49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sysvinit/freebsd/dsidentify.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ load_rc_config 'cloudinit'

: ${cloudinit_enable="NO"}
: ${cloudinit_dsidentify_enable="YES"}
: ${cloudinit_env"PATH_DI_CONFIG={{ prefix }}/etc/cloud/ds-identify.cfg PATH_ETC_CLOUD={{ prefix }}/etc/cloud"}

run_rc_command "$1"

0 comments on commit 9145a49

Please sign in to comment.