The NetBSD Project

CVS log for src/usr.sbin/sysinst/configmenu.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / sysinst

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Wed May 18 16:39:03 2022 UTC (8 months, 2 weeks ago) by martin
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

When not invoked via some explicit "configure network" menu item,
auto-detect an already working network setup and offer to "just use" it
whenver we need connectivity.

Revision 1.16 / (download) - annotate - [select for diffs], Sun May 15 16:38:25 2022 UTC (8 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.15: +34 -2 lines
Diff to previous 1.15 (colored)

sysinst: Enable mDNS lookups via NSS when enabling mdnsd.

Add/remove "multicast_dns" to the hosts: line in /etc/nsswitch.conf when
toggling the mdnsd rcvar. Change the label from "Enable mdnsd" to "Enable
multicast DNS support" to better describe what's going on here.

Now when you enable multicast DNS support in the installer, the host will
both advertise itself on the network and resolve .local network names.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Apr 21 17:30:15 2022 UTC (9 months, 1 week ago) by martin
Branch: MAIN
Changes since 1.14: +9 -1 lines
Diff to previous 1.14 (colored)

Make default installations a bit more secure:
 - push a bit harder for setup of a root password
 - simplify/clarify manual entropy setup
 - visit the entropy setup (on machines where it is needed) on the
   default path through sysinst

Revision 1.14 / (download) - annotate - [select for diffs], Sat Oct 9 09:06:28 2021 UTC (15 months, 3 weeks ago) by martin
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)

Consistent #if for static helper function add_entropy

Revision 1.13 / (download) - annotate - [select for diffs], Fri Oct 8 15:59:55 2021 UTC (15 months, 3 weeks ago) by martin
Branch: MAIN
Changes since 1.12: +19 -1 lines
Diff to previous 1.12 (colored)

Re-enable the entropy handling code in sysinst (only visible on machines
that do not have full entropy), but move it to the config menu
instead of enforcing it as mandatory step.

This menu is shown at the end of the setup, or if explicitly invoked
from the main menu.

