summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/disks.c
Commit message (Collapse)AuthorAgeFilesLines
* Add over 32GB disk support on pc98 (userland part).nyan2005-03-301-1/+1
| | | | Submitted by: Hirokazu WATANABE
* Clear all "active partition" bits before we set a new one.delphij2004-09-151-1/+7
| | | | | | | | | | 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)
* Move the inclusion of libdisk.h from sysinstall.h to the source filesmarcel2004-08-021-0/+1
| | | | | | | 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.
* Remove unnecessary use of the __ia64__ conditional. This slightly improvesmarcel2004-08-011-5/+3
| | | | maintainability and generally avoids confusion.
* Change libdisk and sysinstall to use d_addr_t rather than u_long for diskjhb2004-03-161-16/+21
| | | | | | | | | | | | | | | | 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
* o Compile-out "wizard" mode on ia64.marcel2003-11-011-2/+4
| | | | | o Do not set bootblocks on ia64. It's not even a functionality in libdisk on ia64.
* Expand the fdisk size display toggling to include GB.obrien2003-08-191-2/+6
|
* GRRR. Do not force Dangerously Dedicated mode on amd64 when you selectpeter2003-06-041-1/+1
| | | | | | | '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.
* Add __amd64__ ifdefs to enable the bootblock handling code, slices, etc.peter2003-05-241-3/+3
| | | | | Approved by: re (murray) Obtained from: obrien
* - Use some macros to define common text between the dialog boxes to set thejhb2002-12-051-38/+25
| | | | | | | | | | | | 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
* Fixed a partition type for pc98 when create or change slices in the fdisknyan2002-12-041-0/+8
| | | | | | editor. Approved by: re (jhb)
* Fix a bug in the fdisk editor that partially masked the chunk deletionjhb2002-12-031-2/+2
| | | | | | | | 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
* Only include the fdisk editor and associated code if WITH_SLICES isjhb2002-11-271-8/+10
| | | | | | | defined. Tested on: i386, alpha, sparc64 Approved by: re
* Enable selecting the type of partition menu on pc98.nyan2002-11-161-17/+17
|
* Fix to build for pc98.nyan2002-11-151-1/+1
|
* Also test for type efi everywhere we currently test for type fat.marcel2002-11-131-0/+2
| | | | | | | 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.
* A support for creating EFI partitions. This is required on ia64,marcel2002-11-101-0/+3
| | | | but not made conditional upon it.
* - Added the MenuIPLType menu for selecting pc98 boot IPL.nyan2002-11-031-15/+43
| | | | | | | - Disabled 'Syscons, Font', 'Syscons, Screenmap' and 'Syscons, Ttys' menus on pc98. - Fixed the MenuMouseType and MenuMousePort menus for pc98. - Fixed some comments for pc98.
* Chunk functions in libdisk take an extra arguement for all archs to accomodatephk2002-10-221-12/+1
| | | | PC98 with less ifdef madness.
* Fix to check disk geometry.nyan2002-10-141-2/+4
| | | | Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
* * Negative #if's are harder to read as they don't tell exactly what archobrien2002-10-111-7/+7
| | | | | | | | | 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
* Only install the mbr code on i386.. not ia64. This changes it frompeter2002-07-241-1/+1
| | | | #ifndef __alpha__ to #ifdef __i386__
* Fix integer overflow causing disk/partition size display wrappingpb2002-05-311-3/+3
| | | | above 4GB.
* Add a 'diskInteractive' variable that can be set to interactively partitionjhb2002-05-311-2/+4
| | | | and label a disk from a sysinstall script.
* Teach sysinstall(8) how to read boot managers out of /bootru2002-03-281-10/+17
| | | | | | | | 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
* Silence more warnings.murray2001-09-221-2/+2
|
* ``An undocumented feature is a bug.''joerg2001-04-181-4/+4
| | | | | | 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.
* Moved '#endif' to correct position. (previous commit broke pc98 support)nyan2001-03-151-1/+1
|
* Really finish softupdate setting from the label editor and fixjkh2001-03-121-34/+15
| | | | | | | | | | 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.
* Backtrack a bit.. Put the dangerously dedicated option under apeter2001-01-151-1/+11
| | | | | | 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.
* Don't invite trouble by waving the 'Dangerously Dedicated' (DD) optionpeter2001-01-151-9/+2
| | | | | | | | | | 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.
* Adapt sysinstall to use the new msgNoYes() function which assumesjkh2000-12-141-3/+3
| | | | | | 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 :).
* - Added support for installing boot0 and boot0.5 for PC-98.nyan2000-08-121-20/+112
| | | | - Cosmetic changes.
* - Support MBR boot loaders that are larger than one sector size.jhb2000-07-121-18/+31
| | | | - Axe the 1024 cylinder checks as they are no longer relevant.
* - Remove obsolete PC-card boot.flp hack. It was for making both PC-cardnyan2000-06-051-11/+78
| | | | | | | | | | | | | | 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
* Add the 'Z' key to the slice editor. Hitting it toggles the units theobrien2000-05-261-9/+34
| | | | | | sizes are displayed in. Ok'ed by: murray
* o Add support for loading the rsaref or rsaintl packages, dependingjkh2000-02-291-0/+4
| | | | | | | | | | 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
* In retrospect, msgNotify() should leave its contents on the screenjkh1999-12-171-1/+1
| | | | | 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.
* Completely rip-out and redesign sysinstall's refresh model as welljkh1999-12-141-9/+2
| | | | | | | | | | | | 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.
* I shouldn't have incremented PART_OFF; it was wrong and broke labeljkh1999-12-121-1/+0
| | | | | display to boot. Also fix some various warning fluff while I'm in here cleaning up.
* Remove BAD144 support.phk1999-11-271-33/+1
|
* Oh crud, did I ever screw the pooch! Rather than sync this with -stable,jkh1999-09-021-10/+6
| | | | | | | | | | 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>
* MFC: Catch 3.2-stable sysinstall up to 4.0-current level functionality,jkh1999-09-011-6/+10
| | | | | | | 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.
* Always set the MBR value. When you leave it uninitialized, it seemsjkh1999-08-281-10/+6
| | | | like libdisk does bad things. :)
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Totally change the way variables are accounted for in sysinstall.jkh1999-02-051-10/+10
| | | | | | | | 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.
* Adapt sysinstall more fully to the alpha (deal with proper boot signatures,jkh1999-01-081-1/+8
| | | | | | don't present label editor, etc). Submitted by: dfr
* Read in /boot contents at runtime. Assumes /boot/boot1 on alpha (whichjkh1999-01-021-5/+39
| | | | may not yet be caught up).
* properly conditionalize for alpha.jkh1998-10-131-2/+2
|
* switch to proper boot0jkh1998-10-131-3/+3
|
OpenPOWER on IntegriCloud