public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /linuxrc query
@ 2001-03-23  6:36 Amit D Chaudhary
  2001-03-23  6:51 ` Werner Almesberger
  0 siblings, 1 reply; 12+ messages in thread
From: Amit D Chaudhary @ 2001-03-23  6:36 UTC (permalink / raw)
  To: werner.almesberger, lermen, linux-kernel

Hi,

I have a initrd working, a /linuxrc on it that runs and executes. My question 
for the commands after pivot_root which works like a charm, thanks to initrd.txt,

what does redirecting stdin\stdout\stderr to dev/console achieve? I thought 
since the root is now the "new" root, dev/console will be used automatically? 
Also, why chroot, why not call init directly?
#exec chroot . sbin/init 3 <dev/console >dev/console 2>&1

Since the above never returns, what follows in not freed. Does this mean I have 
around 4-6 mb of ram being used up unnecessarily? Any solution?

#umount /initrd
#blockdev --flushbufs /dev/ram0    # /dev/rd/0 if using devfs


Thanks and Regards
Amit


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-03-23 21:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-23  6:36 /linuxrc query Amit D Chaudhary
2001-03-23  6:51 ` Werner Almesberger
2001-03-23  7:00   ` Amit D Chaudhary
2001-03-23 11:18     ` Werner Almesberger
2001-03-23 17:46       ` Amit D Chaudhary
2001-03-23  7:07   ` Amit D Chaudhary
2001-03-23 11:24     ` Werner Almesberger
2001-03-23 14:07   ` David Woodhouse
2001-03-23 18:00     ` RAMFS, CRAMFS and JFFS2(was Re: /linuxrc query) Amit D Chaudhary
2001-03-23 19:37       ` David Woodhouse
2001-03-23 20:25         ` CRAMFS Bjorn Wesen
2001-03-23 22:01           ` CRAMFS Amit D Chaudhary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox