Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Nov 2019 23:29:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 242212] /etc/os-release isn't created when you upgrade an existing 13-CURRENT host
Message-ID:  <bug-242212-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 242212
           Summary: /etc/os-release isn't created when you upgrade an
                    existing 13-CURRENT host
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: yasu@utahime.org
                CC: imp@FreeBSD.org

With base r354922 /usr/src/etc/Makefile is changed as following.

yasu@rolling-vm-freebsd1[2109]% LANG=3DC svn diff -c 354922 /usr/src/etc/Ma=
kefile
Index: /usr/src/etc/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- /usr/src/etc/Makefile       (revision 354921)
+++ /usr/src/etc/Makefile       (revision 354922)
@@ -57,6 +57,8 @@
        ${_+_}cd ${.CURDIR}/mtree; ${MAKE} install
        ${_+_}cd ${SRCTOP}/share/termcap; ${MAKE} etc-termcap
        ${_+_}cd ${SRCTOP}/usr.sbin/rmt; ${MAKE} etc-rmt
+       ${INSTALL_SYMLINK} ../var/run/os-release \
+               ${DESTDIR}/etc/os-release
 .if ${MK_UNBOUND} !=3D "no"
        if [ ! -e ${DESTDIR}/etc/unbound ]; then \
                ${INSTALL_SYMLINK} -T "package=3Dunbound" \
yasu@rolling-vm-freebsd1[2110]%

This means /etc/os-release symbolic link is created when 'make distribution=
' is
executed. But this target isn't executed at normal upgrade steps. So as a
result /etc/os-release symbolic link isn't created when you upgrade an exis=
ting
13-CURRENT host.

--=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-242212-227>