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 doesn't run %post #962

Closed
dustymabe opened this issue Aug 28, 2017 · 2 comments
Closed

livefs doesn't run %post #962

dustymabe opened this issue Aug 28, 2017 · 2 comments

Comments

@dustymabe
Copy link
Member

dustymabe commented Aug 28, 2017

rpm-ostree-2017.8-2.fc28.x86_64

If I install an rpm that modifies users/groups and then livefs it, then I end up with a system that doesn't have those users/groups until I reboot the system.

on Rawhide.20170824.n.0 install and livefs httpd:

[root@vanilla-f26atomic ~]# rpm-ostree install httpd
...
[root@vanilla-f26atomic ~]# rpm-ostree ex livefs 
Diff Analysis: f172a6b1bed04219a3e341f6d0d0acf63ef1c9cd885ba1937bae6c4fd3f5aa1e => 9f601752e5757a04a2374
95a28ff3e70d78bb1a40621cc8ca1e66570a250c22f
Files: modified: 5 removed: 0 added: 612
Packages: modified: 0 removed: 0 added: 8
* Configuration changed in /etc
Preparing new rollback matching currently booted deployment
Copying /etc changes: 25 modified, 5 removed, 64 added
Transaction complete; bootconfig swap: yes deployment count change: 1
Overlaying /usr... done
Copying new config files... 5
[root@vanilla-f26atomic ~]# getent group | grep apache
[root@vanilla-f26atomic ~]# getent passwd  | grep apache
[root@vanilla-f26atomic ~]# systemctl start httpd
Job for httpd.service failed because the control process exited with error code.
See "systemctl  status httpd.service" and "journalctl  -xe" for details.
[root@vanilla-f26atomic ~]# journalctl -o cat -u httpd
Starting The Apache HTTP Server...
AH00543: httpd: bad user name apache
httpd.service: Main process exited, code=exited, status=1/FAILURE
Failed to start The Apache HTTP Server.
httpd.service: Unit entered failed state.
httpd.service: Failed with result 'exit-code'.

after reboot the user/group exists.

@cgwalters cgwalters changed the title livefs on an rpm that adds user/groups is broken livefs doesn't run %post Aug 29, 2017
@cgwalters
Copy link
Member

We'll have to cross the "live scripts" issue for cases like live replacement, but this one is actually because we only add files except for the rpmdb, but that excludes /usr/lib/passwd. We'd have to special case that too, or doing #49 would bring it back into the script bucket.

cgwalters added a commit to cgwalters/rpm-ostree that referenced this issue Sep 15, 2017
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

PR in #996

cgwalters added a commit to cgwalters/rpm-ostree that referenced this issue Sep 22, 2017
This gets us to supporting live installs of `httpd` and many
other services.  I also tried `postgresql-server` for example.

Closes: coreos#962
cgwalters added a commit to cgwalters/rpm-ostree that referenced this issue Sep 22, 2017
This gets us to supporting live installs of `httpd` and many
other services.  I also tried `postgresql-server` for example.

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

No branches or pull requests

2 participants