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");
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
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
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