Fwd: poudriere-devel, IMMUTABLE_BASE=yes, UFS context, pkgbase METHOD context, reports: chflags: /usr/local/poudriere/data/.m/main-aarch64-default/ref/boot/modules: No such file or directory

From: Mark Millard <marklmi_at_yahoo.com>
Date: Tue, 07 Oct 2025 13:58:05 UTC
Begin forwarded message:

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Subject: Re: poudriere-devel, IMMUTABLE_BASE=yes, UFS context, pkgbase METHOD context, reports: chflags: /usr/local/poudriere/data/.m/main-aarch64-default/ref/boot/modules: No such file or directory
Date: October 7, 2025 at 06:39:37 PDT
To: Mark Millard <marklmi_at_yahoo.com>
Cc: pkgmgr@freebsd.org

On 10/7/25 6:31 AM, Bryan Drewery wrote:
> On 10/6/25 11:00 AM, Mark Millard wrote:
>> . . .
>> [00:00:01] Starting jail main-aarch64-default
>> Updating /var/run/os-release done.
>> [00:00:01] Will build as root:wheel (0:0)
>> [00:00:02] Setting schg on jail base paths
>> chflags: /usr/local/poudriere/data/.m/main-aarch64-default/ref/boot/modules: No such file or directory
>> Error: (15506) /usr/local/share/poudriere/bulk.sh:jail_start:255: set -e error: status = 1
> 
> 
> /boot/modules is in /etc/mtree/BSD.root.dist. So why is it missing in your jail?

Apparently it's a buildworld/pkgbase problem similar to https://reviews.freebsd.org/D52911

I won't code around it, but you can remove the /boot/modules from common.sh for now on your system.


> 
> 
>> [ERROR] Unhandled error!
>> [00:00:02] Cleaning up
>> [00:00:02] Unmounting file systems
>> Exiting with status 1
>> 
>> 
>> For reference:
>> 
>> # poudriere version
>> poudriere-git-3.4.99.20251006
>> 
>> # poudriere jail -l
>> JAILNAME         VERSION      OSVERSION ARCH          METHOD TIMESTAMP           PATH
>> . . .
>> main-aarch64     16.0-CURRENT           aarch64       pkgbase 2025-10-05 14:26:59 /usr/local/poudriere/jails/main-aarch64
>> . . .
>> 
>> 
>> I'll note, that by contrast my example ZFS based context (on amd64)
>> had no problem for its pkgbase METHOD context that I started a build
>> for.
>> 
>> 
>> A question or two for METHOD null use:
>> 
>> For use of the null METHOD for a UFS context, what would be the
>> consequences of trying to use IMMUTABLE_BASE=yes ?
>> 
>> # poudriere jail -l
>> JAILNAME         VERSION      OSVERSION ARCH          METHOD TIMESTAMP           PATH
>> . . .
>> main-CA76        15.0-CURRENT           arm64.aarch64 null 2025-02-13 01:35:39 /usr/obj/DESTDIRs/main-CA76-poud
>> . . .
>> 
>> Also: for a ZFS context?
>> 
>> # poudriere jail -l
>> JAILNAME         VERSION      OSVERSION ARCH  METHOD TIMESTAMP           PATH
>> . . .
>> main-ZNV4        15.0-CURRENT           amd64 null    2025-02-12 16:03:46 /usr/obj/DESTDIRs/main-ZNV4-poud
>> . . .
>> 
>> # zfs list
>> NAME                                              USED  AVAIL REFER  MOUNTPOINT
>> . . .
>> zoptb/DESTDIRs/main-ZNV4-poud                    1.00G   746G 1.00G  /usr/obj/DESTDIRs/main-ZNV4-poud
>> . . .
>> 
>> ===
>> Mark Millard
>> marklmi at yahoo.com
>> 
> 


===
Mark Millard
marklmi at yahoo.com