summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-07-04 13:46:43 +0000
committerphk <phk@FreeBSD.org>2000-07-04 13:46:43 +0000
commit993cb1d94fc91849b548394143e230fa61400d5b (patch)
tree4e933471687d4ff58ea40784e84c97b8ce4407a3 /usr.sbin
parent68d8eaff9645f037a6c674cbc23cb14a417e3aef (diff)
downloadFreeBSD-src-993cb1d94fc91849b548394143e230fa61400d5b.zip
FreeBSD-src-993cb1d94fc91849b548394143e230fa61400d5b.tar.gz
Ignore all md disks, installing on them would be particularly pointless.
Its not fatal to find hardware we don't know.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/devices.c8
-rw-r--r--usr.sbin/sysinstall/devices.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/usr.sbin/sade/devices.c b/usr.sbin/sade/devices.c
index 110f646..e8b20d9 100644
--- a/usr.sbin/sade/devices.c
+++ b/usr.sbin/sade/devices.c
@@ -435,9 +435,13 @@ skipif:
Chunk *c1;
Disk *d;
+ if (names[i][0] == 'm' && names[i][1] == 'd')
+ continue;
d = Open_Disk(names[i]);
- if (!d)
- msgFatal("Unable to open disk %s", names[i]);
+ if (!d) {
+ msgDebug("Unable to open disk %s", names[i]);
+ continue;
+ }
deviceRegister(names[i], names[i], d->name, DEVICE_TYPE_DISK, FALSE,
dummyInit, dummyGet, dummyShutdown, d);
diff --git a/usr.sbin/sysinstall/devices.c b/usr.sbin/sysinstall/devices.c
index 110f646..e8b20d9 100644
--- a/usr.sbin/sysinstall/devices.c
+++ b/usr.sbin/sysinstall/devices.c
@@ -435,9 +435,13 @@ skipif:
Chunk *c1;
Disk *d;
+ if (names[i][0] == 'm' && names[i][1] == 'd')
+ continue;
d = Open_Disk(names[i]);
- if (!d)
- msgFatal("Unable to open disk %s", names[i]);
+ if (!d) {
+ msgDebug("Unable to open disk %s", names[i]);
+ continue;
+ }
deviceRegister(names[i], names[i], d->name, DEVICE_TYPE_DISK, FALSE,
dummyInit, dummyGet, dummyShutdown, d);
OpenPOWER on IntegriCloud