FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 05-14-2011, 06:02 PM
Joey Hess
 
Default /run in *unstable*: migration of /lib/init/rw, /dev/.*

Roger Leigh wrote:
> Packages using /lib/init/rw
>
> debootstrap

Umounted on exit.. If it's a symlink will umount follow the link and try
to umount something else?

Also console-setup (setupcon)

> Packages using /dev/.*

> Packages using /etc
> /etc/adjtime

(FWIW, d-i relies on hwclock writing to /etc/adjtime)

busybox has some code too

> /etc/mtab - symlink to /proc/self/mounts (494001)

debootstrap (but seems ok; only removes file not symlink)

busybox

lilo-installer
aboot-installer
debian-installer-utils
grub-installer
arcboot-installer
palo-installer
elilo-installer

Any of these could break even with the symlink if, for example,
/target/proc is not mounted when they try to use /target/etc/mtab.
Several I've looked at (lilo-installer and grub-installer) try to
overwrite /etc/mtab.

> /etc/network/run/ifstate - ifupdown - (623523)

busybox (comment only; seems to be configured to use /var/run/ifstate).

--
see shy jo
 
Old 05-14-2011, 06:11 PM
Tollef Fog Heen
 
Default /run in *unstable*: migration of /lib/init/rw, /dev/.*

]] Kurt Roeckx

| On Sat, May 14, 2011 at 04:55:01PM +0100, Roger Leigh wrote:
| > Packages using /etc
| > /etc/adjtime
|
| That file should probably not be in /etc in the first place,
| but be somewhere under /var/lib. Since FHS 2.2 it even mentions
| that this file should be /var/lib/hwclock/adjtime.

It should be on the root fs, else your clock will be wrong in early
bootup leading to all kinds of bugs.

--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87mxipgnjh.fsf@qurzaw.varnish-software.com">http://lists.debian.org/87mxipgnjh.fsf@qurzaw.varnish-software.com
 
Old 05-14-2011, 06:15 PM
Tollef Fog Heen
 
Default /run in *unstable*: migration of /lib/init/rw, /dev/.*

]] Roger Leigh

| Packages using /lib/init/rw

[...]

| systemd

systemd's special, because it's an init and so it'll keep referencing
/lir until we decide it should go away.

| Packages using /dev/.*

[...]

| systemd - /dev/.systemd/ (v25 uses /run/systemd)

v25/v26 has been waiting for newer initscripts for a while so I could
upload to unstable, so v26 will be uploaded very soon.

--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87iptdgncm.fsf@qurzaw.varnish-software.com">http://lists.debian.org/87iptdgncm.fsf@qurzaw.varnish-software.com
 
Old 05-14-2011, 06:34 PM
Henrique de Moraes Holschuh
 
Default /run in *unstable*: migration of /lib/init/rw, /dev/.*

On Sat, 14 May 2011, Tollef Fog Heen wrote:
> ]] Kurt Roeckx
> | On Sat, May 14, 2011 at 04:55:01PM +0100, Roger Leigh wrote:
> | > Packages using /etc
> | > /etc/adjtime
> |
> | That file should probably not be in /etc in the first place,
> | but be somewhere under /var/lib. Since FHS 2.2 it even mentions
> | that this file should be /var/lib/hwclock/adjtime.
>
> It should be on the root fs, else your clock will be wrong in early
> bootup leading to all kinds of bugs.

Indeed. We've dissected this issue before, there's a thread about it in the
d-devel archives.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110514183453.GC7171@khazad-dum.debian.net">http://lists.debian.org/20110514183453.GC7171@khazad-dum.debian.net
 
Old 05-15-2011, 07:58 AM
Tollef Fog Heen
 
Default /run in *unstable*: migration of /lib/init/rw, /dev/.*

]] Henrique de Moraes Holschuh

| On Sat, 14 May 2011, Tollef Fog Heen wrote:
| > ]] Kurt Roeckx
| > | On Sat, May 14, 2011 at 04:55:01PM +0100, Roger Leigh wrote:
| > | > Packages using /etc
| > | > /etc/adjtime
| > |
| > | That file should probably not be in /etc in the first place,
| > | but be somewhere under /var/lib. Since FHS 2.2 it even mentions
| > | that this file should be /var/lib/hwclock/adjtime.
| >
| > It should be on the root fs, else your clock will be wrong in early
| > bootup leading to all kinds of bugs.
|
| Indeed. We've dissected this issue before, there's a thread about it in the
| d-devel archives.

I've filed this as a bug[1] against the FHS now, making it a 3.0 blocker,
so hopefully we can get this fixed soon.

[1]: http://bugs.linux-foundation.org/show_bug.cgi?id=790

--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87aaeogzsz.fsf@qurzaw.varnish-software.com">http://lists.debian.org/87aaeogzsz.fsf@qurzaw.varnish-software.com
 
Old 07-09-2011, 10:26 AM
Roger Leigh
 
Default /run in *unstable*: migration of /lib/init/rw, /dev/.*

On Sat, May 14, 2011 at 02:02:01PM -0400, Joey Hess wrote:
> Roger Leigh wrote:
>
> > /etc/mtab - symlink to /proc/self/mounts (494001)
>
> debootstrap (but seems ok; only removes file not symlink)
>
> busybox

Not configured to use or write /etc/mtab AFAICT
(CONFIG_FEATURE_MTAB_SUPPORT is not set)

> lilo-installer
> aboot-installer
> debian-installer-utils
> grub-installer
> arcboot-installer
> palo-installer
> elilo-installer
>
> Any of these could break even with the symlink if, for example,
> /target/proc is not mounted when they try to use /target/etc/mtab.
> Several I've looked at (lilo-installer and grub-installer) try to
> overwrite /etc/mtab.

I've had a look at all of these, and they all contain logic to
check for a symlink, and abort if one is present. Some would
try to read the symlink, so it looks like the main cause of
breakage would be (as you said avoid) if /target/proc is not
mounted.

Surely /target/proc can be mounted prior to any of the above
being run? I'm not too familiar with the installer, but I
thought this was already the case?


Regards,
Roger

--
.'`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
 

Thread Tools




All times are GMT. The time now is 06:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org