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:31:04 UTC
Sorry for missing the author tcberner@ of `libexec/rc/rc.d/machine_id`.

> On Feb 22, 2023, at 9:25 AM, Zhenlei Huang <[email protected]> wrote:
> 
> 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 <[email protected] <mailto:[email protected]>> 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 <http://yahoo.com/>
>> 
>> 
> 
> 
> 




OSZAR »