Skip to content

Fix installation of default conf files.#885

Open
LocutusOfBorg wants to merge 1 commit into
COVESA:masterfrom
LocutusOfBorg:patch-3
Open

Fix installation of default conf files.#885
LocutusOfBorg wants to merge 1 commit into
COVESA:masterfrom
LocutusOfBorg:patch-3

Conversation

@LocutusOfBorg

Copy link
Copy Markdown
Contributor

CMAKE_INSTALL_SYSCONFDIR points to /etc, and this is where the location of configuration files has to be found.

Otherwise, it becomes /usr/etc, and with configuration files installed elsewhere (/etc), there is a mismatch between where the code tries to find the file, and where the file is actually located, e.g.

INSTALL(FILES dlt-system.conf
DESTINATION ${CONFIGURATION_FILES_DIR}
COMPONENT base)

This makes the conf file not being correctly evaluated on startup, because the systemd service script doesn't pass any value for "-c" switch

CMAKE_INSTALL_SYSCONFDIR points to /etc, and this is where the location of configuration files has to be found.

Otherwise, it becomes /usr/etc, and with configuration files installed elsewhere (/etc), there is a mismatch between where the code tries to find the file, and where the file is actually located, e.g.

INSTALL(FILES dlt-system.conf
        DESTINATION ${CONFIGURATION_FILES_DIR}
        COMPONENT base)

This makes the conf file not being correctly evaluated on startup, because the systemd service script doesn't pass any value for "-c" switch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant