freebsd-dev/usr.sbin/bsdinstall
Jessica Clarke 91985bc5ad bsdinstall: Fix issues parsing rc.conf.services on revisit
There are a few issues here, some of which are hiding others. The first
is that we don't use double quotes around the command substitution so
every word in the conf file is treated as a separate argument to eval,
resulting in spaces being used in place of newlines and thus comments in
the file commenting out the rest of the file, not just to the end of
their line. In particular, we insert one comment just before the dumpdev
entry (the final one in the file) and so we never see dumpdev as set,
and thus set a default value of on for the menu.

The second issue is that, for dumpdev, it takes a value of AUTO not YES
when set, but we don't replace this with on when eval'ing, so then end
up giving AUTO to bsddialog which is interpreted the same as off (which
seems to match GPL dialog). Thus handle AUTO like YES otherwise it will
always appear as unchecked on revisit.

The final issue is that our case-insensitive YES/NO (and now AUTO)
replacements have no word boundaries around them so match the middle of
words too. As it happens this doesn't matter in practice at the moment,
but it could in future; currently the only effect is that it rewrites
moused_nondefault_enable to moused_offndefault_enable, but since this
variable is never read, only written based on moused(_enable) this is
harmless, but we should fix it in case a service comes along in future
that does get affected by it.
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 issues parsing rc.conf.services on revisit 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