Re: sed trouble when UNAME_* is set in jail (fwd)

From: Tatsuki Makino <tatsuki_makino_at_hotmail.com>
Date: Tue, 25 Jan 2022 20:19:58 UTC
Hello.

Dmitry Morozovsky wrote on 2022/01/25 22:26:
> Replying to myself,
> 
> On Tue, 25 Jan 2022, Sysadmin Lists wrote:
> 
>>> I have a jail on my build system, nested-built on a previous major; on the 
>>> case, it's stable/10; for a poudriere, it is defined as null-mounted from the 
>>> build jail:
>>>
>>> 10-amd64 stable/10        amd64 null   2022-01-20 13:10:41 /X/j10a
>              ^^^^^^^^^ 
> here is the problem, it should be version, not branch, "10.4-STABLE" 
> 
> (10-STABLE is not enough as OSVERSION check will fail)
> 

When creating a jail, it seems that you don't need to set -v when -m is src=*|null|git*.
Rather, it seems that -v should not be set.
Setting -v when -m is above, it just happens to work correctly when it is the correct value.
Details are near lines 919 and 1207 of poudriere-3.3.7_1 ${LOCALBASE}/share/poudriere/jail.sh.

Regards.