Re: stable/13 snapshot's /etc/rc.d/machine_id has use of main's startmsg from /etc/rc.subr so it reports 2 "eval: startmsg: not found"

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Wed, 22 Feb 2023 01:25:42 UTC
Hi,

`libexec/rc/rc.d/machine_id` (https://reviews.freebsd.org/D37722 <https://reviews.freebsd.org/D37722>) is MFC'ed into stable/13 but its precedence https://reviews.freebsd.org/D34514 <https://reviews.freebsd.org/D34514> is not.

So we should either MFC D34514, or change libexec/rc/rc.d/machine_id in stable/13 to use `check_startmsgs`.

I'd personally prefer MFCing ;)

Best regards,
Zhenlei

> On Jan 22, 2023, at 11:32 AM, Mark Millard <marklmi@yahoo.com> wrote:
> 
> When I booted a new stable/13 snapshot install, the messaging
> included:
> 
> . . .
> Updating motd:.
> eval: startmsg: not found
> eval: startmsg: not found
> Clearing /tmp (X related).
> . . .
> 
> It looks like the "eval: startmsg: not found" lines
> are from:
> 
> # grep -r "\<startmsg\>" /etc/ 
> /etc/rc.d/machine_id:           startmsg -n "Creating ${machine_id_file} "
> /etc/rc.d/machine_id:           startmsg 'done.'
> 
> (No more matches found.)
> 
> The following was not found on stable/13:
> 
> /etc/rc.subr:# startmsg
> /etc/rc.subr:startmsg()
> /etc/rc.subr:                   startmsg "Starting ${name}."
> 
> 
> ===
> Mark Millard
> marklmi at yahoo.com
> 
>