Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313785 - mount.nilfs2 output wrangling
Summary: mount.nilfs2 output wrangling
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
: 337577 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-08 06:29 UTC by Robin Kauffman
Modified: 2013-02-07 02:21 UTC (History)
2 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 Robin Kauffman 2010-04-08 06:29:32 UTC
Hi-
    I found a "bug" in the nilfs2 mount command, which unfortunately will be made moot with the advent of baselayout-2.  checkroot very intelligently checks to see if a filesystem *wants* to be mounted rw, rather than whether it's mounted rw.  It looks at the output of 'mount -vf -o remount /' to see if it's to be mounted rw, then checks carefully to see if it can be written to in order to be sure.  Ordinarily, mount outputs something like:
/dev/sda3 on / type xfs (rw,noatime)
even when the filesystem is mounted readonly.
If a nilfs2 filesystem is mounted ro, mount.nilfs doesn't spit out the required line that awk expects, so the script fails.  When a nilfs filesystem is mounted rw, mount itself will spit out the required line.  The outcome of this is that the root filesystem in question never is mounted read-write.  What seems to be necessary is to either hide mount.nilfs2 or change its output so that when called (by mount) it spits out the same information that mount does.  Again, baselayout 2 will fix this by doing away with the check (as far as I can tell, which is absolutely fine).
If I figure out how to make mount.nilfs2 output the required information, I will update this bug with a patch (and notify upstream).

        -Robin K.
Comment 1 Robin Kauffman 2010-04-08 06:35:09 UTC
A better fix is to specify the filesystem type of / as rootfs, not nilfs2 (mount will only call mount.nilfs2 if the filesystem is specified to be of type nilfs2 in fstab).
Given both these kludges, you may mark the bug closed.  It's going away anyway.
Comment 2 Tiago Marques 2010-09-07 01:39:24 UTC
(In reply to comment #1)
> A better fix is to specify the filesystem type of / as rootfs, not nilfs2
> (mount will only call mount.nilfs2 if the filesystem is specified to be of type
> nilfs2 in fstab).
> Given both these kludges, you may mark the bug closed.  It's going away anyway.
> 

Using "rootfs" worked perfectly for me. Can this be added to the ebuild for the uninformed?

Best regards
Comment 3 Naohiro Aota gentoo-dev 2013-02-07 02:14:07 UTC
hm, is this still valid? It seems /etc/init.d/root has changed its behavior
Comment 4 Naohiro Aota gentoo-dev 2013-02-07 02:21:08 UTC
*** Bug 337577 has been marked as a duplicate of this bug. ***