Dealing with bug 232347 for putting critical filesystems (/var) on iSCSI, and I was wondering why net.lo needs localmount. For non-loopback devices, sure I can see a need for /usr, but for loopback itself we should be able to start right after root. Patch attached.
Created attachment 209992 [details, diff] net.lo-earlier.patch
This will break people who configure a domain/nameserver against the loopback interface and have resolvconf installed as resolvconf needs /var/run
http://roy.marples.name/projects/openresolv/changeset/85fbb935f36c0f1920b250005254b0ba34e96c27 This allows the user to configure the resolvconf state dir, to say /lib[exec]/rc/init.d/resolvconf or /dev/shm/resolvconf It may be an idea to add a new use flags to the openresolv ebuild. shm use flag (linux only systems) and/or openrc use flag (/lib/rc/init.d/resovlconf) so that the default var dir is changed and this change works by default.
I propose we take that patch, anybody using resolvconf in that manner needs to add localmount as a dep of net.lo or use the -I option to not use /var.
Robin, I think this bug got lost in the shuffel somewhere. (In reply to comment #4) > I propose we take that patch, anybody using resolvconf in that manner needs to > add localmount as a dep of net.lo or use the -I option to not use /var. Which patch are you referring to? Comment #3 seems to give a good solution, but you also have a patch in comment #1. Can you clarify? Thanks, William
williamh: the resolvconf patch should already be in the tree, so it's just the other one. The other idea I had is checking /etc/resolv.conf for 127.0.0.1 and doing the same as current if that's detected.
Commit 8e92536 contains the patch from comment #1 as well as documentation on how to adjust dependencies if necessary. In further testing, I found that net.lo was not starting any earlier, so commits 85827d4 and 03cd55a were added to fix this. Now the loopback interface starts right after the root filesystem is mounted read/write.
I am reopening this bug because the fixes for it caused bug #363693. I plan to revert these fixes, so my next question is, should this bug block stabilization? I'm thinking not, but I want comments from others on the team.
I am removing this from the tracker for stabilization. It does need to be looked at again, but I think it can wait until after openrc is stable.
WilliamH: I'm thinking this one should go either go away because there are more and more tools that have to live in /usr anyway with their libraries.
Agreed, there isn't much we can do about this.
There isn't anything we can do about this because more and more tools are moving to /usr anyway.