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:
parent
8f7939aeef
commit
8c614ff6fe
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user