Bug#635473: Finalizing /run transition manually seems to have worked

September 18th, 2011 - 12:50 pm ET by Helge Kreutzmann | Report spam
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.


user rleigh@debian.org
usertags run-transition
thanks

I now transitioned and everything looks fine, buy
1) removing the link /run -> /var/run
2) adjusting /etc/fstab to add /run and comment out /var/run
3) going single user
4) moving all files from /var/run -> /run
5) replacing /var/run with a symlink to /run
6) rebooting

Everything looks fine now.

In the process, I discovered a file called .run-transition in
/var/run, with the contents:
Please reboot to complete migration to tmpfs-based /run

I moved this file as well to /run and it is gone as expected after the
reboot :-))

If I can be of any help, do not hesitate to ask, else close the bug
and hope I'm the only one affected.

Greetings

Helge
Dr. Helge Kreutzmann debian@helgefjell.de
Dipl.-Phys. http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
Help keep free software "libre": http://www.ffii.de/






To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 4 repliesReplies Make a reply

Replies

#1 Roger Leigh
September 18th, 2011 - 02:10 pm ET | Report spam
On Sun, Sep 18, 2011 at 06:46:26PM +0200, Helge Kreutzmann wrote:
user
usertags run-transition
thanks

I now transitioned and everything looks fine, buy
1) removing the link /run -> /var/run


OK

2) adjusting /etc/fstab to add /run and comment out /var/run


/etc/fstab only needs a /run entry if you want to customise the
mount options, otherwise it's automatic.

3) going single user
4) moving all files from /var/run -> /run
5) replacing /var/run with a symlink to /run
6) rebooting



Looks fine to me. Note you also want to symlink /var/lock to
/run/lock.

Everything looks fine now.

In the process, I discovered a file called .run-transition in
/var/run, with the contents:
Please reboot to complete migration to tmpfs-based /run

I moved this file as well to /run and it is gone as expected after the
reboot :-))



That's fine too. Normally that would have been cleaned up when
you rebooted.


For some reason I was never notified when this got reassigned to
sysvinit. Possibly I missed it--less than two weeks until I have
to submit my PhD thesis, so I've been somewhat preoccupied over the
last few weeks!

Regarding the /run vs /var/run symlinks: if the initscripts postinst
thinks you're inside a chroot, it will link /run to /var/run rather
than the other way around. There are a few reasons for this, it's
mainly to do with initscripts not being run inside chroots which
means the transition wouldn't complete if we did things the
"correct" way around. This would be why it went wrong in your
case.

Right now, there shouldn't be any issues. A few months back,
debian-installer would have caused the link to be created the
wrong way around for new installs. This was fixed with the new
base-files, which is now in testing. So unless you're doing things
using virtualisation stuff like vservers or the like, everything
should work correctly. I'm not sure about the specifics of your
installation, but if it was a recent install, it could have
happened then, or if you were using virtualisation.


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.



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics