History log of /freebsd-9.3-release/usr.sbin/sade/disks.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 207006 21-Apr-2010 brucec

Remove the reference to DD mode, and replace with Expert mode. Also, make
sure the "Q = Finish" text is visible.
Reword the boot manager screen to try and avoid confusion, and make the
order of the menu items match that in sysinstall.

PR: bin/142916
Submitted by: Jeremy Chadwick <freebsd at jdc.parodius.com>
Reviewed by: randi
Approved by: rrs (mentor)
MFC after: 1 week


# 186607 30-Dec-2008 kensmith

Oops, missed removing an 's' in previous rev.

Submitted by: Jens Schweikhardt (schweikh <at> schweikhardt <dot> net)


# 186605 30-Dec-2008 kensmith

Clean up this message a little bit.


# 186581 29-Dec-2008 obrien

Sound less scary about errorousous disk geometry due to wanting to limit
to 65535 cylinders.

Submitted by: Carlos A. M. dos Santos <unixmania@gmail.com>


# 178769 05-May-2008 mtm

o Change the warning dialog for the 'W' command in both the label
and partition editors to reflect the fact that this is a stand-alone
application, not sysinstall(8).
o Change an instance of sade(8) refering to itself as sysinstall(8) in
a confirmation dialog.

MFC after: 1 week


# 161113 09-Aug-2006 delphij

Unbreak sparc64 build.

Reported by: tinderbox


# 161100 08-Aug-2006 delphij

Partitions are only meaningful for i386 and amd64 architectures, so disable
these code on other architectures.


# 161060 07-Aug-2006 netchild

Say welcome to 'sade', the SysAdmins Disk Editor. It's the fdisk and disklabel part
of sysinstall. So sysinstall may retire now, we have the important non-install part
of it covered.

ATM it doesn't understand GEOM stuff (like mirror, stripe, raid, ...), but patches
to change this and to clean it up internally are more than welcome.

Submitted by: mami@nyitolap.hu


# 161059 07-Aug-2006 netchild

Forced commit to note repo copy from sysinstall.

Repo copy by: markm


# 156123 28-Feb-2006 jhb

Fix numerous warnings. Aside from menu items in system.c and menu.c
this now compiles on i386 with WARNS?= 3. Most of the fixes included
adding missing 'static' keywords to internal functions, using fully-defined
terminators in statically defined arrays of structs, and various
signed vs unsigned mismatches. Also G/C'd unused configSecurity()
function.


# 155965 23-Feb-2006 jkim

- Back out 1.155. I mismerged my ancient local patch. Luckily it was
completely noop.
- Geometry sanitization for non-interactive mode is moved to correct place.

Reported by: Anton Yuzhaninov <citrin at citrin dot ru>
Pointyhat: me


# 154931 27-Jan-2006 jkim

- Hide 'incorrect geometry warning' in non-interactive mode. A user should
know what they are doing in non-interactive mode. Less scarier warning
goes to debugging info instead.
- Print sanitized geometry to debugging info.


# 144334 30-Mar-2005 nyan

Add over 32GB disk support on pc98 (userland part).

Submitted by: Hirokazu WATANABE


# 135258 15-Sep-2004 delphij

Clear all "active partition" bits before we set a new one.

This adds a safebelt that prevents users to mark more than
one "active" partitions, which will lead to a unbootable
machine, especially in multi-boot configurations.

PR: bin/71404
MFC After: 3 days
Approved by: murray (mentor)


# 133040 02-Aug-2004 marcel

Move the inclusion of libdisk.h from sysinstall.h to the source files
that actually need it. This makes it easier for a platform porter to
find the files that may need tweaking to support whatever MD specific
partitioning is needed. It also helps to prevent that the libdisk API
gets exposed and/or used where it's not needed.


# 132984 01-Aug-2004 marcel

Remove unnecessary use of the __ia64__ conditional. This slightly improves
maintainability and generally avoids confusion.


# 127081 16-Mar-2004 jhb

Change libdisk and sysinstall to use d_addr_t rather than u_long for disk
addresses. For arch's with 64-bit longs, this is a nop, but for i386 this
allows sysinstall to properly handle disks and filesystems > 1 TB.

Changes from the original patch include:
- Use d_addr_t rather than inventing a blkcnt type based on int64_t.
- Use strtoimax() rather than strtoull() to parse d_addr_t's from config
files.
- Use intmax_t casts and %jd rather than %llu to printf d_addr_t values.

