forked from canonical/cloud-init
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ds-identify): relocate /run on *BSD (canonical#4677)
shuffle code-paths around such that we initialize RUN_PATH, and all the things that depend on it after figuring out which OS we're on, while still alowing these global variables to be overwritten from the outside. On BSD /run is not ephemeral, so here we set RUN_PATH to /var/run. Ensure everything is initialized for 'print_info', not just for 'main'. For the tests, we equally ensure that for not-Linux systems the data is written into `rootd + var/run` instead of `rootd + run`. Sponsored by: The FreeBSD Foundation
- Loading branch information
Showing
2 changed files
with
45 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters