1 |
Ian Stakenvicius posted on Tue, 04 Aug 2015 17:17:51 -0400 as excerpted: |
2 |
|
3 |
> So what you are suggesting here now is that you want to (A) potentially |
4 |
> break mounting with the need to externally manage mounts via services in |
5 |
> openrc instead of just using /etc/fstab, and (B) also break services if |
6 |
> something doesn't start, which is one of the reasons why you wanted to |
7 |
> go through with this per-mount service in the first place. My point is |
8 |
> that no, we should keep localmount as succeeding even if one of the |
9 |
> dependent services fails to mount, *just like it does right now*, *for |
10 |
> the same reasons* as it succeeds on failure right now. |
11 |
|
12 |
+1 |
13 |
|
14 |
IMO, localmount must continue to succeed /by/ /default/, even if some |
15 |
mounts fail, because it's basically legacy, and must maintain legacy |
16 |
behavior. Turning it into a wrapper "internally" is fine, but the |
17 |
overall localmount must still succeed, as too much depends on that |
18 |
behavior as it is. |
19 |
|
20 |
That also solves the problem (at least as long as the localmount legacy |
21 |
now-wrapper continues to exist) of people with all sorts of strange |
22 |
layouts having to adjust their dependencies manually when they upgrade, |
23 |
as if they don't do anything, the localmount wrapper will still continue |
24 |
to function as it always has. |
25 |
|
26 |
Meanwhile, once the individual mount services are available, people who |
27 |
want a more precise boot can setup individual dependencies as they wish, |
28 |
and then flip a localmount option if they like that lets it fail, but it |
29 |
will _only_ fail if they flip that option. Critically, when they do so, |
30 |
they can also configure exactly which mounts localmount can fail on, with |
31 |
(implementor's choice) either (1) other mounts continuing to always |
32 |
succeed, or (2) other mounts being setup as entirely separate services, |
33 |
that localmount doesn't depend on or wrap any longer. |
34 |
|
35 |
The general idea is that users can setup the separate mount deps for |
36 |
services and mounts they really care about. But localmount will still |
37 |
let them glob those they don't care about together to handle as one, and |
38 |
will let them decide whether that glob can as a whole fail, or not, |
39 |
depending on what way their "don't care" goes. |
40 |
|
41 |
Again, if users do nothing, localmount as a wrapper continues to glob all |
42 |
(not noauto) localmounts, just as it does now, and continues to succeed, |
43 |
just as it does now. At that point, however, it'll be possible to break |
44 |
individual mounts out of the glob if desired, but critically, it'll be |
45 |
user's responsibility to configure deps as appropriate, if they do. |
46 |
|
47 |
And any current localmount-depending services will by default continue to |
48 |
depend on local-mount, so it'll continue to work just as it does now, |
49 |
unless users actually care enough to break out the individual mounts and |
50 |
setup deps for them accordingly. |
51 |
|
52 |
However, as an aid to doing so, "ported" services, instead of killing |
53 |
their localmount dep, will keep it, but will have a nice comment listing |
54 |
exactly what directories they use, so users who want to setup individual |
55 |
mount deps will know exactly what mount deps they need, depending on |
56 |
their system-unique mountpoint setup. |
57 |
|
58 |
-- |
59 |
Duncan - List replies preferred. No HTML msgs. |
60 |
"Every nonfree program has a lord, a master -- |
61 |
and if you use the program, he is your master." Richard Stallman |