Tested on: i386
Tested by: kuriyama
Submitted by: julian
MFC after: 1 month


# 121863 01-Nov-2003 marcel

o Compile-out "wizard" mode on ia64.
o Do not set bootblocks on ia64. It's not even a functionality in
libdisk on ia64.


# 119138 19-Aug-2003 obrien

Expand the fdisk size display toggling to include GB.


# 115852 04-Jun-2003 peter

GRRR. Do not force Dangerously Dedicated mode on amd64 when you select
'use entire disk'. Neither for ia64 while I'm here - it needs a MBR if
its going to use fdisk+disklabel. The ia64 case is mostly academic though
because you'd be creating two partitions (dos + freebsd) rather than
a single freebsd-only partition.


# 115293 24-May-2003 peter

Add __amd64__ ifdefs to enable the bootblock handling code, slices, etc.

Approved by: re (murray)
Obtained from: obrien


# 107649 05-Dec-2002 jhb

- Use some macros to define common text between the dialog boxes to set the
type of new slices and to change the type of existing slices. This also
has the advantage of moving a few #ifdef PC98's up to where the macros
are defined instead of in the middle of the code.
- Change the behavior of the 'T' option in the slice editor so that the
default value in the dialog box is the current type of the existing
slice rather than defaulting to changing the slice to a FreeBSD slice as
this is more intuitive.

Approved by: re


# 107587 04-Dec-2002 nyan

Fixed a partition type for pc98 when create or change slices in the fdisk
editor.

Approved by: re (jhb)


# 107554 03-Dec-2002 jhb

Fix a bug in the fdisk editor that partially masked the chunk deletion
bug fixed yesterday. New slices created in the fdisk editor and slices
whose sub-type is changed are of type 'mbr' if their sub-type is not a
magic type, not type 'unknown'.

Approved by: re


# 107349 27-Nov-2002 jhb

Only include the fdisk editor and associated code if WITH_SLICES is
defined.

Tested on: i386, alpha, sparc64
Approved by: re


# 106990 16-Nov-2002 nyan

Enable selecting the type of partition menu on pc98.


# 106948 15-Nov-2002 nyan

Fix to build for pc98.


# 106839 13-Nov-2002 marcel

Also test for type efi everywhere we currently test for type fat.
With this change there's no a priori difference between EFI and
FAT partitions. With this change and the corresponding change to
libdisk, we can create EFI partitions, just like regular FAT
partitions.


# 106744 10-Nov-2002 marcel

A support for creating EFI partitions. This is required on ia64,
but not made conditional upon it.


# 106374 03-Nov-2002 nyan

- Added the MenuIPLType menu for selecting pc98 boot IPL.
- Disabled 'Syscons, Font', 'Syscons, Screenmap' and 'Syscons, Ttys' menus
on pc98.
- Fixed the MenuMouseType and MenuMousePort menus for pc98.
- Fixed some comments for pc98.


# 105686 22-Oct-2002 phk

Chunk functions in libdisk take an extra arguement for all archs to accomodate
PC98 with less ifdef madness.


# 105105 14-Oct-2002 nyan

Fix to check disk geometry.

Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)


# 104940 11-Oct-2002 obrien

* Negative #if's are harder to read as they don't tell exactly what arch
something applies to. So change #ifndef to an explicit list of defines.
* Treate sparc64 and ia64 as 64-bit platforms, which means larger roots.
* sparc64 should halt back to the firmware, not reset.
* sparc64 doesn't need to play MS-DOS/BIOS partition crap games.

Reviewed by: jake


# 100637 24-Jul-2002 peter

Only install the mbr code on i386.. not ia64. This changes it from
#ifndef __alpha__ to #ifdef __i386__


# 97674 31-May-2002 pb

Fix integer overflow causing disk/partition size display wrapping
above 4GB.


# 97667 31-May-2002 jhb

Add a 'diskInteractive' variable that can be set to interactively partition
and label a disk from a sysinstall script.


# 93322 28-Mar-2002 ru

Teach sysinstall(8) how to read boot managers out of /boot
instead of hardcoding them into the binary. This replaces
the work-around in usr.sbin/sysinstall/Makefile,v 1.121.

Suggested by: jhb
MFC in: 1 week


# 83845 22-Sep-2001 murray

