Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9408 - unable to add modules files in /etc/modules.d
Summary: unable to add modules files in /etc/modules.d
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-20 17:17 UTC by patg68
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description patg68 2002-10-20 17:17:28 UTC
when I try to add two new module files ( for cdr and printer ), I have error
messages after a update-modules command ( it used to work before ) :

cdr file :
options ide-cd ignore=hdd            # tell the ide-cd module to ignore hdb
alias scd0 sr_mod                    # load sr_mod upon access of scd0
pre-install sg     modprobe ide-scsi # load ide-scsi before sg
pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
pre-install ide-scsi modprobe ide-cd # load ide-cd   before ide-scsi

error messsage :

/etc/modules.d/cdr: options: command not found
/etc/modules.d/cdr: alias: `scd0' not found
/etc/modules.d/cdr: alias: `sr_mod' not found
/etc/modules.d/cdr: pre-install: command not found
/etc/modules.d/cdr: pre-install: command not found
/etc/modules.d/cdr: pre-install: command not found

printer file :
alias /dev/printers lp
  alias /dev/lp*      lp

error message :
/etc/modules.d/printer: alias: `/dev/printers' not found
/etc/modules.d/printer: alias: `lp' not found
/etc/modules.d/printer: alias: `/dev/lp0' not found
/etc/modules.d/printer: alias: `lp' not found
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-20 18:17:49 UTC
Hmm .. weird.

 # egrep -r modules\.d /etc/*

And paste output ?

Comment 2 Brandon Low (RETIRED) gentoo-dev 2002-10-21 18:14:31 UTC
wow, that syntax seems wrong to me...
the printers one should be
alias printers lp  NOT alias /dev/printers lp

The other errors, I bet are caused by the X bit being set on your other config 
files, please chmod -x /etc/modules.d/lp /etc/modules.d/cdr and tehn try it 
again.  It is possible for modules configuration files to be scripts (for 
better automation) in which case the update modules script executes them and 
uses the ouput to generate modules.conf.

That should fix you up, if not, re-open the bug.