Bug 1108568

Summary: systemd-tmpfiles using --root option can't find configfiles
Product: [Fedora] Fedora Reporter: Radek Vykydal <rvykydal>
Component: systemdAssignee: systemd-maint
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: johannbg, lnykryn, msekleta, s, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-215-4.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-20 00:43:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1107667    

Description Radek Vykydal 2014-06-12 09:15:00 UTC
Description of problem:

Running systemd-tmpfiles from anaconda/installer environment with --root option. Config files from <root>/usr/lib/tmpfiles.d are not applied

Version-Release number of selected component (if applicable):

systemd 213

How reproducible:

We are calling this with python's subprocess.Popen:

systemd-tmpfiles --create --boot --root=/mnt/sysimage/ostree/deploy/fedora-atomic/deploy/60506ba30bdd1a5070dda106492f4bacd2cf947026f615343e78437608947c71.0 --prefix=/var/home

Actual results:

Configuration from

/mnt/sysimage/ostree/deploy/fedora-atomic/deploy/60506ba30bdd1a5070dda106492f4bacd2cf947026f615343e78437608947c71.0./usr/lib/tmpfiles.d

is not applied.

Comment 1 Lukáš Nykrýn 2014-06-12 09:25:44 UTC
It looks to me that path_strv_canonicalize from path-util is completely broken. For example if the path with prefix does not exist it returns the path without prefix. That means for example when /mnt/sysimage/ostree/deploy/fedora-atomic/deploy/60506ba30bdd1a5070dda106492f4bacd2cf947026f615343e78437608947c71.0//run/tmpfiles.d does not exist it will return /run/tmpfiles.d

Comment 2 Lukáš Nykrýn 2014-06-12 10:26:27 UTC
Or it is correct, and the code in tmpfiles is wrong. Which looks more probable.

Comment 4 Radek Vykydal 2014-06-17 08:27:09 UTC
Hi, any estimate about when we could have systemd-tmpfiles patched?

Comment 5 Lennart Poettering 2014-06-20 10:27:50 UTC
Fixed in git now.