[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: installing udev without rebooting



On Sat, 2004-12-18 at 18:31 -0500, Andres Salomon wrote:
> On Sat, 18 Dec 2004 20:18:01 +0100, Marco d'Itri wrote:
> 
> > Currently, after installing udev a reboot is needed to let the init script
> > safely mount the tmpfs over /dev. This sucks, and I'm asking for
> > suggestions about what I need to do to make reboot-less installation
> > possible.
> > 
> > So far, I know that I need to:
> > - mount --move /dev/pts and /dev/shm somewhere else - mount the tmpfs
> > - move back --move /dev/pts and /dev/shm - run udevstart
> > - restart gpm (for the /dev/gpmdata pipe) and syslogd (for the /dev/log
> >   socket)
> > 
> > Should I just ignore races?
> 
> How about:
> 
> D=(tempfile)
> rm $D && mkdir $D
> mount --bind /dev $D
> 
> At this point, you should be able to mount tmpfs over /dev, and still
> access the old contents of /dev from the $D directory.  `find $D -type s`
> should give you a list of all sockets that should be moved (I can't think
> of any cases where something would create a socket in /dev that shouldn't
> be moved over).
> 
> Bind mounts are available as of 2.4.

What is tempfile, in this case?

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

No matter how hard women work, train, excersize (and some of the
woment in the Olympics were *muscular*), lose body fat, or get
Title IX money, (the population of athletic) women will *never*
be faster, stronger or better at sports(*) than (the population
of athletic) men. (*Excluding "small sports" like darts.) It's
just how men and women have evolved. Deal with it.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: