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

Bug 885843

Summary: allow /etc/init.d/localmount to parallel mount local filesystems
Product: Gentoo Linux Reporter: Jaco Kroon <jaco>
Component: Current packagesAssignee: OpenRC Team <openrc>
Status: RESOLVED UPSTREAM    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jaco Kroon 2022-12-14 08:55:30 UTC
37     ebegin "Mounting local filesystems"
 38     mount -at "$types" $no_netdev
 39     eend $? "Some local filesystem failed to mount"

Some mechanism to pass -F to mount there would be great.  This should probably be explicitly enabled by the system administrator and not done by default.  Would have been preferred if there was a max concurrency for -F to mount but it doesn't look like that is possible.  Would have to umount quite a number of filesystems to see how mount -F deals with ~80 filesystems to be mounted. 

Reproducible: Always
Comment 1 Jaco Kroon 2022-12-21 19:57:04 UTC
For reference, reduces mount -a time from close on 40 minutes to 30 seconds.  Not all filesystems we're mounted in this round, but at worst this should take us to ~60s time to mount all filesystems compared to the current 40 minutes.
Comment 2 Jaco Kroon 2023-01-03 09:49:53 UTC
But here is the kicker:

If filesystems have a hierarchy eg:

/var
/var/lib
/var/cache

Then the latter could fail.  This will need to be fixed in mount itself somehow, recommendation to just leave gentoo as-is, unless someone is willing to put in the work for the mount command, not something I have capacity for.

Going to close this as UPSTREAM because it's based on the above a bad idea to do this in current state.