Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2024 23:28:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 277828] 15-CURRENT installation fails when /usr is on seperate UFS volume
Message-ID:  <bug-277828-227-LfEjmQxaZ0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-277828-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-277828-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277828

Mark Peek <mp@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mp@FreeBSD.org

--- Comment #2 from Mark Peek <mp@FreeBSD.org> ---
The issue is base.txz having hard links across filesystems (/ for /etc and
/usr). This looks to have been introduced via the below commit where the
install flags were changed from "-lrs" to "-lm". As "make distributeworld"
creates the base directory on a single filesystem when certctl is run, "-lm"
creates hard links which requires /etc and /usr/ to be on the same filesyst=
em.

https://github.com/freebsd/freebsd-src/commit/a401c8cb26b22688087ad7c5ee527=
718459df15a

This patch should fix this specific issue.

diff --git a/usr.sbin/certctl/certctl.sh b/usr.sbin/certctl/certctl.sh
index 997a7d835d53..f95b4561d852 100755
--- a/usr.sbin/certctl/certctl.sh
+++ b/usr.sbin/certctl/certctl.sh
@@ -110,7 +110,7 @@ create_trusted()
 {
        local hash certhash otherfile otherhash
        local suffix
-       local link=3D${2:+-lm}
+       local link=3D${2:+-lrs}

        hash=3D$(do_hash "$1") || return
        certhash=3D$(openssl x509 -sha1 -in "$1" -noout -fingerprint)
@@ -159,7 +159,7 @@ resolve_certname()
 create_untrusted()
 {
        local srcfile filename
-       local link=3D${2:+-lm}
+       local link=3D${2:+-lrs}

        set -- $(resolve_certname "$1")
        srcfile=3D$1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277828-227-LfEjmQxaZ0>