diff options
author | cperciva <cperciva@FreeBSD.org> | 2009-07-22 03:50:54 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2009-07-22 03:50:54 +0000 |
commit | f1e58a64c4a48a18bf5bc709c0592a3bc3c5160c (patch) | |
tree | 7998fdeaee1dc07039941e9c565e21ec3e978b80 /usr.sbin/sysinstall/disks.c | |
parent | 062f7fc07c204cab2f68787e1ea1af490f20a8d0 (diff) | |
download | FreeBSD-src-f1e58a64c4a48a18bf5bc709c0592a3bc3c5160c.zip FreeBSD-src-f1e58a64c4a48a18bf5bc709c0592a3bc3c5160c.tar.gz |
Remove the "dedicated disk mode" partitioning option from sysinstall, in
both the disk partitioning screen (the 'F' key) and via install.cfg (the
VAR_DEDICATED_DISK option). This functionality is currently broken in 8.x
due to libdisk and geom generating different partition names; this commit
merely acts to help steer users away from the breakage.
Submitted by: randi
Approved by: re (kensmith)
Diffstat (limited to 'usr.sbin/sysinstall/disks.c')
-rw-r--r-- | usr.sbin/sysinstall/disks.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c index ba7bbff..c204938 100644 --- a/usr.sbin/sysinstall/disks.c +++ b/usr.sbin/sysinstall/disks.c @@ -205,7 +205,7 @@ static void print_command_summary(void) { mvprintw(14, 0, "The following commands are supported (in upper or lower case):"); - mvprintw(16, 0, "A = Use Entire Disk G = set Drive Geometry C = Create Slice F = `DD' mode"); + mvprintw(16, 0, "A = Use Entire Disk G = set Drive Geometry C = Create Slice"); mvprintw(17, 0, "D = Delete Slice Z = Toggle Size Units S = Set Bootable | = Wizard m."); mvprintw(18, 0, "T = Change Type U = Undo All Changes Q = Finish"); if (!RunningAsInit) @@ -423,24 +423,10 @@ diskPartition(Device *dev) break; case 'A': - case 'F': /* Undocumented magic Dangerously Dedicated mode */ #if !defined(__i386__) && !defined(__amd64__) rv = 1; #else /* The rest is only relevant on x86 */ - cp = variable_get(VAR_DEDICATE_DISK); - if (cp && !strcasecmp(cp, "always")) - rv = 1; - 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; - } + rv = 0; #endif All_FreeBSD(d, rv); variable_set2(DISK_PARTITIONED, "yes", 0); |