Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Kees Vonk 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
-
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
-
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
-
/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