diff options
author | Bill Nottingham <notting@redhat.com> | 2003-02-15 03:54:01 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-02-15 03:54:01 +0000 |
commit | fb0bcf8e8f8ae4681db087bed5f84843c68cdc26 (patch) | |
tree | 64ce9918be1862573f9efb12b4e4f3f5055bf37c /loader2 | |
parent | ff933abd4fd079cc2844ec0b04f708d4a89fddc3 (diff) | |
download | anaconda-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')
-rw-r--r-- | loader2/modules.c | 12 |
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) { |