-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add mender-client-data-dir.service file #1695
base: master
Are you sure you want to change the base?
Conversation
@aduskett, Let me know if you want to start the integration pipeline by mentioning me and the command "start pipeline". my commands and optionsYou can trigger a pipeline on multiple prs with:
You can start a fast pipeline, disabling full integration tests with:
You can trigger GitHub->GitLab branch sync with:
You can cherry pick to a given branch or branches with:
|
@mender-test-bot start pipeline --pr mender/1695 |
Hello 😺 I created a pipeline for you here: Pipeline-1545075314 Build Configuration Matrix
|
I'm not sure why this failed as all of the links for the failed tests are not accessible to me. |
@aduskett The mender-qa pipeline has access to internal secrets so we cannot make the CI logs public. Here the error:
Let me know if you need help debugging it |
3e1435a
to
89d511f
Compare
Hey! Thanks for the help! I have no idea what is going on, as a grep for say, mender-authd.service doesn't pull up anything in a FILES list or directory. Where am I supposed to add the new service file? Thanks so much! |
I need to have a look into it at a later time (this week I am busy with something out of regular work). I assigned it to myself 👍 |
@aduskett This error is from Can you elaborate on the motivation on having this file here? So far we consider it system specific, and that is why we have it in If you need it to be in the |
Understandable, but then why does mender-authd.service and mender-client.service require mender-client-data-dir.service? Especially if the data directory (or /var/lib/mender) may already be there. It doesn't seem necessary and more tailored to meta-mender specifically, which, in that case, there isn't any documentation about this requirement, or where mender-client-data-dir.service comes from. |
Sorry for the delay in the response - I've been checking this also internally with some colleagues. The documentation is not crystal clear, but from what I can understand from the man page (and from my local experiments), I believe that From the
With the above I am trying to justify that as it is now is "okey". But all in all @aduskett you have a very valid point and we could have designed this differently - having Can you prepare the work in the three repos (here + |
FYI @TheYoctoJester and @danielskinstad ☝️ |
@lluiscampos Absolutely I can. That sounds like an excellent solution. As for my Yocto experience, I have enough to be dangerous :) |
A boolean |
Both the mender-authd.service and mender-udpated.service files have mender-client-data-dir.service in the "After=" line. However, this service file isn't provided by the mender package. Instead, the mender-client-data-dir.service file currently resides in the meta-mender repository. Even though "After" does not mean "required" it can still be confusing to users as to where this file comes from. Furthermore, a user may not want the service file to exist at all, as their build setup may create the /data directory (or /var/lib/mender) during the image creation. - Move the mender-data-dir.service file into the mender project. - Rename mender-data-dir.service to mender-client-data-dir.service. - Add a new option "MENDER_DATA_DIR_SYSTEMD_UNIT" set to OFF by default. When enabled, the mender-client-data-dir.service file is added to the MENDER_DATA_DIR_SYSTEMD_UNIT list. Changelog: None Ticket: None Signed-off-by: Adam Duskett <[email protected]>
7f828a1
to
7c61612
Compare
ok, this pull request has been updated to use an option. As the option is set to OFF by default, I will make a pull request with the other two repositories once this is merged. Sound good? |
Both the mender-authd.service and mender-udpated.service files have
mender-client-data-dir.service in the "After=" line. However, this
service file isn't provided by the mender package. Instead, the
mender-client-data-dir.service file currently resides in the
meta-mender repository.
Even though "After" does not mean "required" it can still be confusing
to users as to where this file comes from. Furthermore, a user may not
want the service file to exist at all, as their build setup may create
the /data directory (or /var/lib/mender) during the image creation.
Changelog: None
Ticket: None