Bug 1702226 - [silverblue] Running %post for pcp: Executing bwrap(/bin/sh): Child process killed by signal 1
Summary: [silverblue] Running %post for pcp: Executing bwrap(/bin/sh): Child process k...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: pcp
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nathan Scott
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1717966 (view as bug list)
Depends On:
Blocks: 1352154
TreeView+ depends on / blocked
 
Reported: 2019-04-23 09:15 UTC by Enrico Tagliavini
Modified: 2019-08-19 03:41 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Enrico Tagliavini 2019-04-23 09:15:42 UTC
Description of problem:
When installing the pcp package via rpm-ostree install pcp on Fedora Silverblue the installation fails with error

Running post scripts... done
error: Running %post for pcp: Executing bwrap(/bin/sh): Child process killed by signal 1; run `journalctl -t 'rpm-ostree(pcp.post)'` for more information


Version-Release number of selected component (if applicable):
pcp-4.3.1-2.fc29.x86_64

How reproducible:
always

Steps to Reproduce:
1. install fedora silverblue 29
2. rpm-ostree install pcp (or any package depending on it)

Actual results:
Installation fails

Expected results:
Installation should be successful

Additional info:

journalctl -t 'rpm-ostree(pcp.post)' output:

Apr 23 11:12:08 localhost.localdomain rpm-ostree(pcp.post)[1945]: touch: cannot touch '/var/lib/pcp/pmns/.NeedRebuild': No such file or directory
Apr 23 11:12:08 localhost.localdomain rpm-ostree(pcp.post)[1945]: chmod: cannot access '/var/lib/pcp/pmns/.NeedRebuild': No such file or directo>
Apr 23 11:12:08 localhost.localdomain rpm-ostree(pcp.post)[1945]: /usr/pcp.post: line 52: cd: /var/lib/pcp/pmns: No such file or directory
Apr 23 11:12:08 localhost.localdomain rpm-ostree(pcp.post)[1945]: /usr/pcp.post: line 53: cd: HOME not set

Comment 1 Jonathan Lebon 2019-07-25 14:59:47 UTC
This is because rpm-ostree by default doesn't allow writing to `/var` from scriptlets. For more information on this and other rpm-ostree "adaptations" required, see https://bugzilla.redhat.com/show_bug.cgi?id=1352154 and https://bugzilla.redhat.com/show_bug.cgi?id=1703203#c1.

In this case, offhand, it seems like pcp would need to be adapted as such:
- tmpfiles entries to create necessary dirs under /var
- run whatever rebuild scripts needed at startup time, rather than %post time

Comment 2 Nathan Scott 2019-08-19 03:41:32 UTC
*** Bug 1717966 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.