summaryrefslogtreecommitdiffstats
path: root/loader2/modules.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-02-15 03:54:01 +0000
committerBill Nottingham <notting@redhat.com>2003-02-15 03:54:01 +0000
commitfb0bcf8e8f8ae4681db087bed5f84843c68cdc26 (patch)
tree64ce9918be1862573f9efb12b4e4f3f5055bf37c /loader2/modules.c
parentff933abd4fd079cc2844ec0b04f708d4a89fddc3 (diff)
downloadanaconda-fb0bcf8e8f8ae4681db087bed5f84843c68cdc26.tar.gz
anaconda-fb0bcf8e8f8ae4681db087bed5f84843c68cdc26.tar.xz
anaconda-fb0bcf8e8f8ae4681db087bed5f84843c68cdc26.zip
don't write things like "alias yenta_socket" to /etc/modules.conf.
part of #84379
Diffstat (limited to 'loader2/modules.c')
-rw-r--r--loader2/modules.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/loader2/modules.c b/loader2/modules.c
index 99fdf92ec..15090a971 100644
--- a/loader2/modules.c
+++ b/loader2/modules.c
@@ -611,6 +611,11 @@ static int writeModulesConf(moduleList list, int fd) {
strcpy(buf2, "scsi_hostadapter ");
scsiNum++;
strcat(buf, buf2);
+
+ strcat(buf, lm->name);
+ strcat(buf, "\n");
+ write(fd, buf, strlen(buf));
+
break;
case DRIVER_NET:
@@ -636,15 +641,16 @@ static int writeModulesConf(moduleList list, int fd) {
strcat(buf, buf2);
}
+ strcat(buf, lm->name);
+ strcat(buf, "\n");
+ write(fd, buf, strlen(buf));
+
break;
default:
break;
}
- strcat(buf, lm->name);
- strcat(buf, "\n");
- write(fd, buf, strlen(buf));
}
if (lm->args) {