summaryrefslogtreecommitdiff
path: root/usr.sbin/sysinst/util.c
AgeCommit message (Collapse)Author
2023-06-24Fix typo in comment.msaitoh
2022-12-15PR 57100: in manual mode, we can not ignore existing partitionsmartin
completley, as that causes inconsistent internal state.
2022-12-15Add an (expert) option to manually edit partitions, inspired by PR 57100.martin
2022-07-10Preparations to make the extended partitioning during normal installationmartin
more usefull - pass an optional install_description to partman().
2022-06-24Use proper ANSI function declarations.tsutsui
2022-05-18When not invoked via some explicit "configure network" menu item,martin
auto-detect an already working network setup and offer to "just use" it whenver we need connectivity.
2022-04-21Make default installations a bit more secure:martin
- 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
2022-04-14Fix invalid msg_fmt_table_add() call, pointed out by Andreas Gustafsson.martin
2022-01-29Try to get rid of all wedges we created (after unmounting).martin
2022-01-03Now that (semi-)manual entropy setup may happen outside of the mainmartin
install/upgrade path, we need to (re-)write the entropy seed file afterwards - the earlier written one would not have an entropy estimate if we get here.
2021-10-08Re-enable the entropy handling code in sysinst (only visible on machinesmartin
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).
2021-09-26Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditionalmaya
Simplifies logic. (Second commit - first one was partial) Restoring MK* requested by mrg on tech-kern discussion https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html
2021-09-25Move DRM-driver firmware from base to its own set, gpufwmaya
This set is only installed on amd64,i386,evbarm. This set is installed on minimal installs and on install media, in case someone needs it for basic driver functionality. Comments: Switched to a single MK tunable for it - that is probably unneeded. An upcoming DRM update will include even fatter firmware, and we'd like to minimize the impact of it.
2021-08-03Cleanup alarm(3) handling in the timezone selection menu for errormartin
cases, pointed out by RVP.
2021-07-20RAM size will not change during installation, do the sysctl() dancemartin
only once.
2021-01-31sysinst: remove trailing whitespace from *.c *.hrillig
In contrast to the messages files, this whitespace is not significant.
2020-11-10Fix typos in commentgson
2020-11-04Avoid warningsmartin
2020-11-04Add (experimental) entropy input support:martin
Early during new installs or after upgrades we check if entropy is available. If not (no hardware random number generator available) we inform the user and ask them to fix it.
2020-10-30PR 55769: avoid the module set if we do not build anymartin
2020-10-27When we did not magically find any CD medium with sets, offer a manualmartin
override (so ISO images on USB sticks or Xen's xbd(4) work).
2020-10-26PR 55752: relax an assertion, the first getvfsstat() call may overestimatemartin
the file systems visible to us.
2020-10-25Mark a variable only used in an assert as __diagused.martin
2020-10-24When looking for available CD media, skip those that are already mounted.martin
When no medium with sets is found, show a new error message and return to the source selection menu. Rearrange all source option menus to have the proper set suffix available (either .tgz or .tar.xz).
2020-10-13PR 55142: on popular demand bring back expert options to adjust themartin
number of free inodes, block size and fragment size for FFS and LFS.
2020-09-27Fix display of timezone selection menumartin
2020-09-22Keep a list of all partition tables from which we have deleted partitionsmartin
and make sure we update those partition tables when writing partitions, even if no install related partition remains on them.
2020-05-18Separate devicetree .dts -> .dtb building from kernel builds. They are nowjmcneill
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This defaults to yes for earmv[67]* and aarch64, and no everywhere else.
2020-05-12Ooops, backout previous - twice the entropy saving is not needed.martin
Instead slightly improve the (slightly) hidden other code that already did it.
2020-05-12At the end of a new installation save entropy.martin
2020-01-26When retrying sets during extraction, reset the relevant statisticsmartin
to avoid counting retried sets multiple times. Reported by kim.
2020-01-20First try to bring evbarm installation closer to current reality.martin
2019-11-16On amd64 support installation with a KASLR kernel, via "custom install"martin
and selecting the GENERIC_KASLR kernel set. Setup /prekern and boot.cfg accordingly.
2019-11-16Make sure all menus have a translatable exit option (or none at all).martin
2019-11-14Make tar extraction flags depend on our usage of pax-as-tar or bsdtar.martin
2019-11-13Make cloning support optional, so we can save some space on very smallmartin
install media.
2019-11-12PR 54467: we trust our own sets, extract them with -P to allow symlinkmartin
redirection (especially for updates and chroot services - back out once a better solution for those is implemented)
2019-11-12Add options to the various partitioning stages that allow cloning ofmartin
alien partitions (optionally including data).
2019-10-04add a size_t len to get_iso9660_volname() so it can properly domrg
bounds checking. ok martin@
2019-10-02Split out /rescue to its own set and adapt installers/images to add it.maya
This is meant to make updates safer: if something goes wrong with updating base, we still have the old, standalone /rescue to recover from.
2019-08-27Do not offer to upgared the "current system" if we are running off a CDmartin
(i.e. / is mounted read-only)
2019-08-17Fix some memory leaks in error pathsmartin
2019-08-17PR 54473: fix error prompt when a set file is missingmartin
2019-07-24Work with bsdtar as pointed out by kamil@roy
2019-07-21scripting_vprintf: to simplify things for gcc (and avoid "may be usedmartin
uninitialized" warnings) just always copy the va_list and use one copy for the first pass, the other for the second.
2019-07-21scripting_fprintf: when we traverse the va_list twice, we need to savemartin
it before the first and reset it before the second pass.
2019-07-08Properly zero new memory after reallocating the timezone menumartin
2019-06-22no need to initialize fields that are already 0.christos
2019-06-20Use _fmt_ msg_ methods when formats are needed.christos
2019-06-18When creating an install description from existing partitions, usemartin
the inner partitioning scheme (e.g.: disklabel) instead of the outer (e.g. MBR).