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.
This commit is contained in:
Peter Wemm 2001-01-15 08:15:19 +00:00
parent 8f7939aeef
commit 8c614ff6fe
3 changed files with 33 additions and 3 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);