Bug 4166

Summary: /usr partition gets mounted read-only by systemd-sysvinit
Product: Mageia Reporter: Chris Denice <eatdirt>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact: Colin Guthrie <mageia>
Severity: normal    
Priority: Normal CC: dmorganec
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: systemd-38-4.mga2.src.rpm CVE:
Status comment:
Bug Depends on:    
Bug Blocks: 2120    

Description Chris Denice 2012-01-17 11:46:48 CET
Hi there,
if you have a  "/usr" partition and uses sysvinit to boot then you end up with a system having /usr mounted read-only.

Looking to the logs, it looks like dracut mount anc check first the partitions "/" and "/usr" partitions. Then, sysvinit try to check them, but fails because they are already mounted by dracut. I don't know why "/" ends up being mounted rw wheares /usr remains ro.

The mounting goes fine if I use systemd; so it looks like an interaction pb in between dracut and sysvinit.
My fstab looks like this:


# Entry for /dev/sda1 :
UUID=5243cfa3-260f-4ebc-ae89-e4f1a4713f5d / ext4 acl,relatime 1 1
# Entry for /dev/sda7 :
UUID=06a67d1a-8d4d-4127-b775-a648873d57ec /usr ext4 acl,relatime 1 2

Cheers,
chris.
Manuel Hiebel 2012-01-17 18:13:22 CET

Blocks: (none) => 2120

Comment 1 Thierry Vignaud 2012-01-17 23:05:40 CET
Are you using dracut or mkinitrd?

Keywords: (none) => NEEDINFO
QA Contact: (none) => mageia

Comment 2 Chris Denice 2012-01-17 23:12:58 CET
dracut, it logs some message at boot claiming to check/mount / and /usr.
Comment 3 Colin Guthrie 2012-01-18 11:36:47 CET
Yeah dracut mounts it readonly... I'm not sure if it's dracuts job to mount it rw initially, or systemd's job to remount it rw.... will ask upstream.
Colin Guthrie 2012-01-18 11:36:55 CET

Status: NEW => ASSIGNED

Comment 4 D Morgan 2012-02-11 03:36:48 CET
what about this bug with systemd 40 ?

CC: (none) => dmorganec

Comment 5 Chris Denice 2012-02-12 23:56:26 CET
Still there for the time being, but as Colin say, comes from dracut. So, it is also there with both systemd-sysvinit and sysvinit.

Cheers,
Chris.
Comment 6 Colin Guthrie 2012-02-13 09:54:10 CET
I know this is actually fixed in latest dracut upstream, so it will be fixed when I get round to updating it (should be this week now I'm back from hols)
Comment 7 Chris Denice 2012-02-13 11:24:20 CET
Cool, thanks!
Comment 8 Chris Denice 2012-02-17 10:00:29 CET
Just to say that that works now, thanks guys, as far as I am concerned you can close the bug.

Cheers.
Comment 9 Colin Guthrie 2012-02-17 10:06:30 CET
Oh yeah, forgot to close this off. Thanks :)

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED