summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
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/sade
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/sade')
-rw-r--r--usr.sbin/sade/devices.c8
1 files changed, 6 insertions, 2 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);
OpenPOWER on IntegriCloud