summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-01-15 08:15:19 +0000
committerpeter <peter@FreeBSD.org>2001-01-15 08:15:19 +0000
commit3d7171640aec7583a97cdb37bbfe59516c9bf086 (patch)
tree0d0a9add1d9c2eb8ab89ed9a77d62dcf7e2afdc3 /usr.sbin/sade
parent9964ecd37f8978a5446d3d974147719a0042dc05 (diff)
downloadFreeBSD-src-3d7171640aec7583a97cdb37bbfe59516c9bf086.zip
FreeBSD-src-3d7171640aec7583a97cdb37bbfe59516c9bf086.tar.gz
Backtrack a bit.. Put the dangerously dedicated option under a
non-advertised option (F = "FreeBSD only"), and leave the A key with standard partitioning. It seems people still want a runtime backdoo to get to dangerously dedicated mode.
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r--usr.sbin/sade/disks.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c
index b49cf8b..4932528 100644
--- a/usr.sbin/sade/disks.c
+++ b/usr.sbin/sade/disks.c
@@ -362,14 +362,24 @@ diskPartition(Device *dev)
break;
case 'A':
+ case 'F': /* Undocumented magic Dangerously Dedicated mode */
#ifdef __alpha__
rv = 1;
#else /* The rest is only relevant on x86 */
cp = variable_get(VAR_DEDICATE_DISK);
if (cp && !strcasecmp(cp, "always"))
rv = 1;
- else
+ else if (toupper(key) == 'A')
rv = 0;
+ else {
+ rv = msgYesNo("Do you want to do this with a true partition entry\n"
+ "so as to remain cooperative with any future possible\n"
+ "operating systems on the drive(s)?\n"
+ "(See also the section about ``dangerously dedicated''\n"
+ "disks in the FreeBSD FAQ.)");
+ if (rv == -1)
+ rv = 0;
+ }
#endif
All_FreeBSD(d, rv);
variable_set2(DISK_PARTITIONED, "yes", 0);
OpenPOWER on IntegriCloud