Commit Graph

77 Commits

Author SHA1 Message Date
hannken 050294fac1 Increase length of set description to 40 characters so recent additions fit.
Ok: martin@

Fixes PR install/58188 "sysinst fails to display status of base32 set"
2024-04-25 11:25:08 +00:00
nia f7dfb79875 Move MIPS N64 compat out of {base,debug}32 into {base,debug}64
martin requested separation by ABI and it doesn't make much sense
to have 64-bit binaries in a set called 32.
2024-04-22 14:41:24 +00:00
nia 545236f400 Add new sets: base32, debug32, manhtml
- base32 contains (when MKCOMPAT=yes) shared libraries for 32-bit
  compatibility, previously included in base

- debug32 contains (when MKCOMPAT=yes) debug symbols and static libraries
  containing debug symbols for 32-bit compatiblity, previously included
  in debug

- manhtml contains (when MKHTML=yes) the HTML files previously included
  in 'man', which are of limited utility without third-party software.

The motivation for this change is to be able to easily exclude sets
from CD-ROM images that go over the size limit without xz compression
(which many NetBSD platforms struggle to extract at acceptable speeds).
2024-04-09 15:17:21 +00:00
martin a018a4a90d Force alignment of disk buffers to at least 8 byte.
Fixes PR 56434.
2023-11-20 18:03:55 +00:00
riastradh b3b874d033 sysinst(1): Run `certctl rehash' on fresh installs.
It has come to my attention that sysinst does not, in fact, run
postinstall(8) post-install -- only post-upgrade.

Perhaps we should change this so that postinstall serves the purpose
it says on the box -- make postinstall mandatory for new
installations.

XXX pullup-10
2023-09-07 16:38:08 +00:00
msaitoh 37a23ecf39 Fix typo in comment. 2023-06-24 05:18:12 +00:00
martin bd887569a6 PR 57100: in manual mode, we can not ignore existing partitions
completley, as that causes inconsistent internal state.
2022-12-15 20:34:46 +00:00
martin ec5e52a94f Add an (expert) option to manually edit partitions, inspired by PR 57100. 2022-12-15 15:32:04 +00:00
martin c38850fb43 Preparations to make the extended partitioning during normal installation
more usefull - pass an optional install_description to partman().
2022-07-10 10:52:40 +00:00
tsutsui 70b74d3017 Use proper ANSI function declarations. 2022-06-24 22:05:24 +00:00
martin a4e88c6090 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.
2022-05-18 16:39:03 +00:00
martin 18183f70fd 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
2022-04-21 17:30:15 +00:00
martin 1e0c64ad24 Fix invalid msg_fmt_table_add() call, pointed out by Andreas Gustafsson. 2022-04-14 15:48:31 +00:00
martin 8bb96d39e3 Try to get rid of all wedges we created (after unmounting). 2022-01-29 15:32:49 +00:00
martin 1219ba360c Now that (semi-)manual entropy setup may happen outside of the main
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.
2022-01-03 11:44:02 +00:00
martin 03af0822f9 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).
2021-10-08 15:59:55 +00:00
maya f9d97969cb Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional
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-26 15:52:40 +00:00
maya f54624bd74 Move DRM-driver firmware from base to its own set, gpufw
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-09-25 08:54:29 +00:00
martin fa635f7d57 Cleanup alarm(3) handling in the timezone selection menu for error
cases, pointed out by RVP.
2021-08-03 13:40:33 +00:00
martin 64e2b749b9 RAM size will not change during installation, do the sysctl() dance
only once.
2021-07-20 16:40:12 +00:00
rillig 6dccb7a0e9 sysinst: remove trailing whitespace from *.c *.h
In contrast to the messages files, this whitespace is not significant.
2021-01-31 22:45:46 +00:00
gson d56a0f0357 Fix typos in comment 2020-11-10 09:14:01 +00:00
martin 78ab2ae046 Avoid warnings 2020-11-04 16:26:35 +00:00
martin 043e812b52 Add (experimental) entropy input support:
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-11-04 14:29:40 +00:00
martin bfb6e5613b PR 55769: avoid the module set if we do not build any 2020-10-30 18:47:38 +00:00
martin da165701f6 When we did not magically find any CD medium with sets, offer a manual
override (so ISO images on USB sticks or Xen's xbd(4) work).
2020-10-27 15:28:01 +00:00
martin a466822889 PR 55752: relax an assertion, the first getvfsstat() call may overestimate
the file systems visible to us.
2020-10-26 20:18:33 +00:00
martin 6c05a6401d Mark a variable only used in an assert as __diagused. 2020-10-25 08:50:32 +00:00
martin 04645caa29 When looking for available CD media, skip those that are already mounted.
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-24 16:13:15 +00:00
martin cb429b904f PR 55142: on popular demand bring back expert options to adjust the
number of free inodes, block size and fragment size for FFS and LFS.
2020-10-13 17:26:28 +00:00
martin 2298856256 Fix display of timezone selection menu 2020-09-27 17:36:40 +00:00
martin 194d5a77b0 Keep a list of all partition tables from which we have deleted partitions
and make sure we update those partition tables when writing partitions,
even if no install related partition remains on them.
2020-09-22 16:18:54 +00:00
jmcneill 043d88a7c1 Separate devicetree .dts -> .dtb building from kernel builds. They are now
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-18 21:19:34 +00:00
martin 0466f2885f Ooops, backout previous - twice the entropy saving is not needed.
Instead slightly improve the (slightly) hidden other code that already
did it.
2020-05-12 17:04:00 +00:00
martin a55d2d6bdf At the end of a new installation save entropy. 2020-05-12 16:18:04 +00:00
martin 53d0b64d08 When retrying sets during extraction, reset the relevant statistics
to avoid counting retried sets multiple times.

Reported by kim.
2020-01-26 14:37:29 +00:00
martin 249ed7a6e5 First try to bring evbarm installation closer to current reality. 2020-01-20 21:26:35 +00:00
martin 2f0931afd6 On amd64 support installation with a KASLR kernel, via "custom install"
and selecting the GENERIC_KASLR kernel set.
Setup /prekern and boot.cfg accordingly.
2019-11-16 21:25:14 +00:00
martin 7ca7eecae1 Make sure all menus have a translatable exit option (or none at all). 2019-11-16 20:26:59 +00:00
martin b76c9f8f6f Make tar extraction flags depend on our usage of pax-as-tar or bsdtar. 2019-11-14 13:58:22 +00:00
martin 485d530922 Make cloning support optional, so we can save some space on very small
install media.
2019-11-13 18:57:26 +00:00
martin f6c1538729 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)
2019-11-12 18:04:37 +00:00
martin f77b58b179 Add options to the various partitioning stages that allow cloning of
alien partitions (optionally including data).
2019-11-12 16:33:14 +00:00
mrg ea2cbdfdaf add a size_t len to get_iso9660_volname() so it can properly do
bounds checking.

ok martin@
2019-10-04 21:36:02 +00:00
maya 50f7458533 Split out /rescue to its own set and adapt installers/images to add it.
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-10-02 11:15:59 +00:00
martin 32ccf04c1c Do not offer to upgared the "current system" if we are running off a CD
(i.e. / is mounted read-only)
2019-08-27 14:11:00 +00:00
martin 31a289cd68 Fix some memory leaks in error paths 2019-08-17 18:03:12 +00:00
martin 1b565566ff PR 54473: fix error prompt when a set file is missing 2019-08-17 17:51:19 +00:00
roy 511782436c Work with bsdtar as pointed out by kamil@ 2019-07-24 10:22:04 +00:00
martin 2ab231eed3 scripting_vprintf: to simplify things for gcc (and avoid "may be used
uninitialized" warnings) just always copy the va_list and use one
copy for the first pass, the other for the second.
2019-07-21 12:23:18 +00:00