Skip to content
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

livefs: Update /usr/lib/{passwd,group}, run systemd-tmpfiles #996

Closed
wants to merge 2 commits into from

Conversation

cgwalters
Copy link
Member

This gets us to supporting live installs of httpd and many
other services. I also tried postgresql-server for example.

Closes: #962


rpmostree_output_task_end ("done");

rpmostree_output_task_begin ("Running systemd-tmpfiles for /run,/var");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can easily make this conditional, right? We're already analyzing file paths before we being, so maybe let's look for tmpfiles.d files too?

@@ -65,16 +65,26 @@ vm_build_rpm test-livefs-with-etc \
/etc/%{name}/*
/etc/opt/%{name}*"

# Simualte a service that adds a user and has data in tmpfiles.d
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Simulate

This gets us to supporting live installs of `httpd` and many
other services.  I also tried `postgresql-server` for example.

Closes: coreos#962
@cgwalters
Copy link
Member Author

Rebased and updated to only run tmpfiles as needed.

@cgwalters
Copy link
Member Author

bot, retest this please

/* Only dump stderr if it actually failed; otherwise we know
* there are (harmless) warnings, no need to bother everyone.
*/
sd_journal_print (LOG_ERR, "systemd-tmpfiles failed: %s", stderr_buf);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should set an error too in this path, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Good catch. Fixup ⬇️

@jlebon
Copy link
Member

jlebon commented Sep 25, 2017

Hmm, that's odd.

Found the string 'avc:  denied' in the journal

@jlebon
Copy link
Member

jlebon commented Sep 25, 2017

Filed #1006 for that one.

@jlebon
Copy link
Member

jlebon commented Sep 25, 2017

@rh-atomic-bot r+ e4e6600

@rh-atomic-bot
Copy link

⌛ Testing commit e4e6600 with merge 13f307d...

@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: jlebon
Pushing 13f307d to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants