Bug 704783

Summary: systemd conflicts with readonly-root TEMPORARY_STATE
Product: [Fedora] Fedora Reporter: Daniel Drake <dsd>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: iarlyy, jboggs, johannbg, jonathan, lpoetter, metherid, mschmidt, notting, plautrba, rvokal
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: 2011-06-24 18:55:40 UTC Type: ---
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
potential patch none

Description Daniel Drake 2011-05-14 21:52:20 UTC
Testing rawhide on OLPC XO laptops.

In /etc/sysconfig/readonly-root we set TEMPORARY_STATE=yes

This means that various paths listed in /etc/rwtab get mounted as tmpfs, avoiding writes to the underlying disk in those paths.

/etc/rwtab contains (by default) /var/run, which is now a symlink to /run, which is important for systemd.

So what happens now is that systemd creates an important socket in /run very early on, then later on during boot, the rwtab system mounts a new tmpfs over /run, which causes systemd to be quite unhappy, as described in the thread at http://lists.freedesktop.org/archives/systemd-devel/2011-May/002253.html

Not sure if this bug is in systemd or in initscripts - please reassign if I guessed wrong.

Comment 1 Lennart Poettering 2011-05-15 13:14:20 UTC
This needs to be fixed in whatever package provides rwtab. Which seems to be initscripts. Reassigning. (in fact, rwtab could use a number of fixes, like for example removing /media.

Comment 2 Bill Nottingham 2011-05-16 18:31:41 UTC
Created attachment 499210 [details]
potential patch

Does this work for you? It fixes the obviously wrong entries.

Comment 3 Joey Boggs 2011-06-23 18:54:19 UTC
Bill, 

Works for me testing F15 based ovirt-node livecd. systemctl reports all the right info.

Comment 4 Bill Nottingham 2011-06-24 18:55:28 UTC
Thanks, added as http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=103b0cc1dd6f5c1ad903076f7c362fb0397edfc8, will be in a future F-15 update.