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

* Re: Problem with init script and monolithic kernels
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Steinar H. Gunderson @ 2005-01-30 22:54 UTC (permalink / raw)
  To: autofs

On Sat, Jan 29, 2005 at 06:40:31PM +0100, Steinar H. Gunderson wrote:
> 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.

The user responded, and saying the patch fixed his problem, so it should be
quite safe for 4.1.4.

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

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

* Re: Problem with init script and monolithic kernels
  2005-01-30 22:54 ` Steinar H. Gunderson
@ 2005-01-31  1:07   ` Ian Kent
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Kent @ 2005-01-31  1:07 UTC (permalink / raw)
  To: Steinar H. Gunderson; +Cc: autofs

On Sun, 30 Jan 2005, Steinar H. Gunderson wrote:

> On Sat, Jan 29, 2005 at 06:40:31PM +0100, Steinar H. Gunderson wrote:
> > 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.
> 
> The user responded, and saying the patch fixed his problem, so it should be
> quite safe for 4.1.4.

OK. I'll make the change.

Ian

^ 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.