Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: rfc: openrc mount service prototype
Date: Thu, 30 Jul 2015 16:15:53
Message-Id: 55BA4DAA.1010706@gentoo.org
In Reply to: [gentoo-dev] Re: rfc: openrc mount service prototype by Duncan <1i5t5.duncan@cox.net>
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 30/07/15 01:55 AM, Duncan wrote:
5 > Patrick McLean posted on Wed, 29 Jul 2015 15:35:02 -0700 as
6 > excerpted:
7 >
8 >> On Thu, 30 Jul 2015 01:11:30 +0300 Alon Bar-Lev
9 >> <alonbl@g.o> wrote:
10 >>
11 >>> On 29 July 2015 at 23:20, William Hubbs <williamh@g.o>
12 >>> wrote:
13 >>>>
14 >>>> so that there is a better idea out there of what I'm talking
15 >>>> about, the OpenRC github repository now has a mount-service
16 >>>> branch.
17 >>>
18 >>> But I still trying to figure out why do we need to keep fstab
19 >>> around. It is pure legacy.
20 >>>
21 >>>
22 >> On what planet is fstab pure legacy? Many utilities use it and
23 >> expect it to exist. For example the ability to do "mount /foo"
24 >> requires a properly configured fstab file (also mount -a).
25 >>
26
27 I think there are two meanings of the word legacy here.
28
29 #1, /etc/fstab on linux is not legacy, and I don't think anyone here
30 (except possibly for WilliamH as I can't actually tell from his
31 statements) has been calling it 'legacy' in this context.
32
33 #2, if openrc implements new system mounting which doesn't touch fstab
34 at all, then by definition /etc/fstab and init scripts that leverage
35 commands that use it exclusively (old localmount and netmount) are
36 legacy -- you have the legacy method, and you have the new method.
37 This is still in the openrc context though, and not in the overall
38 context of linux. Alon Bar-Lev's comments are definitely using legacy
39 in this context IMO, and he's right there technically would not be a
40 need for /etc/fstab on his system with openrc mounting things the new
41 way that has been suggested, so long as he doesn't intend to use any
42 tools or commands that expect /etc/fstab in userspace.
43
44 Back to practical matters:
45
46 SO, because /etc/fstab is not legacy (see #1), the new mount system in
47 openrc needs to be aware of and honour /etc/fstab contents. I've no
48 idea how to do this, to be honest, as it seems like a clusterfsck to
49 deal with properly.
50
51 Technically we could require users using openrc from now on to make
52 symlinks for every mountpoint they want to have mounted at boottime,
53 but that's IMO an unacceptable amount of work for something that's
54 never been needed (and IMO never should be -needed-) on linux. As
55 such, IMO, /etc/fstab should not be turned into a legacy (see #2)
56 configuration file by openrc.
57
58 -----BEGIN PGP SIGNATURE-----
59 Version: GnuPG v2
60
61 iF4EAREIAAYFAlW6TakACgkQAJxUfCtlWe2CNQEAmowci81PZYfRr2BJMLCusXEI
62 MiewLIGDmQqhUc1qnEcA/RrvacCqoBTYIzUzbYuxaUgD/4sdaGPZ70WZYupvIsIO
63 =Gr62
64 -----END PGP SIGNATURE-----

Replies