Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 487382

Summary: openrc: /etc/init.d/mount-ro inistscript redundancy
Product: Gentoo Linux Reporter: Patrick Lauer <patrick>
Component: New packagesAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 481182    

Description Patrick Lauer gentoo-dev 2013-10-09 06:02:50 UTC
# Flush all pending disk writes now
        sync; sync

This is needless duplication, see for example:

http://utcc.utoronto.ca/~cks/space/blog/unix/TheLegendOfSync
Comment 1 William Hubbs gentoo-dev 2013-10-09 16:18:16 UTC
That example isn't quite clear on whether I should remove all sync
commands or keep one?
Comment 2 Patrick Lauer gentoo-dev 2013-10-10 05:23:15 UTC
Keep one, the second one is redundant.
Comment 3 William Hubbs gentoo-dev 2013-10-18 22:16:00 UTC
I found the same issue in localmount. These are both fixed in commit
d2988dc and will be included in OpenRC-0.13.