public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Patch for initrd on 2.4.21-pre5
@ 2003-03-13  5:53 Pete Zaitcev
  2003-03-13 14:15 ` Jan Rekorajski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pete Zaitcev @ 2003-03-13  5:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: marcelo

The initrd refuses to work for me without the attached patch
(actually, initrd works, but nothing else does: console is hosed).
I did not see anything on the list. Am I the only one who
uses initrd?

-- Pete

--- linux-2.4.21-pre5/init/do_mounts.c	2003-03-12 21:21:05.000000000 -0800
+++ linux-2.4.21-pre5-nip/init/do_mounts.c	2003-03-12 21:43:03.000000000 -0800
@@ -813,6 +813,8 @@
 	sys_fchdir(root_fd);
 	sys_chroot(".");
 	sys_umount("/old/dev", 0);
+	close(old_fd);
+	close(root_fd);
 
 	if (real_root_dev == ram0) {
 		sys_chdir("/old");

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

* Re: Patch for initrd on 2.4.21-pre5
  2003-03-13  5:53 Patch for initrd on 2.4.21-pre5 Pete Zaitcev
@ 2003-03-13 14:15 ` Jan Rekorajski
  2003-03-13 19:48 ` Willy Tarreau
  2003-03-19 19:11 ` Marcelo Tosatti
  2 siblings, 0 replies; 4+ messages in thread
From: Jan Rekorajski @ 2003-03-13 14:15 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: linux-kernel, marcelo

On Thu, 13 Mar 2003, Pete Zaitcev wrote:

> The initrd refuses to work for me without the attached patch
> (actually, initrd works, but nothing else does: console is hosed).
> I did not see anything on the list. Am I the only one who
> uses initrd?

No, you're not :)
I found that out just yesterday, but I think your patch is more elegant
than mine (just do close(0,1,2) buefore exit from handle_initrd()).

Jan
-- 
Jan Rękorajski            |  ALL SUSPECTS ARE GUILTY. PERIOD!
baggins<at>mimuw.edu.pl   |  OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY?
BOFH, MANIAC              |                   -- TROOPS by Kevin Rubio

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

* Re: Patch for initrd on 2.4.21-pre5
  2003-03-13  5:53 Patch for initrd on 2.4.21-pre5 Pete Zaitcev
  2003-03-13 14:15 ` Jan Rekorajski
@ 2003-03-13 19:48 ` Willy Tarreau
  2003-03-19 19:11 ` Marcelo Tosatti
  2 siblings, 0 replies; 4+ messages in thread
From: Willy Tarreau @ 2003-03-13 19:48 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: linux-kernel, marcelo

On Thu, Mar 13, 2003 at 12:53:28AM -0500, Pete Zaitcev wrote:
> The initrd refuses to work for me without the attached patch
> (actually, initrd works, but nothing else does: console is hosed).
> I did not see anything on the list. Am I the only one who
> uses initrd?

Hello Pete,

the same patch was send on 22 Jan by Russell Coker, but apparently got ignored.
Perhaps other people are used to only use patched 2.4.21pre kernels.

Cheers,
Willy


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

* Re: Patch for initrd on 2.4.21-pre5
  2003-03-13  5:53 Patch for initrd on 2.4.21-pre5 Pete Zaitcev
  2003-03-13 14:15 ` Jan Rekorajski
  2003-03-13 19:48 ` Willy Tarreau
@ 2003-03-19 19:11 ` Marcelo Tosatti
  2 siblings, 0 replies; 4+ messages in thread
From: Marcelo Tosatti @ 2003-03-19 19:11 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: linux-kernel



On Thu, 13 Mar 2003, Pete Zaitcev wrote:

> The initrd refuses to work for me without the attached patch
> (actually, initrd works, but nothing else does: console is hosed).
> I did not see anything on the list. Am I the only one who
> uses initrd?

Applied.

Danke

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

end of thread, other threads:[~2003-03-19 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-13  5:53 Patch for initrd on 2.4.21-pre5 Pete Zaitcev
2003-03-13 14:15 ` Jan Rekorajski
2003-03-13 19:48 ` Willy Tarreau
2003-03-19 19:11 ` Marcelo Tosatti

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