2002-08-02 08:08:47 +04:00
|
|
|
|
/* $NetBSD: menus.mi.fr,v 1.39 2002/08/02 04:08:47 grant Exp $ */
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 1997 Piermont Information Systems Inc.
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Written by Philip A. Nelson for Piermont Information Systems Inc.
|
|
|
|
|
*
|
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
|
* are met:
|
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
|
* must display the following acknowledgement:
|
1999-06-20 10:08:13 +04:00
|
|
|
|
* This product includes software developed for the NetBSD Project by
|
1997-11-27 13:10:05 +03:00
|
|
|
|
* Piermont Information Systems Inc.
|
|
|
|
|
* 4. The name of Piermont Information Systems Inc. may not be used to endorse
|
|
|
|
|
* or promote products derived from this software without specific prior
|
|
|
|
|
* written permission.
|
|
|
|
|
*
|
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY PIERMONT INFORMATION SYSTEMS INC. ``AS IS''
|
|
|
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL PIERMONT INFORMATION SYSTEMS INC. BE
|
|
|
|
|
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
|
|
|
|
* THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Menu system definitions -- machine independent
|
|
|
|
|
*
|
|
|
|
|
* Some menus may be called directly in the code rather than via the
|
|
|
|
|
* menu system.
|
|
|
|
|
*
|
|
|
|
|
* This file must be first in the sed command line.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <curses.h>
|
|
|
|
|
#include "defs.h"
|
|
|
|
|
#include "md.h"
|
|
|
|
|
#include "msg_defs.h"
|
|
|
|
|
#include "menu_defs.h"
|
|
|
|
|
}
|
|
|
|
|
|
1999-06-20 09:44:26 +04:00
|
|
|
|
default y=12, no exit, scrollable;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
1999-04-08 16:54:52 +04:00
|
|
|
|
allow dynamic menus;
|
|
|
|
|
|
1999-06-20 06:09:20 +04:00
|
|
|
|
menu netbsd, title "NetBSD-@@VERSION@@ Programme d'installation",
|
|
|
|
|
exit, exitstring "Quitter le programme d'installation";
|
1997-12-04 12:05:35 +03:00
|
|
|
|
display action { toplevel(); };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Installation de NetBSD sur disque dur",
|
|
|
|
|
action { do_install(); };
|
|
|
|
|
option "Mise <20> jour de NetBSD sur disque dur",
|
|
|
|
|
action { do_upgrade(); };
|
1997-12-05 20:37:41 +03:00
|
|
|
|
option "R<>installer ou installer de nouveaux composants",
|
|
|
|
|
action { do_reinstall_sets(); };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Red<65>marrer l'ordinateur", exit,
|
2002-04-16 06:20:17 +04:00
|
|
|
|
action (endwin) { system("/sbin/reboot -q"); };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Menu utilitaire", sub menu utility;
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu utility, title "Utilitaires NetBSD-@@VERSION@@", exit;
|
2000-10-12 03:47:55 +04:00
|
|
|
|
/* option "test", action { run_prog(RUN_DISPLAY, NULL, "/bin/pwd"); }; */
|
|
|
|
|
/* option "testfalse", action { run_prog(0, "%s: kaput", "/bin/false"); }; */
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Ex<45>cuter /bin/sh",
|
|
|
|
|
action (endwin) { system("/bin/sh"); };
|
|
|
|
|
option "Configuration du r<>seau",
|
1997-12-26 04:58:44 +03:00
|
|
|
|
action {
|
|
|
|
|
extern int network_up;
|
|
|
|
|
|
|
|
|
|
network_up = 0;
|
|
|
|
|
config_network();
|
|
|
|
|
};
|
1997-11-27 13:10:05 +03:00
|
|
|
|
/* option "Partitioner un disque"; XXX add later. */
|
1999-04-08 16:54:52 +04:00
|
|
|
|
option "Traces", action { do_logging(); };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Arr<72>ter le syst<73>me", exit,
|
2002-04-16 06:20:17 +04:00
|
|
|
|
action (endwin) { system("/sbin/halt -q"); };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu yesno, title "oui ou non?";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Oui", exit, action {yesno = 1;};
|
|
|
|
|
option "Non", exit, action {yesno = 0;};
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu noyes, title "oui ou non?";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Non", exit, action {yesno = 0;};
|
|
|
|
|
option "Oui", exit, action {yesno = 1;};
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu ok, title "Presser entr<74>e pour continuer";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "ok", exit;
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu layout, y=13, title "Choisissez votre type d'installation";
|
extend sysinst disk handling, some general clean ups, better /etc support
and some sparc64 fixes. details:
- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap. a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing. this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'. create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.
[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB. as
such, my guesses might be wrong so port maintainers should look at these.
2001-01-14 05:38:13 +03:00
|
|
|
|
option "Standard", exit, action { layoutkind = 1; md_set_no_x(); };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Standard avec X", exit, action { layoutkind = 2; };
|
|
|
|
|
option "Personnalis<69>e", exit, action { layoutkind = 3; };
|
extend sysinst disk handling, some general clean ups, better /etc support
and some sparc64 fixes. details:
- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap. a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing. this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'. create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.
[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB. as
such, my guesses might be wrong so port maintainers should look at these.
2001-01-14 05:38:13 +03:00
|
|
|
|
option "Use Existing", exit, action { layoutkind = 4; }; /* XXX translate me */
|
|
|
|
|
|
2002-07-29 06:51:07 +04:00
|
|
|
|
menu layoutparts, exit, title "Choose file systems"; /* XXX translate me */
|
extend sysinst disk handling, some general clean ups, better /etc support
and some sparc64 fixes. details:
- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap. a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing. this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'. create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.
[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB. as
such, my guesses might be wrong so port maintainers should look at these.
2001-01-14 05:38:13 +03:00
|
|
|
|
display action { show_cur_filesystems (); };
|
|
|
|
|
option "swap", action { layout_swap = layout_swap - 1; };
|
|
|
|
|
option "/usr", action { layout_usr = layout_usr - 1; };
|
|
|
|
|
option "/var", action { layout_var = layout_var - 1; };
|
|
|
|
|
option "/home", action { layout_home = layout_home - 1; };
|
|
|
|
|
option "/tmp (mfs)", action { layout_tmp = layout_tmp - 1; };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu sizechoice, title "Choisissez votre unit<69> d'espace disque";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Megaoctets", exit, action
|
|
|
|
|
{ sizemult = MEG / sectorsize;
|
|
|
|
|
multname = msg_string(MSG_megname);
|
|
|
|
|
};
|
|
|
|
|
option "Cylindres", exit, action
|
2000-03-15 01:42:48 +03:00
|
|
|
|
{ sizemult = current_cylsize;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
multname = msg_string(MSG_cylname);
|
|
|
|
|
};
|
|
|
|
|
option "Secteurs", exit, action
|
|
|
|
|
{ sizemult = 1;
|
|
|
|
|
multname = msg_string(MSG_secname);
|
|
|
|
|
};
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu fspartok, title "Partitions ok?", y=15;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
display action {
|
|
|
|
|
msg_display(MSG_fspart, multname);
|
|
|
|
|
disp_cur_fspart(-1, 0);
|
|
|
|
|
};
|
|
|
|
|
option "Changer une partition", sub menu editfsparts;
|
1998-11-08 07:42:21 +03:00
|
|
|
|
option "Les Partitions sont ok", exit;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
extend sysinst disk handling, some general clean ups, better /etc support
and some sparc64 fixes. details:
- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap. a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing. this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'. create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.
[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB. as
such, my guesses might be wrong so port maintainers should look at these.
2001-01-14 05:38:13 +03:00
|
|
|
|
menu edfspart, title "Changer quoi?", exit, y=14;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
display action {
|
|
|
|
|
msg_display (MSG_edfspart, 'a'+editpart);
|
|
|
|
|
disp_cur_fspart(editpart, 1);
|
|
|
|
|
};
|
|
|
|
|
option "type de FS", sub menu selfskind;
|
|
|
|
|
option "Offset/taille", action
|
- Add 2 functions in label.c, getpartoff()/getpartsize() used to let the user
enter partitions offet and size. The user can chose unit independantly of
the unit used for display ('M'/'c'/'s'). These functions do the proper
bound checks and alignement/roudups. Used in the edfspart menu and
i386 md_make_bsd_partitions() (other ports should do the change as
well).
- now that getpartsize() does the rigth thing, kill the swapadj hack (which was
buggy anyway).
- in i386 md_make_bsd_partitions(), don't propose defaults that don't fit on
the disk. If the disk is too small, fallback to custom instead.
- fix a bug in mbr.c, where the partition flags would not have always been
reset. sysinst created me a MBR with 2 active partition. The boot code
doesn't like it :)
- added a message for eventual mount failures.
- killed donewfs and extracting messages, as we run the commands in a
subwindow these messages just flashed on the screen.
- Changes a few exit(1) to return(1), to give the user a second chance.
- added msg_clear() or wclear(stdscr) in a place or two, to make
display a bit nicer.
- in run_cmd(), if the command succeeded, don't wait for the user to
press enter.
1999-04-12 02:40:19 +04:00
|
|
|
|
{ int start, size;
|
1999-04-13 18:49:56 +04:00
|
|
|
|
msg_display_add(MSG_defaultunit, multname);
|
- Add 2 functions in label.c, getpartoff()/getpartsize() used to let the user
enter partitions offet and size. The user can chose unit independantly of
the unit used for display ('M'/'c'/'s'). These functions do the proper
bound checks and alignement/roudups. Used in the edfspart menu and
i386 md_make_bsd_partitions() (other ports should do the change as
well).
- now that getpartsize() does the rigth thing, kill the swapadj hack (which was
buggy anyway).
- in i386 md_make_bsd_partitions(), don't propose defaults that don't fit on
the disk. If the disk is too small, fallback to custom instead.
- fix a bug in mbr.c, where the partition flags would not have always been
reset. sysinst created me a MBR with 2 active partition. The boot code
doesn't like it :)
- added a message for eventual mount failures.
- killed donewfs and extracting messages, as we run the commands in a
subwindow these messages just flashed on the screen.
- Changes a few exit(1) to return(1), to give the user a second chance.
- added msg_clear() or wclear(stdscr) in a place or two, to make
display a bit nicer.
- in run_cmd(), if the command succeeded, don't wait for the user to
press enter.
1999-04-12 02:40:19 +04:00
|
|
|
|
start = getpartoff(MSG_offset, 0);
|
|
|
|
|
size = getpartsize(MSG_size, start, 0);
|
1997-11-27 13:10:05 +03:00
|
|
|
|
if (size == -1)
|
|
|
|
|
size = dlsize - start;
|
1999-03-31 04:44:48 +04:00
|
|
|
|
bsdlabel[editpart].pi_offset = start;
|
|
|
|
|
bsdlabel[editpart].pi_size = size;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
};
|
|
|
|
|
option "Taille de block/Taille de fragment", action
|
|
|
|
|
{ char buf[40]; int i;
|
|
|
|
|
|
2001-06-16 12:25:20 +04:00
|
|
|
|
if (!PI_ISBSDFS(&bsdlabel[editpart])) {
|
1997-11-27 13:10:05 +03:00
|
|
|
|
msg_display (MSG_not42bsd, 'a'+editpart);
|
|
|
|
|
process_menu (MENU_ok);
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|
|
|
|
|
msg_prompt_add (MSG_bsize, NULL, buf, 40);
|
|
|
|
|
i = atoi(buf);
|
1999-03-31 04:44:48 +04:00
|
|
|
|
bsdlabel[editpart].pi_bsize = i;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
msg_prompt_add (MSG_fsize, NULL, buf, 40);
|
|
|
|
|
i = atoi(buf);
|
1999-03-31 04:44:48 +04:00
|
|
|
|
bsdlabel[editpart].pi_fsize = i;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
};
|
|
|
|
|
option "Point de montage", action
|
extend sysinst disk handling, some general clean ups, better /etc support
and some sparc64 fixes. details:
- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap. a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing. this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'. create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.
[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB. as
such, my guesses might be wrong so port maintainers should look at these.
2001-01-14 05:38:13 +03:00
|
|
|
|
{ if (PI_ISBSDFS(&bsdlabel[editpart]) ||
|
2002-08-02 08:08:47 +04:00
|
|
|
|
bsdlabel[editpart].pi_fstype == FS_MSDOS) {
|
|
|
|
|
msg_prompt_add (MSG_mountpoint,
|
|
|
|
|
fsmount[editpart],
|
1997-11-27 13:10:05 +03:00
|
|
|
|
fsmount[editpart], 20);
|
2002-08-02 08:08:47 +04:00
|
|
|
|
if (strcmp(fsmount[editpart], "none") == 0)
|
|
|
|
|
fsmount[editpart][0] = '\0';
|
|
|
|
|
} else {
|
1997-11-27 13:10:05 +03:00
|
|
|
|
msg_display (MSG_nomount, 'a'+editpart);
|
|
|
|
|
process_menu (MENU_ok);
|
|
|
|
|
}
|
|
|
|
|
};
|
extend sysinst disk handling, some general clean ups, better /etc support
and some sparc64 fixes. details:
- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap. a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing. this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'. create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.
[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB. as
such, my guesses might be wrong so port maintainers should look at these.
2001-01-14 05:38:13 +03:00
|
|
|
|
option "Preserve", action /* XXX translate me */
|
|
|
|
|
{ preservemount[editpart] = 1 - preservemount[editpart];
|
|
|
|
|
};
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu selfskind, title "Selection du type de syst<73>me de fichier", y=15;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "4.2BSD", exit, action
|
1999-03-31 04:44:48 +04:00
|
|
|
|
{ bsdlabel[editpart].pi_fstype = FS_BSDFFS;
|
|
|
|
|
bsdlabel[editpart].pi_bsize = 8192;
|
|
|
|
|
bsdlabel[editpart].pi_fsize = 1024;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
};
|
|
|
|
|
option "unused", exit, action
|
1999-03-31 04:44:48 +04:00
|
|
|
|
{ bsdlabel[editpart].pi_fstype = FS_UNUSED;
|
|
|
|
|
bsdlabel[editpart].pi_bsize = 0;
|
|
|
|
|
bsdlabel[editpart].pi_fsize = 0;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
};
|
|
|
|
|
option "swap", exit, action
|
1999-03-31 04:44:48 +04:00
|
|
|
|
{ bsdlabel[editpart].pi_fstype = FS_SWAP;
|
|
|
|
|
bsdlabel[editpart].pi_bsize = 0;
|
|
|
|
|
bsdlabel[editpart].pi_fsize = 0;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
};
|
|
|
|
|
option "msdos", exit, action
|
1999-03-31 04:44:48 +04:00
|
|
|
|
{ bsdlabel[editpart].pi_fstype = FS_MSDOS;
|
|
|
|
|
bsdlabel[editpart].pi_bsize = 0;
|
|
|
|
|
bsdlabel[editpart].pi_fsize = 0;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
};
|
extend sysinst disk handling, some general clean ups, better /etc support
and some sparc64 fixes. details:
- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap. a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing. this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'. create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.
[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB. as
such, my guesses might be wrong so port maintainers should look at these.
2001-01-14 05:38:13 +03:00
|
|
|
|
option "4.4LFS", exit, action
|
|
|
|
|
{ bsdlabel[editpart].pi_fstype = FS_BSDLFS;
|
|
|
|
|
bsdlabel[editpart].pi_bsize = 8192;
|
|
|
|
|
bsdlabel[editpart].pi_fsize = 1024;
|
|
|
|
|
};
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu distmedium, title "S<>lection du media d'installation";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
display action { msg_display (MSG_distmedium); nodist = 0; };
|
1997-12-05 20:37:41 +03:00
|
|
|
|
option "ftp", action {
|
|
|
|
|
got_dist = get_via_ftp();
|
|
|
|
|
},
|
|
|
|
|
exit;
|
|
|
|
|
option "nfs", action {
|
|
|
|
|
got_dist = get_via_nfs();
|
|
|
|
|
}, exit;
|
|
|
|
|
option "cdrom", action {
|
|
|
|
|
got_dist = get_via_cdrom();
|
|
|
|
|
}, exit;
|
|
|
|
|
option "disquette", action {
|
|
|
|
|
got_dist = get_via_floppy();
|
|
|
|
|
}, exit;
|
|
|
|
|
|
|
|
|
|
option "systeme de fichier non-mont<6E>", action {
|
|
|
|
|
got_dist = get_via_localfs();
|
|
|
|
|
}, exit;
|
|
|
|
|
option "r<>pertoire local", action {
|
|
|
|
|
got_dist = get_via_localdir();
|
|
|
|
|
}, exit;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "aucun", action { nodist = 1; }, exit;
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu distset, title "S<>lection de la distribution";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
display action { msg_display (MSG_distset); };
|
|
|
|
|
option "Installation compl<70>te", exit;
|
|
|
|
|
option "Installation personnalis<69>e", next menu md_distcustom;
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu ftpsource, title "Changer";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
display action
|
2000-07-07 00:25:26 +04:00
|
|
|
|
{ msg_clear();
|
|
|
|
|
msg_table_add (MSG_ftpsource, ftp_host, ftp_dir, ftp_user,
|
1999-07-04 13:41:02 +04:00
|
|
|
|
strcmp(ftp_user, "ftp") == 0 ? ftp_pass :
|
2001-06-07 03:12:48 +04:00
|
|
|
|
strlen(ftp_pass) != 0 ? "** cach<63> **" : "",
|
|
|
|
|
ftp_proxy);
|
1997-11-27 13:10:05 +03:00
|
|
|
|
};
|
|
|
|
|
option "Serveur ftp", action
|
1999-06-19 05:10:59 +04:00
|
|
|
|
{ msg_prompt (MSG_host, ftp_host, ftp_host, 255); };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "R<>pertoire", action
|
1999-06-19 05:10:59 +04:00
|
|
|
|
{ msg_prompt (MSG_dir, ftp_dir, ftp_dir, 255); };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Utilisateur", action
|
2002-07-29 07:24:47 +04:00
|
|
|
|
{ msg_prompt (MSG_user, ftp_user, ftp_user, 255);
|
|
|
|
|
ftp_pass[0] = '\0';
|
|
|
|
|
};
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Mot de passe", action
|
|
|
|
|
{ if (strcmp(ftp_user, "ftp") == 0)
|
1999-06-19 05:10:59 +04:00
|
|
|
|
msg_prompt (MSG_email, ftp_pass, ftp_pass, 255);
|
1997-11-27 13:10:05 +03:00
|
|
|
|
else {
|
2000-01-15 18:55:20 +03:00
|
|
|
|
msg_prompt_noecho (MSG_passwd, "", ftp_pass, 255);
|
1997-11-27 13:10:05 +03:00
|
|
|
|
}
|
|
|
|
|
};
|
2001-06-07 03:12:48 +04:00
|
|
|
|
option "Proxy", action
|
|
|
|
|
{ msg_prompt (MSG_proxy, ftp_proxy, ftp_proxy, 255);
|
|
|
|
|
if (strcmp(ftp_proxy, "") == 0)
|
|
|
|
|
unsetenv("ftp_proxy");
|
|
|
|
|
else
|
|
|
|
|
setenv("ftp_proxy", ftp_proxy, 1);
|
|
|
|
|
};
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "R<>cup<75>rer la Distribution", exit;
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu nfssource, title "Changer";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
display action
|
|
|
|
|
{ msg_display (MSG_nfssource, nfs_host, nfs_dir); };
|
|
|
|
|
option "Serveur nfs", action
|
|
|
|
|
{ msg_prompt (MSG_host, NULL, nfs_host, 255); };
|
|
|
|
|
option "R<>pertoire", action
|
|
|
|
|
{ msg_prompt (MSG_dir, NULL, nfs_dir, 255); };
|
|
|
|
|
option "Continuer", exit;
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu nfsbadmount, title "Que voulez vous faire?";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "R<>essayer", exit, sub menu nfssource, action
|
1997-12-05 20:37:41 +03:00
|
|
|
|
{ yesno = 1; ignorerror = 0; };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Abandonner", exit, action
|
1997-12-05 20:37:41 +03:00
|
|
|
|
{ yesno = 1; ignorerror = 0; };
|
|
|
|
|
option "Ignorer les erreurs, continuer quand m<>me", exit, action
|
|
|
|
|
{ yesno = 1; ignorerror = 1; };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu fdremount, title "Que voulez vous faire?";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "R<>essayer", exit, action { yesno = 1; };
|
|
|
|
|
option "Annuler l'installation", exit, action { yesno = 0; };
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu fdok, title "Presser entr<74>e pour continuer";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "OK", exit, action { yesno = 1; };
|
|
|
|
|
option "Abandonner l'installation", exit, action { yesno = 0; };
|
|
|
|
|
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu cdromsource, title "Changer";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
display action
|
|
|
|
|
{ msg_display (MSG_cdromsource, cdrom_dev, cdrom_dir); };
|
|
|
|
|
option "Device", action
|
|
|
|
|
{ msg_prompt (MSG_dev, cdrom_dev, cdrom_dev, SSTRSIZE); };
|
|
|
|
|
option "R<>pertoire", action
|
|
|
|
|
{ msg_prompt (MSG_dir, cdrom_dir, cdrom_dir, STRSIZE); };
|
1998-11-10 18:06:29 +03:00
|
|
|
|
option "Continuer", exit;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu cdrombadmount, title "Que voulez-vous faire?";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "R<>essayer", exit, sub menu cdromsource, action
|
1997-12-05 20:37:41 +03:00
|
|
|
|
{ yesno = 1; ignorerror = 0; };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Abandonner", exit, action
|
1997-12-05 20:37:41 +03:00
|
|
|
|
{ yesno = 0; ignorerror = 0; };
|
|
|
|
|
option "Ignorer les erreurs, continuer quand m<>me", exit, action
|
|
|
|
|
{ yesno = 1; ignorerror = 1; };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu localfssource, title "Changer";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
display action
|
|
|
|
|
{ msg_display (MSG_localfssource, localfs_dev, localfs_fs, localfs_dir); };
|
|
|
|
|
option "Device", action
|
|
|
|
|
{ msg_prompt (MSG_dev, localfs_dev, localfs_dev, SSTRSIZE); };
|
|
|
|
|
option "Syst<73>me de fichier", action
|
|
|
|
|
{ msg_prompt (MSG_filesys, localfs_fs, localfs_fs, STRSIZE); };
|
|
|
|
|
option "R<>pertoire", action
|
|
|
|
|
{ msg_prompt (MSG_dir, localfs_dir, localfs_dir, STRSIZE); };
|
|
|
|
|
option "Continuer", exit;
|
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu localfsbadmount, title "Que voulez vous faire?";
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "R<>essayer", exit, sub menu localfssource, action
|
1997-12-05 20:37:41 +03:00
|
|
|
|
{ yesno = 1; ignorerror = 0; };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
option "Abandonner", exit, action
|
1997-12-05 20:37:41 +03:00
|
|
|
|
{ yesno = 1; ignorerror = 0; };
|
|
|
|
|
option "Ignorer les erreurs, continuer quand m<>me", exit, action
|
|
|
|
|
{ yesno = 1; ignorerror = 1; };
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
1997-12-05 20:37:41 +03:00
|
|
|
|
menu localdirsource, title "Changer";
|
|
|
|
|
display action
|
|
|
|
|
{ msg_display(MSG_localdir, localfs_dir); };
|
|
|
|
|
option "R<>pertoire", action
|
|
|
|
|
{ msg_prompt (MSG_dir, localfs_dir, localfs_dir, STRSIZE); },
|
|
|
|
|
exit;
|
|
|
|
|
option "Continuer", exit;
|
1997-11-27 13:10:05 +03:00
|
|
|
|
|
1999-06-20 05:23:32 +04:00
|
|
|
|
menu localdirbad, title "Que voulez vous faire?";
|
1997-12-05 20:37:41 +03:00
|
|
|
|
option "Changer le chemin d'acc<63>s", action
|
|
|
|
|
{ yesno = 1;
|
|
|
|
|
msg_prompt(MSG_localdir, localfs_dir, localfs_dir, STRSIZE);
|
|
|
|
|
}, exit;
|
|
|
|
|
option "Abandonner", exit, action
|
|
|
|
|
{ yesno = 0; ignorerror = 0; };
|
|
|
|
|
option "Ignorer les erreurs, continuer quand m<>me", exit, action
|
|
|
|
|
{ yesno = 1; ignorerror = 1; };
|
2000-01-04 11:33:51 +03:00
|
|
|
|
|
2000-01-15 18:55:20 +03:00
|
|
|
|
menu namesrv6, title " Choisissez un serveur de noms IPv6 :";
|
2000-01-04 11:33:51 +03:00
|
|
|
|
option "paradise.v6.kame.net", exit, action
|
2000-01-05 04:50:45 +03:00
|
|
|
|
{
|
|
|
|
|
#ifdef INET6
|
|
|
|
|
strncpy(net_namesvr6, "3ffe:501:4819::42",
|
2000-01-04 11:33:51 +03:00
|
|
|
|
sizeof(net_namesvr6));
|
2000-01-05 04:50:45 +03:00
|
|
|
|
yesno = 1;
|
|
|
|
|
#else
|
|
|
|
|
yesno = 0;
|
|
|
|
|
#endif
|
|
|
|
|
};
|
2000-01-04 11:33:51 +03:00
|
|
|
|
option "kiwi.itojun.org", exit, action
|
2000-01-05 04:50:45 +03:00
|
|
|
|
{
|
|
|
|
|
#ifdef INET6
|
|
|
|
|
strncpy(net_namesvr6, "3ffe:501:410:100:5254:ff:feda:48bf",
|
2000-01-04 11:33:51 +03:00
|
|
|
|
sizeof(net_namesvr6));
|
2000-01-05 04:50:45 +03:00
|
|
|
|
yesno = 1;
|
|
|
|
|
#else
|
|
|
|
|
yesno = 0;
|
|
|
|
|
#endif
|
|
|
|
|
};
|
2000-01-04 11:33:51 +03:00
|
|
|
|
option "sh1.iijlab.net", exit, action
|
2000-01-05 04:50:45 +03:00
|
|
|
|
{
|
|
|
|
|
#ifdef INET6
|
|
|
|
|
strncpy(net_namesvr6, "3ffe:507:0:1:260:97ff:fe07:69ea",
|
2000-01-04 11:33:51 +03:00
|
|
|
|
sizeof(net_namesvr6));
|
2000-01-05 04:50:45 +03:00
|
|
|
|
yesno = 1;
|
|
|
|
|
#else
|
|
|
|
|
yesno = 0;
|
|
|
|
|
#endif
|
|
|
|
|
};
|
2000-01-04 11:33:51 +03:00
|
|
|
|
option "ns1.v6.intec.co.jp", exit, action
|
2000-01-05 04:50:45 +03:00
|
|
|
|
{
|
|
|
|
|
#ifdef INET6
|
|
|
|
|
strncpy(net_namesvr6, "3ffe:508:0:1::53",
|
2000-01-04 11:33:51 +03:00
|
|
|
|
sizeof(net_namesvr6));
|
2000-01-05 04:50:45 +03:00
|
|
|
|
yesno = 1;
|
|
|
|
|
#else
|
|
|
|
|
yesno = 0;
|
|
|
|
|
#endif
|
|
|
|
|
};
|
2000-01-04 11:33:51 +03:00
|
|
|
|
option "nttv6.net", exit, action
|
2000-01-05 04:50:45 +03:00
|
|
|
|
{
|
|
|
|
|
#ifdef INET6
|
|
|
|
|
strncpy(net_namesvr6, "3ffe:1800:1000::1",
|
2000-01-04 11:33:51 +03:00
|
|
|
|
sizeof(net_namesvr6));
|
2000-01-05 04:50:45 +03:00
|
|
|
|
yesno = 1;
|
|
|
|
|
#else
|
|
|
|
|
yesno = 0;
|
|
|
|
|
#endif
|
|
|
|
|
};
|
2000-01-04 11:33:51 +03:00
|
|
|
|
option "light.imasy.or.jp", exit, action
|
2000-01-05 04:50:45 +03:00
|
|
|
|
{
|
|
|
|
|
#ifdef INET6
|
|
|
|
|
strncpy(net_namesvr6, "3ffe:505:0:1:2a0:c9ff:fe61:6521",
|
2000-01-04 11:33:51 +03:00
|
|
|
|
sizeof(net_namesvr6));
|
2000-01-05 04:50:45 +03:00
|
|
|
|
yesno = 1;
|
|
|
|
|
#else
|
|
|
|
|
yesno = 0;
|
|
|
|
|
#endif
|
|
|
|
|
};
|
2000-01-04 11:33:51 +03:00
|
|
|
|
option "other ", exit, action
|
|
|
|
|
{ yesno = 0; };
|
|
|
|
|
|
2000-01-15 18:55:20 +03:00
|
|
|
|
menu ip6autoconf, title "Faire la configuration automatique IPv6 ?";
|
2000-01-04 11:33:51 +03:00
|
|
|
|
option "Yes", exit, action {yesno = 1;};
|
|
|
|
|
option "No", exit, action {yesno = 0;};
|
2000-06-19 03:50:02 +04:00
|
|
|
|
|
|
|
|
|
menu dhcpautoconf, title "Ex<45>cutez la configuration automatique de DHCP?";
|
|
|
|
|
option "Yes", exit, action {yesno = 1;};
|
|
|
|
|
option "No", exit, action {yesno = 0;};
|