Skip to content

Commit

Permalink
fix(setup): Relocate libexec on OpenBSD
Browse files Browse the repository at this point in the history
our setup.py didn't relocate our USR_LIB_EXEC path on OpenBSD.
Thus, leaving tools installed in /usr/lib/cloud-init on that platform.
OpenBSD ports install things in /usr/local, so follow suit.

Sponsored by: The FreeBSD Foundation
  • Loading branch information
igalic committed Dec 17, 2023
1 parent 4f60ff0 commit f9e78ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def render_tmpl(template, mode=None, is_yaml=False):
ETC = "etc"
USR_LIB_EXEC = "usr/lib"
LIB = "lib"
if os.uname()[0] in ["FreeBSD", "DragonFly"]:
if os.uname()[0] in ["FreeBSD", "DragonFly", "OpenBSD"]:
USR = "usr/local"
USR_LIB_EXEC = "usr/local/lib"
elif os.path.isfile("/etc/redhat-release"):
Expand Down
2 changes: 1 addition & 1 deletion tools/build-on-openbsd
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else
RC_LOCAL="/etc/rc.local"
RC_LOCAL_CONTENT="
/usr/lib/cloud-init/ds-identify
/usr/local/lib/cloud-init/ds-identify
cloud-init init --local
Expand Down

0 comments on commit f9e78ea

Please sign in to comment.