The branch main has been updated by cperciva:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=aa33b6b820e6889a9eb11aa8aec498cb890c589a

commit aa33b6b820e6889a9eb11aa8aec498cb890c589a
Author:     Colin Percival <[email protected]>
AuthorDate: 2025-11-16 17:12:00 +0000
Commit:     Colin Percival <[email protected]>
CommitDate: 2025-11-16 17:14:02 +0000

    vmimage.subr: Log correct paths into METALOG
    
    Paths all need to start with "./" because that's what newfs wants.
    
    Fixes:  e0c41af9256b ("vmimage.subr: Enable FreeBSD-base repo if pkgbase")
    MFC after:      immediately
---
 release/tools/vmimage.subr | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/release/tools/vmimage.subr b/release/tools/vmimage.subr
index 03d92850f2a3..d718150d8767 100644
--- a/release/tools/vmimage.subr
+++ b/release/tools/vmimage.subr
@@ -109,8 +109,8 @@ vm_install_base() {
                metalog_add_data ./var/db/pkg/local.sqlite
                mkdir -p ${DESTDIR}/usr/local/etc/pkg/repos
                echo 'FreeBSD-base: { enabled: yes }' > 
${DESTDIR}/usr/local/etc/pkg/repos/FreeBSD.conf
-               metalog_add_data /usr/local/etc/pkg/repos
-               metalog_add_data /usr/local/etc/pkg/repos/FreeBSD.conf
+               metalog_add_data ./usr/local/etc/pkg/repos
+               metalog_add_data ./usr/local/etc/pkg/repos/FreeBSD.conf
        else
                cd ${WORLDDIR} && \
                        make DESTDIR=${DESTDIR} ${INSTALLOPTS} \

Reply via email to