Some of the input options are complex but useful in some situations
and code to support them is tiny. Most users will use the manual input
(first + default option) but some might prefer to connect a USB TRNG
or have easy setups to transfer entropy from another machine (while
copy & paste on a serial console sometimes is tricky).

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 31 22:45:46 2021 UTC (2 years ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

sysinst: remove trailing whitespace from *.c *.h

In contrast to the messages files, this whitespace is not significant.

Revision 1.5.16.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:06:00 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.5: +17 -18 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Sun Nov 17 13:45:26 2019 UTC (3 years, 2 months ago) by msaitoh
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pull up following revision(s) (requested by martin in ticket #436):
	usr.sbin/sysinst/disks.c: revision 1.55
	usr.sbin/sysinst/msg.mi.en: revision 1.24
	usr.sbin/sysinst/mbr.c: revision 1.22
	usr.sbin/sysinst/disks.c: revision 1.56
	usr.sbin/sysinst/msg.mi.en: revision 1.25
	usr.sbin/sysinst/disks.c: revision 1.57
	usr.sbin/sysinst/arch/playstation2/msg.md.pl: revision 1.3
	usr.sbin/sysinst/Makefile.inc: revision 1.30
	usr.sbin/sysinst/configmenu.c: revision 1.11
	usr.sbin/sysinst/util.c: revision 1.35
	usr.sbin/sysinst/gpt.c: revision 1.12
	usr.sbin/sysinst/util.c: revision 1.36
	usr.sbin/sysinst/arch/playstation2/msg.md.de: revision 1.3
	usr.sbin/sysinst/arch/i386/menus.md: revision 1.3
	usr.sbin/sysinst/util.c: revision 1.37
	usr.sbin/sysinst/part_edit.c: revision 1.11
	usr.sbin/sysinst/arch/i386/msg.md.en: revision 1.2
	usr.sbin/sysinst/util.c: revision 1.38
	usr.sbin/sysinst/part_edit.c: revision 1.12
	usr.sbin/sysinst/arch/i386/msg.md.en: revision 1.3
	usr.sbin/sysinst/util.c: revision 1.39
	usr.sbin/sysinst/part_edit.c: revision 1.13
	usr.sbin/sysinst/arch/i386/msg.md.en: revision 1.4
	usr.sbin/sysinst/disklabel.c: revision 1.15
	usr.sbin/sysinst/bsddisklabel.c: revision 1.30
	usr.sbin/sysinst/arch/i386/msg.md.es: revision 1.2
	usr.sbin/sysinst/bsddisklabel.c: revision 1.31
	usr.sbin/sysinst/arch/i386/msg.md.es: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.es: revision 1.4
	usr.sbin/sysinst/mbr.h: revision 1.4
	usr.sbin/sysinst/main.c: revision 1.18
	usr.sbin/sysinst/partman.c: revision 1.44
	usr.sbin/sysinst/msg.mi.de: revision 1.17
	usr.sbin/sysinst/arch/i386/msg.md.fr: revision 1.2
	usr.sbin/sysinst/msg.mi.de: revision 1.18
	usr.sbin/sysinst/arch/i386/msg.md.fr: revision 1.3
	usr.sbin/sysinst/arch/playstation2/msg.md.en: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.fr: revision 1.4
	usr.sbin/sysinst/arch/amd64/md.c: revision 1.2
	usr.sbin/sysinst/arch/ews4800mips/Makefile: revision 1.3
	usr.sbin/sysinst/arch/playstation2/msg.md.es: revision 1.3
	usr.sbin/sysinst/label.c: revision 1.13
	usr.sbin/sysinst/Makefile.inc: revision 1.29
	usr.sbin/sysinst/label.c: revision 1.14
	usr.sbin/sysinst/util.c: revision 1.40
	usr.sbin/sysinst/partitions.c: revision 1.5
	usr.sbin/sysinst/arch/amd64/md.h: revision 1.8
	usr.sbin/sysinst/msg.mi.es: revision 1.18
	usr.sbin/sysinst/net.c: revision 1.34
	usr.sbin/sysinst/msg.mi.es: revision 1.19
	usr.sbin/sysinst/arch/i386/msg.md.pl: revision 1.2
	usr.sbin/sysinst/arch/i386/md.c: revision 1.22
	usr.sbin/sysinst/msg.mi.fr: revision 1.22
	usr.sbin/sysinst/arch/playstation2/msg.md.fr: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.pl: revision 1.3
	usr.sbin/sysinst/arch/i386/md.c: revision 1.23
	usr.sbin/sysinst/msg.mi.pl: revision 1.25
	usr.sbin/sysinst/msg.mi.fr: revision 1.23
	usr.sbin/sysinst/arch/i386/msg.md.pl: revision 1.4
	usr.sbin/sysinst/arch/i386/md.c: revision 1.24
	usr.sbin/sysinst/partitions.h: revision 1.8
	usr.sbin/sysinst/msg.mi.pl: revision 1.26
	usr.sbin/sysinst/arch/i386/msg.md.de: revision 1.2
	usr.sbin/sysinst/arch/i386/msg.md.de: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.de: revision 1.4
	usr.sbin/sysinst/run.c: revision 1.13
	usr.sbin/sysinst/defs.h: revision 1.46
	usr.sbin/sysinst/install.c: revision 1.12
	usr.sbin/sysinst/defs.h: revision 1.47
	usr.sbin/sysinst/install.c: revision 1.13
	usr.sbin/sysinst/defs.h: revision 1.48
Add options to the various partitioning stages that allow cloning of
alien partitions (optionally including data).
PR 54467: we trust our own sets, extract them with -P to allow symlink
redirection (especially for updates and chroot services - back out
once a better solution for those is implemented)
Make cloning support optional, so we can save some space on very small
install media.
Drop MBR and cloning support on crunched install media.
Make tar extraction flags depend on our usage of pax-as-tar or bsdtar.
Fix missing newlines in bios match display, pointed out by maxv.
Drop unused variable.
Fix table of bios geomatries
knf style adjustments
Make the bootblock selection menu more sane, pointed out by maxv
Make sure all menus have a translatable exit option (or none at all).
On amd64 support installation with a KASLR kernel, via "custom install"
and selecting the GENERIC_KASLR kernel set.
Setup /prekern and boot.cfg accordingly.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 16 20:26:59 2019 UTC (3 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Make sure all menus have a translatable exit option (or none at all).

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 23 18:13:40 2019 UTC (3 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

For upgrade / re-install allow the currently running system as a target
in the "disk" selection.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Jun 22 20:46:07 2019 UTC (3 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.8: +2 -5 lines
Diff to previous 1.8 (colored)

no need to initialize fields that are already 0.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 20 15:58:59 2019 UTC (3 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.7: +4 -5 lines
Diff to previous 1.7 (colored)

use proper format strings in replace().

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 20 00:43:55 2019 UTC (3 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Use _fmt_ msg_ methods when formats are needed.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 12 06:20:17 2019 UTC (3 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.5: +12 -9 lines
Diff to previous 1.5 (colored)

Rework internal data structures and "interfaces to user interface" functions
to get rid of all disklabel assumptions.

Previously (even for GPT partitioning) struct disklabel was used, which
obviously breaks large disk setups. Also many MD parts and parts of the
user interface assumed (a) a struct disklabel is used internally to
store partitioning information and (b) partitions are named 'a' ... $MAXPART.

Get rid of this and replace it with a quite abstract interface that should
be able to deal with all variants in partition storage:

 - partitions are stored in a (partly abstract) struct disk_partitions
   and most parts of it are only accessed via accessor functions provided
   by a "partitioning scheme".

 - implement partitioning schemes for MBR, disklabel and GPT (with likely
   RDB [amiga] and Apple Partition Map [mac*] to follow soon)

 - partitioning schemes may be cascaded, e.g. on x86 when using MBR as
   "outer partitions", we have disklabel as "inner partitions".

 - all user interface goes via accessor functions in the partitioning scheme,
   some of which return pointers to special user interface descriptors
   (e.g. to allow editing partition flags, which are scheme specific)

Overall the user interface changes (in this initial step) are minimal but
noticable. A new Anita is needed for automatic test setups - many thanks
to Andreas Gustafsson for lots of early testing and a new Anita version,
and to Manuel Bouyer for cooperation and tests of the Anita release.

This work was sponsored by The NetBSD Foundation, Inc.

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Thu May 14 07:58:49 2015 UTC (7 years, 8 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.2.4.1: +9 -10 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Pull up following revision(s) (requested by martin in ticket #756):
	usr.sbin/sysinst/arch/arc/md.c: revision 1.4
	usr.sbin/sysinst/arch/atari/md.c: revision 1.3
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.4
	usr.sbin/sysinst/arch/emips/md.c: revision 1.3
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.4
	usr.sbin/sysinst/arch/evbarm64/md.c: revision 1.2
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.4
	usr.sbin/sysinst/arch/i386/md.c: revision 1.6
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.3
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.de: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.en: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.es: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.pl: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.4
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.3
	usr.sbin/sysinst/arch/prep/md.c: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/prep/menus.md.en: revision 1.2
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.4
	usr.sbin/sysinst/configmenu.c: revisions 1.4, 1.5
	usr.sbin/sysinst/defs.h: revisions 1.8, 1.9
	usr.sbin/sysinst/disks.c: revision 1.9
	usr.sbin/sysinst/install.c: revision 1.4
	usr.sbin/sysinst/label.c: revision 1.3
	usr.sbin/sysinst/mbr.c: revision 1.5
	usr.sbin/sysinst/menus.mi: revisions 1.9, 1.10
	usr.sbin/sysinst/net.c: revisions 1.18-1.20
	usr.sbin/sysinst/partman.c: revision 1.10
	usr.sbin/sysinst/upgrade.c: revision 1.4
	usr.sbin/sysinst/util.c: revisions 1.6, 1.7
Backout the previous incorrect fix for PR 49440 and redo it more globaly:
get rid of the global "yesno", introduce utility functions "ask_yesno()"
and "ask_noyes()" instead, greatly simplifying a lot of code.
Pass in a pointer to the return value to various "set source" menus.
--
Make it compile on architectures that do not support INET6 in sysinst
--
Remove a few more (ab-)usages of "yesno".
--
More (ab-)usages of "yesno"
--
Make "ask_yesno" and "ask_noyes" take a const char * as argument, moving
the deconst() dance into the utility functions and simplifying all callers.
--
Missed a few more "yesno" in previous

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 11 13:07:57 2015 UTC (7 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Make "ask_yesno" and "ask_noyes" take a const char * as argument, moving
the deconst() dance into the utility functions and simplifying all callers.

Revision 1.4 / (download) - annotate - [select for diffs], Sun May 10 10:14:02 2015 UTC (7 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.3: +9 -10 lines
Diff to previous 1.3 (colored)

Backout the previous incorrect fix for PR 49440 and redo it more globaly:
get rid of the global "yesno", introduce utility functions "ask_yesno()"
and "ask_noyes()" instead, greatly simplifying a lot of code.
Pass in a pointer to the return value to various "set source" menus.

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Fri Jan 23 10:06:30 2015 UTC (8 years ago) by martin
Branch: netbsd-7
Changes since 1.2: +4 -2 lines
Diff to previous 1.2 (colored)

Pull up following revision(s) (requested by snj in ticket #445):
	usr.sbin/sysinst/configmenu.c: revision 1.3
Handle empty input gracefully by simply jumping back to the config menu.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jan 20 21:51:05 2015 UTC (8 years ago) by snj
Branch: MAIN
Changes since 1.2: +4 -2 lines
Diff to previous 1.2 (colored)

Handle empty input gracefully by simply jumping back to the config menu.

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:13 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.2.6.1: +472 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sun Aug 10 07:00:24 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.2.2.1: +472 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Rebase.

Revision 1.2.6.1, Sun Aug 3 16:09:38 2014 UTC (8 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.2: +0 -472 lines
FILE REMOVED

file configmenu.c was added on branch tls-maxphys on 2014-08-20 00:05:13 +0000

Revision 1.2.2.1, Sun Aug 3 16:09:38 2014 UTC (8 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.2: +0 -472 lines
FILE REMOVED

file configmenu.c was added on branch tls-earlyentropy on 2014-08-10 07:00:24 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 3 16:09:38 2014 UTC (8 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: tls-maxphys, tls-earlyentropy, netbsd-7
Changes since 1.1: +51 -38 lines
Diff to previous 1.1 (colored)

(Finally) merge a slightly modified version of the 2012 GSoC results
from Eugene Lozovoy: add extended partitioning options to sysinst.
Still needs some testing and polishing, but it now is possible to use GPT
or to create a RAID set from scratch and install onto it.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 26 19:30:44 2014 UTC (8 years, 6 months ago) by dholland
Branch: MAIN

Move sysinst sources to usr.sbin.

This commit only physically moves the sources - there are no other
changes, to maximize the probability that this will be treated as a
rename if we ever do manage to migrate away from CVS.

Moving sysinst has been discussed on and off for years and has two
goals: making it easier to work on sysinst, and also making sysinst
available on running systems for use installing chroots and VM images
and other such things. None of the latter is possible yet, but as they
say, one thing at a time.

Doing this now was approved in an impromptu fashion by mrg, riz,
riastradh, me, and groo.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>