diff options
author | Erik Troan <ewt@redhat.com> | 2000-04-05 16:23:49 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-04-05 16:23:49 +0000 |
commit | 634cf2d5a5067544539ff2b79e8ca82055600dc4 (patch) | |
tree | 5eaf503b49c66814a6e3f984c9422905c28cab0d /loader/init.c | |
parent | eac24590bb4a18d019704dc2298a231b18a6692b (diff) | |
download | anaconda-634cf2d5a5067544539ff2b79e8ca82055600dc4.tar.gz anaconda-634cf2d5a5067544539ff2b79e8ca82055600dc4.tar.xz anaconda-634cf2d5a5067544539ff2b79e8ca82055600dc4.zip |
1) support devfs names for terminals
2) needed to add filesystem type to remount of root
Diffstat (limited to 'loader/init.c')
-rw-r--r-- | loader/init.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/loader/init.c b/loader/init.c index 195870da1..944a19745 100644 --- a/loader/init.c +++ b/loader/init.c @@ -510,6 +510,7 @@ printf("done\n"); if (isSerial) { char *device = "/dev/ttyS0"; + printf("Red Hat install init version %s using a serial console\n", VERSION); @@ -519,6 +520,9 @@ printf("done\n"); if (isSerial == 2) device = "/dev/console"; fd = open(device, O_RDWR, 0); + if (fd < 0) + device = "/dev/tts/0"; + if (fd < 0) { printf("failed to open %s\n", device); fatal_error(1); @@ -527,8 +531,11 @@ printf("done\n"); setupTerminal(fd); } else { fd = open("/dev/tty1", O_RDWR, 0); + if (fd < 0) + fd = open("/dev/vc/1", O_RDWR, 0); + if (fd < 0) { - printf("failed to open /dev/tty1"); + printf("failed to open /dev/tty1 and /dev/vc/1"); fatal_error(1); } } @@ -560,7 +567,7 @@ printf("done\n"); if (!nfsRoot) { printf("trying to remount root filesystem read write... "); - if (mount("/", "/", NULL, MS_REMOUNT | MS_MGC_VAL, NULL)) { + if (mount("/", "/", "ext2", MS_REMOUNT | MS_MGC_VAL, NULL)) { printf("failed (but that's okay)\n"); roRoot = 1; |