freebsd-dev/usr.sbin/bsdinstall
Jessica Clarke 1843da3edb bsdinstall: Fix ntpd_sync_on_start service option
This installer option is currently totally useless, as it ends up
creating an ntpd_sync_on_start_enable="YES" entry in rc.conf, not an
ntpd_sync_on_start="YES" entry, as is the correct name. This can also be
noticed by revisiting the services menu, which parses the previously
written rc.conf.services file to set variables governing the default
menu entry values so that selecting OK regenerates the same file, as the
menu entry will use the correct variable name and thus think the entry
was not selected last time, defaulting back to off and losing the
setting.

Thus, add a special case in the loop for this option. The only other
entry that doesn't follow the *_enable pattern is dumpdev (even moused
does, it just also sets a second variable), but that also deviates in
terms of being explicitly set either way and using AUTO rather than YES,
hence why ntpd_sync_on_start follows a different pattern here and is
special-cased rather than introducing a whole new variable that governs
behaviour outside the loop.

Fixes:	c153a35bfd ("bsdinstall: replace ntpdate by ntpd_sync_on_start")
2022-11-29 03:33:47 +00:00
..
distextract bsdinstall: allow whitelabeling the installer 2022-05-13 10:35:43 -06:00
distfetch bsdinstall: allow whitelabeling the installer 2022-05-13 10:35:43 -06:00
partedit bsdinstall: allow whitelabeling the installer 2022-05-13 10:35:43 -06:00
runconsoles bsdinstall: Add a new runconsoles helper binary 2022-10-03 17:09:16 +01:00
scripts bsdinstall: Fix ntpd_sync_on_start service option 2022-11-29 03:33:47 +00:00
bsdinstall bsdinstall: Use TMPDIR if set 2020-01-15 00:45:05 +00:00
bsdinstall.8 bsdinstall: allow setting the root password via env variables 2022-08-05 09:10:21 -06:00
Makefile bsdinstall release: Move code to a new startbsdinstall wrapper 2022-10-03 17:09:16 +01:00
Makefile.depend
Makefile.inc
startbsdinstall bsdinstall: Fix race condition when shutting down after installation 2022-10-06 20:04:04 +01:00