[Pkg-sysvinit-devel] need advice: best place to mount /dev/pts early to allow startpar boot concurrency
Kel Modderman
kel at otaku42.de
Fri Jan 2 10:36:00 UTC 2009
On Friday 02 January 2009 08:35:47 maximilian attems wrote:
> On Thu, 01 Jan 2009, Petter Reinholdtsen wrote:
>
> > [Kel Modderman]
> >
> > > So, initramfs is one possible place where /dev/pts can be mounted
> > > before root init takes over, and this works. I confirmed this by
> > > modifying /usr/share/initramfs-tools/scripts/init-bottom/udev to
> > > mount /dev/pts after moving /dev/ tmpfs to $rootmnt and rebuilding
> > > initrramfs cpio.
> >
> > As not all systems uses initramfs, this is not an optimal solution. :(
>
> ack,
> just read bits of startpar(8), but init stuff should better be done
> after run-init called the relevant init(8).
>
> > > The question I would like to ask is, where in your opinion is the best place
> > > to mount /dev/pts:
> > >
> > > 1) by the udev init-bottom script
> > > 2) by a new script which is run in init-bottom after the udev script
> > > 3) somewhere else, maybe /etc/init.d/rcS
> >
> > Another option is to make all scripts executed before /dev/pts/ is
> > mounted "interactive", ie make sure none of them run in parallel.
> > Then startpar do not need to create pseudo terminals and we avoid the
> > problem.
>
> without much knownledge of startpar favouring the last 3 and 4.
Thanks very much for the advice, and Petter for revealing a patch :) Think
I have a patch based on his early patch for newer startpar, which seems to
work.
Thanks, Kel.
More information about the Pkg-sysvinit-devel
mailing list