All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with init script and monolithic kernels
@ 2005-01-29 17:40 Steinar H. Gunderson
  2005-01-30 22:54 ` Steinar H. Gunderson
  0 siblings, 1 reply; 3+ messages in thread
From: Steinar H. Gunderson @ 2005-01-29 17:40 UTC (permalink / raw)
  To: autofs

Hi,

A Debian user complained about the line

  if lsmod | grep -q autofs[^4]

in the init.d script failing on monolithic kernels (lsmod outputs "lsmod:
QM_MODULES: Function not implemented" and fails with exit code 1, which makes
the entire init.d script stop due to set -e). Ian, could you change this to
something like this in time for 4.1.4?

  if ( [ -f /proc/modules ] && lsmod ) | grep -q autofs[^4]

I haven't been able to test it myself except on a module-enabled machine (I
have no machines without module support readily available), but it looks
quite straightforward to me and should fix the problem.

(Actually, the line reads elsif in our version, but that's a different story,
which we've discussed here briefly earlier :-) )

/* Steinar */
-- 
Homepage: http://www.sesse.net/

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

end of thread, other threads:[~2005-01-31  1:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-29 17:40 Problem with init script and monolithic kernels Steinar H. Gunderson
2005-01-30 22:54 ` Steinar H. Gunderson
2005-01-31  1:07   ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.