Bug 1059749

Summary: rwtab files with trailing - no longer mounted tmpfs
Product: [Fedora] Fedora Reporter: Marcus Moeller <marcus.moeller>
Component: initscriptsAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jonathan, lnykryn, rhbgs.10.bigi_gigi, vpavlin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-16 11:51:36 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:
Attachments:
Description Flags
patch to address the problem none

Description Marcus Moeller 2014-01-30 14:44:59 UTC
When I add a file with a trailing - (like /etc/passwd-) to rwtab, it is no longer mounted to tmpfs.

This worked fine on Fedora 19, but does no longer on Fedora 20 with:

initscripts-9.51-1

Comment 1 Marcus Moeller 2014-01-30 14:57:38 UTC
systemd.mount seems to use - as path delimiter. On files which contains - within the filename these are replaced by \x2d. But adding e.g. /etc/passwd\x2d did not help.

Comment 2 Marcus Moeller 2014-02-18 11:06:12 UTC
It still worked till initscripts.x86_64 0:9.50-1.fc20 so it must have been introduced in the latest changeset. Maybe with this one:

- readonly-root: bind-mount only necessary subset of entries in rwtab

Comment 3 Marcus Moeller 2014-02-18 11:56:20 UTC
Created attachment 864497 [details]
patch to address the problem

do not check for possible duplicates on files, but for directories.

Comment 4 Marcus Moeller 2014-04-07 07:11:26 UTC
Is there any update on that? @Lukáš could you please integrate the above patch?

Comment 5 Václav Pavlín 2014-04-16 11:51:36 UTC
Hi Marcus, thanks, it's fixed in upstream now - https://git.fedorahosted.org/cgit/initscripts.git/commit/?id=32e8cbc1c91ada764ef4b5bb817b0c045d3fb3a4