freebsd-dev/usr.sbin/sade
Robert Watson bf1e70b230 Reformulate how sysinstall handles file system options in the label
editor, in order to support specifying UFS2 as a newfs option.

(1) Support three different newfs types: NEWFS_UFS, NEWFS_MSDOS, and
    NEWFS_CUSTOM.  Don't mix up the arguments to them: you can't use
    soft updates on an msdos file system.

(2) Distinguish adding new arguments to the newfs command line from
    replacing it.  Permit the addition of new arguments by the user for
    NEWFS_UFS.  If we entirely replace the command line provided by
    sysinstall, call it NEWFS_CUSTOM.  'N' will now add additional
    arguments; 'Z' will opt to replace the newfs command line entirely,
    but will prompt the user with their current command line as a
    starting point.

(3) Construct the newfs command line dynamically based on the options
    provided by the user at label-time.  Right now, this means selecting
    UFS1 vs. UFS2, and the soft updates flag.  Drop in some variables
    to support ACLs and MAC Multilabel in the future also, but don't
    expose them now.

This provides sysinstall with the ability to do more "in band" editing
of the newfs command line, so we can provide more support for the user,
but doesn't sacrifice the ability to entirely specify the newfs command
line of the user is willing to give up on the cushiness factor.  It
also makes it easier for us to specify defaults in the future, and
define conditional behavior based on user configuration selections.
For now, we default to UFS1, and permit UFS2 to be used as the root
only on non-i386 systems.

While I was there, I dropped the default fragment and block sizes,
since newfs has much more sensible defaults now.

Reviewed by:	jhb, marcel
Approved by:	re
ia64 bits from:	marcel
2002-12-03 22:25:47 +00:00
..
help Reformulate how sysinstall handles file system options in the label 2002-12-03 22:25:47 +00:00
command.c debugMsg() should end with "\n". 2002-11-01 02:05:05 +00:00
config.c Only try to setup moused(8) before setting up the X server if WITH_MICE is 2002-11-27 19:39:26 +00:00
devices.c Don't use fake 'c' or 'a' BSD partitions for CD-ROM devices. This fixes 2002-11-27 17:56:27 +00:00
disks.c Fix a bug in the fdisk editor that partially masked the chunk deletion 2002-12-03 16:09:55 +00:00
dispatch.c Only include the diskPartitionEditor script command if WITH_SLICES is 2002-11-27 19:41:06 +00:00
dmenu.c Whoops - really make the "fix" I did to the dmenuToggleVariable logic 2000-03-08 14:20:26 +00:00
globals.c DTRT in the restart case 2001-10-12 07:36:34 +00:00
install.c Reformulate how sysinstall handles file system options in the label 2002-12-03 22:25:47 +00:00
keymap.c Initiate deorbit burn sequence for <machine/console.h>. 2000-10-08 21:34:00 +00:00
label.c Reformulate how sysinstall handles file system options in the label 2002-12-03 22:25:47 +00:00
list.h
main.c * Negative #if's are harder to read as they don't tell exactly what arch 2002-10-11 22:30:09 +00:00
Makefile Since NEWCARD is the default for i386, undef PCCARD_ARCH. 2002-10-20 11:16:41 +00:00
menus.c Oops, forgot this cosmetic tweak to the perl menu item in my previous 2002-12-03 21:02:26 +00:00
misc.c ia64 specific. 2002-12-02 20:15:16 +00:00
msg.c Return the *right* error codes for yes/no questions when non-interactive. 2001-09-11 20:42:07 +00:00
rtermcap.c
sade.8 configXEnvironment doesn't work in sysinstall now. 2002-11-26 23:23:42 +00:00
sade.h Reformulate how sysinstall handles file system options in the label 2002-12-03 22:25:47 +00:00
system.c * Negative #if's are harder to read as they don't tell exactly what arch 2002-10-11 22:30:09 +00:00
termcap.c Use the isDebug() function rather than making up a new environment 2001-09-22 18:07:47 +00:00
usb.c Add support for USB to sysinstall. This includes running usbd and 2000-05-12 03:01:17 +00:00
variable.c debugMsg() should end with "\n". 2002-11-01 02:05:05 +00:00
wizard.c Fix the wizardmodes 'write' command to not explode: Don't reference 2002-10-28 22:40:49 +00:00