* [gentoo-dev] Prelink and init
@ 2004-09-09 17:00 Stefan Jones
2004-09-09 17:22 ` Mike Frysinger
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Jones @ 2004-09-09 17:00 UTC (permalink / raw
To: gentoo-dev
Hi all,
I am trying to bury bug http://bugs.gentoo.org/show_bug.cgi?id=42929
If you run prelink and change /sbin/init then you have to run "init u"
otherwise you cannot unmount the root filesystem as the kernel has a
stray mmap memory segment relating to the old /sbin/int executable.
"init u" re-executes the binary getting rid of the old mmap.
Now the old solution I can think of is a quick hack in the main()
function of the prelink executable to run this command automatically if
/sbin/init is changed. This can be disabled with a command line switch.
Any comments, if no other solutions I will implement it,
Stefan
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] Prelink and init
2004-09-09 17:00 [gentoo-dev] Prelink and init Stefan Jones
@ 2004-09-09 17:22 ` Mike Frysinger
2004-09-09 17:40 ` Stefan Jones
0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2004-09-09 17:22 UTC (permalink / raw
To: gentoo-dev
On Thursday 09 September 2004 01:00 pm, Stefan Jones wrote:
> If you run prelink and change /sbin/init then you have to run "init u"
> otherwise you cannot unmount the root filesystem as the kernel has a
> stray mmap memory segment relating to the old /sbin/int executable.
>
> "init u" re-executes the binary getting rid of the old mmap.
what about we add this to the init scripts ?
if the remount fails, try running `init u` and then umounting again ?
-mike
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] Prelink and init
2004-09-09 17:22 ` Mike Frysinger
@ 2004-09-09 17:40 ` Stefan Jones
2004-09-09 18:18 ` Stefan Jones
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Jones @ 2004-09-09 17:40 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-dev
I do not think you can call "init u" or that it will not do anything if
init is in the process of changing runlevels.
I may be wrong, but that is why I discarded that solution.
Stefan
On Thu, 2004-09-09 at 10:22, Mike Frysinger wrote:
> On Thursday 09 September 2004 01:00 pm, Stefan Jones wrote:
> > If you run prelink and change /sbin/init then you have to run "init u"
> > otherwise you cannot unmount the root filesystem as the kernel has a
> > stray mmap memory segment relating to the old /sbin/int executable.
> >
> > "init u" re-executes the binary getting rid of the old mmap.
>
> what about we add this to the init scripts ?
> if the remount fails, try running `init u` and then umounting again ?
> -mike
>
> --
> gentoo-dev@gentoo.org mailing list
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-dev] Prelink and init
2004-09-09 17:40 ` Stefan Jones
@ 2004-09-09 18:18 ` Stefan Jones
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Jones @ 2004-09-09 18:18 UTC (permalink / raw
To: Mike Frysinger; +Cc: gentoo-dev
Well I did the quick hack. See prelink-20040707.ebuild and
prelink-20040707-init.patch
Any comments? Shall I unmask it?
Stefan
On Thu, 2004-09-09 at 10:40, Stefan Jones wrote:
> I do not think you can call "init u" or that it will not do anything if
> init is in the process of changing runlevels.
>
> I may be wrong, but that is why I discarded that solution.
>
> Stefan
>
> On Thu, 2004-09-09 at 10:22, Mike Frysinger wrote:
> > On Thursday 09 September 2004 01:00 pm, Stefan Jones wrote:
> > > If you run prelink and change /sbin/init then you have to run "init u"
> > > otherwise you cannot unmount the root filesystem as the kernel has a
> > > stray mmap memory segment relating to the old /sbin/int executable.
> > >
> > > "init u" re-executes the binary getting rid of the old mmap.
> >
> > what about we add this to the init scripts ?
> > if the remount fails, try running `init u` and then umounting again ?
> > -mike
> >
> > --
> > gentoo-dev@gentoo.org mailing list
>
>
> --
> gentoo-dev@gentoo.org mailing list
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-09-09 18:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-09 17:00 [gentoo-dev] Prelink and init Stefan Jones
2004-09-09 17:22 ` Mike Frysinger
2004-09-09 17:40 ` Stefan Jones
2004-09-09 18:18 ` Stefan Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox