Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249971 - sys-apps/openrc-0.3.0-r1 doesn't respect fstab options for root filesystem if initrd genkernel is not used
Summary: sys-apps/openrc-0.3.0-r1 doesn't respect fstab options for root filesystem if...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 20:47 UTC by Jan Oravec
Modified: 2009-02-11 14:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Oravec 2008-12-05 20:47:35 UTC
Root filesystem options in /etc/fstab are not respected by openrc-0.3.0-r1 on machines without inird.

I have this line in /etc/fstab:

/dev/xvda1      /                       ext3            noatime,acl             0 1

'mount' command shows:

rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,errors=continue,data=ordered)

/proc/mounts contains:

/dev/root / ext3 rw,errors=continue,data=ordered 0 0

Service /etc/init.d/root has 'started' status. Re-running command "mount -n -o remount,rw /" (from /etc/init.d/root) results in updated /proc/mounts with correct filesystem options, but 'mount' command still gives old results (as mtab was not updated).

It is strange that root filesystem device is referred as /dev/root instead of /dev/xvda1.

My other machines which use initrd to initialize LVM haven't this problem.


Reproducible: Always

Steps to Reproduce:
Comment 1 Jan Oravec 2008-12-05 21:03:06 UTC
Ok, found the issue - if kernel mounts the filesystem as read-write, openrc doesn't try to remount it with correct filesystem options.

Keeping bug open, as it may need either fixing openrc or adding note to documentation.
Comment 2 Yaroslav Isakov 2009-01-18 16:32:36 UTC
Also probably thes same bug - why I have two lines for /:
# mount
rootfs on / type rootfs (rw)
/dev/sdb2 on / type ext3 (rw,noatime,errors=continue,data=ordered)
# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/sdb2 / ext3 rw,noatime,errors=continue,data=ordered 0 0

I have only one line in my fstab for /:
/dev/sdb2 / ext3 noatime 0 1

I'm using openrc-0.4.2
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2009-02-11 14:56:44 UTC
If you have your kernel setup to mount your root as rw this won't work on any distro. All check to see if root is rw and will only remount if it's not.

Basically the solution here, is either don't have the kernel mount your root partition rw or setup the proper mount settings with tune2fs so the kernel mounts it with the correct settings.