Bug 1108568 - systemd-tmpfiles using --root option can't find configfiles
Summary: systemd-tmpfiles using --root option can't find configfiles
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1107667
TreeView+ depends on / blocked
 
Reported: 2014-06-12 09:15 UTC by Radek Vykydal
Modified: 2014-07-20 00:43 UTC (History)
7 users (show)

Fixed In Version: systemd-215-4.fc21
Clone Of:
Environment:
Last Closed: 2014-07-20 00:43:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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