Example NTPOPTS generated by setup-alpine fails to automate client selection
For 3.16.0 (and earlier), the NTPOPTS example for the answer file generated by setup-alpine
at
https://gitlab.alpinelinux.org/alpine/alpine-conf/-/blob/master/setup-alpine.in#L116
fails to let setup-alpine
automatically configure the NTP client. (That is one is still prompted to choose an NTP client).
It was pointed out on the devel mailing list[1] that this is likely due to setup-ntp
having -c
for getopts
but the setting of resp
using the first positional parameter whether or not
-c
is used.
The initial thought was to change setup-ntp
but it occurs to me that has more potential to go wrong than updating the example answers file in setup-alpine
and the docs https://gitlab.alpinelinux.org/alpine/docs/user-handbook/-/blob/master/modules/Installing/examples/setup_example.sh to use (after of course verifying (something I intend to do) that NTPOPTS="openntpd"
(or NTPOPTS="chrony"
would work as expected).
EDIT: This is only an issue for non-Qemu machines; Qemu machines use kvm-clock and thus the scripts skip setting up an NTP server for them.
Which solution is preferred by the dev team?