Silence more warnings.


# 75676 18-Apr-2001 joerg

``An undocumented feature is a bug.''

Turn on my asbesto suit, and document the DD and Wizard mode menu
keys. It's a nuisance to always have to look them up in the source
code when needed.


# 74297 15-Mar-2001 nyan

Moved '#endif' to correct position. (previous commit broke pc98 support)


# 74156 12-Mar-2001 jkh

Really finish softupdate setting from the label editor and fix
a few cosmetic problems:

o Allow it to work with scripts (see man page or install.cfg file).
o Preserve old softupdates flag across newfs toggles
o Clean up partitioned/labelled flag handling
o Don't ask for MBR choice again if you've already written it out.
o Actually document the new features.


# 71054 15-Jan-2001 peter

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.


# 71051 15-Jan-2001 peter

Don't invite trouble by waving the 'Dangerously Dedicated' (DD) option
at people. This has been sitting in my tree for a few months now. I
have spoken with quite a few folks about this and the support for doing
this was pretty strong. I dont remember names though, so I cannot share
the blame :-(. Note that this does not *remove* DD mode, it just stops
waving it at new users. You can still set it via config files etc, and
the bootblocks and kernel still support it. You can still use disklabel
to make true DD disks.


# 70005 14-Dec-2000 jkh

Adapt sysinstall to use the new msgNoYes() function which assumes
no as a default. Sysinstall should be both less dangerous and less
annoying as a result of this change, though that's just my opinion
(since they're the defaults which annoy ME the least :).


# 64555 12-Aug-2000 nyan

- Added support for installing boot0 and boot0.5 for PC-98.
- Cosmetic changes.


# 63031 12-Jul-2000 jhb

- Support MBR boot loaders that are larger than one sector size.
- Axe the 1024 cylinder checks as they are no longer relevant.


# 61277 05-Jun-2000 nyan

- Remove obsolete PC-card boot.flp hack. It was for making both PC-card
boot.flp and plain boot.flp.
- Clean up crunchgen related routine.

- Add PC-98 support.
TODO:
o Documentation
o Fix some messages for PC-98
o Decrease the size of fixit.flp to 1.2MB
o I18N (See: http://www.jp.FreeBSD.org/BootAsia/index.html)

No response from jkh


# 60937 25-May-2000 obrien

Add the 'Z' key to the slice editor. Hitting it toggles the units the
sizes are displayed in.

Ok'ed by: murray


# 57617 29-Feb-2000 jkh

o Add support for loading the rsaref or rsaintl packages, depending
on locale.

o Allow use of "G" in label editor to stand for gigabytes. This
is actually an unrelated patch which I meant to commit separately
but what the heck, it's late.

Partially submitted by: phk


# 54722 17-Dec-1999 jkh

In retrospect, msgNotify() should leave its contents on the screen
longer to give the user something to look at while things are happening.
Change it to do so and insert the appropriate screen saves elsewhere.


# 54587 14-Dec-1999 jkh

Completely rip-out and redesign sysinstall's refresh model as well
as redoing all the menus to have proper, or at least non-hallucinogenic,
keyboard accelerators.

This requires my recent update to libdialog to work properly and will
probably also exhibit some other "interesting" behavior while the last
few missing screen clears are found (which is why I'm not going to MFC
immediately). At least now, however, sysinstall does not gratuitously
redraw random screens at the drop of a hat and drive serial console
installers out of their minds.


# 54473 12-Dec-1999 jkh

I shouldn't have incremented PART_OFF; it was wrong and broke label
display to boot. Also fix some various warning fluff while I'm in
here cleaning up.


# 53748 27-Nov-1999 phk

Remove BAD144 support.


# 50780 01-Sep-1999 jkh

Oh crud, did I ever screw the pooch! Rather than sync this with -stable,
I backed-out the changes in -current and didn't touch stable at all (I
thought I had my patch order reversed, not what actually happened).
AIEEE! I can't even blame the crack for this one since I broke my
crack pipe a few weeks ago. I think sleep deprivation gets the blame
for this one.

Medal for noticing this one goes to: Jim Bloom <bloom@acm.org>


# 50725 01-Sep-1999 jkh

MFC: Catch 3.2-stable sysinstall up to 4.0-current level functionality,
bringing in DHCP support. The only thing I left out were Poul-Henning's
newfs changes since I'm not sure if he's brought the rest of that support
into -stable yet. If it turns out that this is the case, I'll MFC those
changes too.


# 50508 28-Aug-1999 jkh

Always set the MBR value. When you leave it uninitialized, it seems
like libdisk does bad things. :)


# 50479 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 43685 05-Feb-1999 jkh

Totally change the way variables are accounted for in sysinstall.
Now we know which variables are internal and which need to be
backed to /etc/rc.conf.site. rc.conf is not touched now.

Also kget kernel change information back properly and set up a loader.rc
file to use it.


# 42386 07-Jan-1999 jkh

Adapt sysinstall more fully to the alpha (deal with proper boot signatures,
don't present label editor, etc).

Submitted by: dfr


# 42247 02-Jan-1999 jkh

Read in /boot contents at runtime. Assumes /boot/boot1 on alpha (which
may not yet be caught up).


# 40297 13-Oct-1998 jkh

properly conditionalize for alpha.


# 40295 13-Oct-1998 jkh

switch to proper boot0


# 40023 07-Oct-1998 jkh

Don't use boot2 on alpha.


# 39848 30-Sep-1998 jkh

One last alpha seat belt - never ask for an MBR boot manager.


# 39847 30-Sep-1998 jkh

Add another check to prevent user from hanging themselves on alpha.


# 39845 30-Sep-1998 jkh

Always use dedicated disk case on alpha.


# 39254 15-Sep-1998 gibbs

Device name cleanup for CAM.


# 39183 14-Sep-1998 jkh

Fix printf warnings and add a few casts.
PR: 7560
Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>


# 34811 23-Mar-1998 jkh

MF22: resync.


# 34792 23-Mar-1998 jkh

MF22: catch up with recent changes.


# 34681 19-Mar-1998 jkh

correct checks for "already written" case.


# 33315 13-Feb-1998 jkh

MF22: correct bogus failure return.


# 32958 01-Feb-1998 steve

Typo: PAT -> FAT.

PR: 5593


# 30561 18-Oct-1997 jkh

Fix disk counting bug.
Submitted by: Arjan de Vet <Arjan.deVet@adv.IAEhv.nl>


# 30345 12-Oct-1997 jkh

Separate the siamese twins that were the partition and label editor.
Now you can use one without entering the other and it will DTRT.
These changes just allowed me to do the most straight-forward new disk
installation I've ever managed with sysinstall.


# 29307 11-Sep-1997 jkh

Fix offset bug in partition display that made partitions of type
`linux_swap' hose the output.

Also add a (T)ype command for changing the type of a partition.


# 29204 07-Sep-1997 joerg

Add a hint to the FAQ regarding ``DD'' disks.


# 29072 03-Sep-1997 jkh

People have complained that this is overly chatty, and
"dangerously dedicated" mode doesn't appear to have killed
anyone in recent memory, so I agree.


# 26717 18-Jun-1997 jkh

1. Add a noWarn flag so that scripts can turn warnings off.
2. If hostname not set from script, bring up interactive dialog anyway.


# 26574 12-Jun-1997 jkh

YAMF22


# 26456 05-Jun-1997 jkh

Resurrect / implement some of the more esoteric scripting features,
such as partitioning a disk or overriding an interactive prompt.


# 25665 10-May-1997 pst

Fix null dereference if config variable not set.


# 25473 05-May-1997 pst

Add in some more config file support -- add variables to shut up
sysinstall about the dangerously dedicated message, and other
variables to allow pre-configuring the distribution sets.

Still todo: add a variable to define an initial set of packages that
should be loaded.
Reviewed by: jkh


# 25052 20-Apr-1997 jkh

Sync with 2.2 and clean up some tortured english that was added.


# 23721 11-Mar-1997 joerg

YAMF22 (rev 1.70.2.10, added blurb to explanations)


# 22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21971 24-Jan-1997 jkh

This is a patch that makes some of the "partitions" --> "slice" to be
more consistant in our use of the terms for differentiation between PC
partitions and traditional BSD partitions.

Submitted-By: obrien@cs.ucdavis.edu (David O'Brien)


# 21969 24-Jan-1997 obrien

Change from using chunk_n to slice_type_name().

Reviewed by: jkh


# 21792 17-Jan-1997 jkh

Now that I know which parts of the installation really need it (since
there's no menu display bug to work around now), be far more selective
in my use of DITEM_RECREATE (which is slow and involves much screen I/O).


# 21772 16-Jan-1997 jkh

Cope with Open_Disk() failure much more gracefully.


# 21711 15-Jan-1997 jkh

Make the bindist-only checks actually work.
Add code which theoretically should let you get a disk up from
start to finish while running multiuser, using your existing /dev
entries.


# 21698 15-Jan-1997 jkh

Accept emacs-style editing keys for traversal and ESC as an abort character.


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 19992 27-Nov-1996 phk

Try to impreve DD mode.
Try to make 4Mb floppies work again.


# 19515 07-Nov-1996 jkh

Make sure current_chunk is 0 each time we enter the editor.


# 19431 05-Nov-1996 phk

Remove a bogon from version 1.69. Just because we say "use all disk"
doesn't mean that our geometry can be flushed down the drain.


# 18830 09-Oct-1996 jkh

DTRT if ESC is hit in a Yes/No dialog.
Noticed-by: jfieber


# 18744 06-Oct-1996 jkh

Correctly re-adjust current slice # when slices are deleted.
Beautify the code a little.


# 18687 04-Oct-1996 jkh

Various cosmetic tweaks.


# 18683 04-Oct-1996 jkh

Syncronize my tree so Eric can access the latest code.


# 18650 03-Oct-1996 jkh

First cut at a "copy userconfig changes from installation kernel to installed
kernel" mechanism. This is just the foundation - more work follows
and will be committed over the next few hours.
Submitted-by: "Eric L. Hernes" <erich@lodgenet.com> & jkh


# 18612 01-Oct-1996 jkh

Saner screen refresh changes, part I.


# 18452 21-Sep-1996 jkh

Remove some gratutious screen saves.


# 17404 03-Aug-1996 jkh

Try to make screen update more efficient (less flickering) by more
judicious use of dialog_clear_norefresh().


# 17398 03-Aug-1996 jkh

Make the same fix to the disk partition editor screen.


# 17376 01-Aug-1996 jkh

Clean up the results from getch().


# 17372 31-Jul-1996 jkh

Add a required save/restore


# 17370 31-Jul-1996 jkh

Try again.


# 17368 31-Jul-1996 jkh

Don't munge keystrokes.


# 17365 31-Jul-1996 jkh

Prevent Geometry warning messages when the disk is already "dedicated"


# 17362 31-Jul-1996 jkh

Detect which partitions have already been created with `auto' so as not to create them
twice.

Various cosmetic tweaks.


# 17025 09-Jul-1996 jkh

Eradicate more lurking bogons.


# 16975 05-Jul-1996 jkh

Support compressed doc files again.
Add a few strategic screen clears.
Do a lot less wasted screen I/O in restoring screen contents that don't need
restoring.
Use tar instead of cp to back up /etc in installUpdate.
Don't panic when upgrade shell exits.


# 16887 01-Jul-1996 jkh

Make it plainer how to exit.


# 16718 25-Jun-1996 jkh

Make "Fake" turn off more potentially system-nuking options.


# 16297 11-Jun-1996 jkh

Put in a strategic dialog_clear() to prevent screen corruption reported
by Joerg.


# 16208 08-Jun-1996 jkh

Implement selective text attributes for the syscons vty / vt100 emulator
selection since an attribute which looks good on a color console doesn't
necessarily look good in an xterm.


# 16204 08-Jun-1996 jkh

Put back some changes I inadvertantly spammed with a cvs update.


# 15695 09-May-1996 jkh

Some cosmetic changes:

Make "selection bar" inverse video white-on-blue on color screens to avoid
it getting muddled up with popup dialogs.

Do disk selection in a more friendly fashion (for one thing, allow a
drive to be de-selected again if you change your mind).

Add a few strategic screen-saves to prevent corruption of screen contents
(thanks, Michael Elbel!).


# 15465 30-Apr-1996 jkh

More cosmetic changes before tomorrow's snapshot.


# 15445 29-Apr-1996 jkh

Add some more debugging statements.


# 15439 28-Apr-1996 jkh

Add a new -fake argument to make sysinstall not actually change things while
I'm testing it.


# 15419 28-Apr-1996 jkh

Fix an ancient index list bug.
Make FTP re-initializion work.
Fix fix fix.


# 15416 27-Apr-1996 jkh

Bump snapshot release date - looks like I was off by a couple
of days!

More display fixes to sysinstall and assorted tweaking.


# 15383 25-Apr-1996 jkh

Quite a few changes:

1. Fix the last display bugs (I hope) by use of dialog rebuilds at stategic
points.
2. Clean up the distributions menus so that everybody (that's reasonable)
has All and Clear options for setting/clearing things en-masse.
3. Various attempts at display optimization.
4. Change the wording of the `Don't use Write!' dialogs to make them more
explicitly define when and when not to use the option.


# 15355 22-Apr-1996 jkh

Bring this into sync.

I still have a _very very annoying_ display bug which occurs when a menu
item causes a submenu to be displayed - the screen repaints for the original
menu (which is restored upon return from the submenu) are off by about 4
characters. I've tried restoring the screen, the cursor position, you name
it - same deal. Grrrr! This commit is my first step in trying to get someone
else to help me look into this one since I'm just tearing my hair out at this
point!


# 15242 13-Apr-1996 jkh

1. Update all the copyrights to delete useless clauses 3 and 4.
2. Change more of the menu code over to new system.
3. Streamline label editor.


# 15091 07-Apr-1996 jkh

Major surgery.

1. Use new dialog menu hacks (no strings, just arrays of dialogMenuItem structs)
so that I can create composite menus with radio/checkbox/... items in them,
removing some long-standing UI bogons in various menus. This work isn't
finished yet, but will be done in two phases. This is phase one.

2. Remove all the script installation stuff. I never got time to document it,
it was arcane and it just complicated much of the code. There are better
ways of doing this if I want to do auto-driven installations later.

3. Remove much dead code and otherwise attempt to remove as much historical
grot as possible so that this code is easier to hack on. This is also
a two-stage process, phase one of which is now complete.


# 14793 24-Mar-1996 joerg

Rename the usage of `private' to `private_data' to cope with the
recent libdisk changes. (sysinstall is guilty of using `private' in
quite more places, but since this ain't in library code, it's not that
important.)

Whenever possible, better not use C++ reserved words...


# 14725 20-Mar-1996 jkh

Accept DEL as a synonym for `delete'


# 14670 18-Mar-1996 jkh

Lots of fixes:

1. Revamp package installer to use new dependency lists and also
pkg_add's new `read from stdin' mode to prevent a copy of the package
from hitting the disk unnecessarily.

2. More fixes for running "not as init" - don't get upset if CDROM already
mounted, do the right thing instead.

3. If running as init, assume first-time install and _don't show the
(W)rite option in the fdisk screen.

4. Many other little tweaks, some of which will have to wait for fuller testing
until I can create a boot floppy (testing certain system-destroying
features of sysinstall can be a royal pain). Expect some more commits.


# 13592 23-Jan-1996 joerg

Add an additional warning that a "dangerously dedicated" disk cannot have
a boot selector in sector 0.

Closes PR # conf/963: Using the...

Submitted by: muir@idiom.com (David Muir Sharnoff)


# 12781 11-Dec-1995 jkh

Bring my changes forward from 2.1


# 12661 07-Dec-1995 peter

Update the -current sources from the 2.1 branch.

Approved (in spirit) by: jkh


# 10882 18-Sep-1995 peter

This mega-commit brings in Jordan's latest sysinstall version..
This looks like it was developed offline, and is being spammed over the
top of the existing. "That's fine by me! I dont really care how you do
it, just get it in there..." said Jordan in a conversation a short while
ago...


# 9202 11-Jun-1995 rgrimes

Merge RELENG_2_0_5 into HEAD


# 8881 30-May-1995 rgrimes

Remove trailing whitespace.


# 8820 28-May-1995 jkh

Fix bogon I introduced into dist extraction code last night.

Update to Poul's latest gripe list fixes.


# 8751 25-May-1995 jkh

Bring in all my fixes to Poul's gripe list as of last night.


# 8702 22-May-1995 jkh

Implement most of the CD extract code.
Clean up a few last display bugs.
Add sanity checking that makes sure user creates root and swap partitions.
Add swap partitions with swapon().


# 8669 21-May-1995 phk

The latest batch from me. Still some screen anomalies (One could consider
the entire libdialog one such :-( ) but functionally ok I think.


# 8668 21-May-1995 phk

label.c: wizard mode now returns;
disks.c: clrtobot() so that deleted stuff disappears.
disks.c: offset is signed (for OnTrack diskmanager)
system.c: don't setbuf(stdout,0), it's too slow.


# 8659 20-May-1995 jkh

Don't clear the screen for every redraw in the disklabel and
partition editors (ugh). Fix an utterly bogus message (no arguments :)
in dist.c. This should all make Poul a little happier and slide in
before the next CTM update window.


# 8641 20-May-1995 jkh

1. Fix a pathological bug I introduced in msgInfo(). Right idea, wrong
implementation.

2. Totally rework device registration. It's about half the size and
more powerful now.

3. Add DOS discovery.

4. Start filling in some of the strategy routines.

5. Another clean-up pass over the menus.

6. Make wizard code use Disk typedef.

If I can get the first strategy routine finished tonite, we should have a working
install (from ftp, at least) this weekend.


# 8589 18-May-1995 jkh

1. Primitive bad144 support (I believe an additional command is needed, but
won't know until Poul wakes up again).
2. Make vsystem() put its output on the debugging fd.
3. DTRT with root filesystem placement - now I see how this has to work
(thanks, Poul).
4. Many miscellaneous spelling errors fixed and general cleanup.


# 8581 17-May-1995 jkh

1. Set a path to /stand by default.
2. Don't clear() when I can dialog_clear().


# 8576 17-May-1995 jkh

Commit my latest so that Gary can sync up - this version should also
be the grounds for our first round of testing in the release I'm rolling.
It doesn't load the distributions yet, but it should do everything else.


# 8556 16-May-1995 jkh

This will now compile and even scribble helpfully on your disks.
It remains to be seen how successfully. The distribution loading code
is still not here yet, but the partition/newfs/mount/cpio-extract cycle
is as complete as it's ever going to get, modulo possible bug fixes.
The TCP/IP setup screen is also sort of here, albeit in a highly-changing
state due to the fact that per-interface information isn't being kept
right now but is being added (thanks, Gary!).


# 8549 16-May-1995 jkh

This does _not yet compile_; I'm simply bringing in my changes from
this weekend in order to more easily sync with my CVS tree at home.
Another commit relative to these changes will follow shortly.


# 8452 11-May-1995 jkh

1. Don't check CHUNK_BSD_COMPAT for now; it always returns "no" and is
getting in the way of testing right now.
2. Call system() on commands, not vsystem(). No need for vsystem() here.
3. Add a path for the shell.


# 8438 11-May-1995 jkh

First round of changes after testing this on actual systems. Clean up
some of the badly displayed menus, use the proper notification box for
messages, make proceed work.


# 8408 10-May-1995 jkh

Sync up to Poul - use his new Create_Chunk_DWIM() function and use the pointer
it passes back. Thanks, Poul!


# 8407 10-May-1995 jkh

Make sure that mountpoints start with a /.


# 8360 08-May-1995 jkh

Whoops! Uncomment Write_Disk() again.


# 8351 08-May-1995 jkh

Perform a much needed tidying-up pass over this code. Sleep for now,
more tomorrow.


# 8342 07-May-1995 jkh

Implement the geometry command. Clean up the help a little.


# 8340 07-May-1995 jkh

Add a wizard button for Poul.


# 8338 07-May-1995 jkh

Fix a bug in multi-column output.


# 8336 07-May-1995 jkh

Another sync up for Poul. Added a lot more error checking.


# 8331 07-May-1995 jkh

Implement a work-around for Create_Chunk providing no pointer to the
new chunk. The partition editor now works as well as the underlying
libdisk can support it - have at it, Poul!


# 8317 07-May-1995 jkh

Make this compile again. Poul and I need to sync up again.


# 8314 07-May-1995 jkh

Correct a few ordering errors in how the partitions were being displayed.


# 8313 07-May-1995 jkh

Print sizes of partitions now.


# 8307 06-May-1995 jkh

Some fairly serious cleanup. The proper offset should now be used in
creating partitions. Still need to get the mount points displaying carefully,
but I need to get this into my tree on time so that I can work on that.


# 8302 05-May-1995 jkh

All the editors are finished. Now if I can just get a problem with libdisk
fixed, we should be able to fully set up the user's disk. Still to come
with next commit: filesystem setup, distribution extraction, final
configuration.


# 8281 04-May-1995 jkh

Everything but the partition editor is done. This commit is for MBR testing.