Gentoo Archives: gentoo-dev

From: Nirbheek Chauhan <nirbheek@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: use of the /run directory
Date: Mon, 23 May 2011 07:06:20
Message-Id: BANLkTi=N+_5uptxipsL8G60ypPrwazEgvg@mail.gmail.com
In Reply to: Re: [gentoo-dev] rfc: use of the /run directory by Ciaran McCreesh
1 On Mon, May 23, 2011 at 12:00 PM, Ciaran McCreesh
2 <ciaran.mccreesh@××××××××××.com> wrote:
3 > On Tue, 17 May 2011 19:12:38 -0500
4 > William Hubbs <williamh@g.o> wrote:
5 >> On Tue, May 17, 2011 at 11:50:32PM +0100, Ciaran McCreesh wrote:
6 >> > I would be interested to hear how you plan to do the migration,
7 >> > given that everyone else has managed to screw it up...
8 >>
9 >> I'm not sure what you mean here. Openrc git will mount a tmpfs on /run
10 >> if it exists and create a lock directory inside the tmpfs.
11 >>
12 >> To make it work, I just need a new release of baselayout to make the
13 >> /run directory. Then, I also need to figure out where in the boot
14 >> process to make the symbolic links from /var/lock to /run/lock and
15 >> from /var/run to /run.
16 >> what else am I missing?
17 >
18 > The problem is that packages that have things installed to the old
19 > directories are going to get confused when upgraded if things have been
20 > moved around behind their backs.
21 >
22 > You may be better having both directories present, and not attempting
23 > to rename or move things at all. Then start fixing packages that install
24 > to the old directories.
25 >
26
27 As I understand it, that's precisely what William's plan is.
28
29 $ ls -ld /var/{lock/run}
30 /var/lock -> /run/lock
31 /var/run -> /run/
32
33 This should work transparently for all existing applications.
34
35 The only way this would fail is if they do an incorrect stat() on
36 /var/run and error out if it's a symbolic link. OTOH, it's precisely
37 to iron out such kinks that we have ~arch.
38
39 The other problem of daemons needing pre-existing directories is being
40 handled in https://bugs.gentoo.org/show_bug.cgi?id=332633
41
42 Cheers,
43
44 --
45 ~Nirbheek Chauhan
46
47 Gentoo GNOME+Mozilla Team

Replies

Subject Author
Re: [gentoo-dev] rfc: use of the /run directory Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
Re: [gentoo-dev] rfc: use of the /run directory "Michał Górny" <mgorny@g.o>