Skip to contentSkip to conversation

Patch for initrd on 2.4.21-pre5

PATCH Applied Pete Zaitcev 4 participants 4 messages Mar 13, 2003 – Mar 19, 2003 VFS

lore
Share & tools
lore
#0 lore raw

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

init/do_mounts.c +2 -0
@@ -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");
#1 lore raw
Quoted 4 lines · Pete Zaitcev

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

Signature · 3 lines
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
#2 lore raw
In reply to Pete Zaitcev
Quoted 4 lines · Pete Zaitcev

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

#3 lore raw
In reply to Pete Zaitcev
Quoted 4 lines · Pete Zaitcev

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