summaryrefslogtreecommitdiffstats
path: root/loader/loader.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-08-18 00:24:38 +0000
committerBill Nottingham <notting@redhat.com>2000-08-18 00:24:38 +0000
commitda16ace559a4bd80a91fef9ab1f7164576216d64 (patch)
treee7c04e45805683526902a0a5a232cda217a1d836 /loader/loader.c
parenta1e9657e76befbc92f854540f359038f48bcea92 (diff)
downloadanaconda-da16ace559a4bd80a91fef9ab1f7164576216d64.tar.gz
anaconda-da16ace559a4bd80a91fef9ab1f7164576216d64.tar.xz
anaconda-da16ace559a4bd80a91fef9ab1f7164576216d64.zip
set floppy device on ia64s (hack)
Diffstat (limited to 'loader/loader.c')
-rw-r--r--loader/loader.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c
index d62aa41c0..dd6119229 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2200,7 +2200,7 @@ void loadUfs(struct knownDevices *kd, moduleList modLoaded,
#endif
void setFloppyDevice(int flags) {
-#if defined(__i386__)
+#if defined(__i386__) || defined(__ia64__)
struct device ** devices;
char line[256];
const char * match = "Floppy drive(s): ";
@@ -2219,7 +2219,8 @@ void setFloppyDevice(int flags) {
}
logMessage("found IDE floppy %s", devices[0]->device);
-
+
+#ifdef __i386__
f = fopen("/tmp/syslog", "r");
while (fgets(line, sizeof(line), f)) {
if (!strncmp(line + 3, match, strlen(match))) {
@@ -2232,6 +2233,9 @@ void setFloppyDevice(int flags) {
if (!foundFd0)
floppyDevice = strdup(devices[0]->device);
+#else /* ia64 */
+ floppyDevice=malloc(strlen(devices[0]->device)+2);
+ sprintf(floppyDevice,"%s1",devices[0]->device);
#endif
logMessage("system floppy device is %s", floppyDevice);