lkml.org 
[lkml]   [1999]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.3.34 patch to stop kmod/modprobe loops
On Mon, 27 Dec 1999, Jesse Pollard wrote:

> If init isn't called, then neither is syslog. The network is not initialized,
> the kernel isn't even listed as part of a functiontional system. I get to this
> level by sepcifing a single user boot. No modules, No /usr (if separate
> fs) no vi, no daemons, no swap; only a single shell prompt by starting
> getty to initialize the console (and root login). Domain sockets are
> not exactly available at this level either. They are useless until
> more of the system is functioning.

Bash calls NSS upon startup, which in turn tries to connect to nscd using
a net-pf-1 (unix) socket. This is how it is implemented within glibc
2.1.x. Now loading net-pf-1 when there is no modules.dep is logged using
syslog (of course if modules.dep is in place, the connect() call fails
because there is no nscd running at this stage but the unix module has to
be examined). The avilability of /usr or whatever does not matter.

> If your system is more damaged than that, then I recommend a good recovery
> floppy based system to boot from before doing anything to any of the
> normal disk partitions. The recovery disk would not have that many modules
> to load either (domain sockets, networking compiled in, and a ram disk system).
> If more modules need to be loaded, then they can be transfered from a root
> floppy for use. It has gotten sufficiently inexpensive to have a zip drive
> for a root system. Just keep the kernel below 640K and boot from floppy.

Booting into emergency modes does not necessarily mean the system is
damaged. Using emergency removable media is certainly a lot of hassle,
especially on systems where floppy support is not that easy (ever tried to
get a SCSI floppy disk drive, for example?).

The modprobe hack I proposed is inexpensive and lies solely within
userland. So what's the problem?

--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.039 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site