Koozali.org: home of the SME Server

/etc/modules.conf template not expanding

Kees Vonk

/etc/modules.conf template not expanding
« on: June 14, 2002, 11:05:53 AM »
I have made a change to the .../modules.conf/10ScsiHostAdapter template, but it does not want to expand when I do:

> /sbin/e-smith/expand-template /etc/modules.conf

the change is not reflected in /etc/modules.conf. 10ScsiHostAdapter now looks like this (I added the options line):

{
    unless (grep { /^\s*alias\s*scsi_hostadapter[\t ]/ } @lines)
    {

        push @lines,
            "alias scsi_hostadapter ide-scsi",
            "pre-install ide-scsi     modprobe ide-cd",
            "options ide-cd ignore=hdc";
    }
    "";
}

Anyone any ideas?


Kees

Kees Vonk

Re: /etc/modules.conf template not expanding
« Reply #1 on: June 14, 2002, 01:19:20 PM »
It is even worse than I thought, I cannot expand any templates any more. I am going to restart building this server and see if that solves the problem.

Kees

Kees Vonk

Re: /etc/modules.conf template not expanding
« Reply #2 on: June 14, 2002, 03:31:03 PM »
OK,

ignore the last message, I was doing something wrong.

Back to the /etc/modules file. If I manually edit the file and then run expand-template (5mins later) I can see the access time change and the extra options line is in the file, but when I manually take it out of the file again and rerun expand-template (5mins later) I see the access time change again, but now the extra options line is not there.

It looks like expand-template just leaves the file as it is, I am very very confused, can anyone help me with this?

Kees

Rich Lafferty

Re: /etc/modules.conf template not expanding
« Reply #3 on: June 14, 2002, 07:30:48 PM »
/etc/modules.conf is an unusual template. Take a look at the existing
templates in /etc/e-smith/templates/etc/modules.conf/.

Essentially, you just need to add your line to the existing modules.conf
and it will be kept around next expansion -- the template keeps any
local bits in that file.

Hope this helps,

  -Rich