/etc/os-release isn't created

Yasuhiro KIMURA yasu at utahime.org
Sun Nov 24 23:14:12 UTC 2019


From: Conrad Meyer <cem at freebsd.org>
Subject: Re: /etc/os-release isn't created
Date: Sun, 24 Nov 2019 12:51:03 -0800

> Did you run etcupdate or mergemaster as part of updating your host?

Yes. I run 'mergemaster -Fi' after 'make installworld'

I recieved report by private mail that /etc/os-release is created only
when 'make distribution' is executed. And I found that's exactly what
is written in /usr/src/etc/Makefile.

yasu at rolling-vm-freebsd1[2103]% grep '\$FreeBSD' /usr/src/etc/Makefile
# $FreeBSD: head/etc/Makefile 354922 2019-11-20 23:45:31Z imp $
yasu at rolling-vm-freebsd1[2104]% tail +50 /usr/src/etc/Makefile | head -n 12

distribution:
.if !defined(DESTDIR)
	@echo "set DESTDIR before running \"make ${.TARGET}\""
	@false
.endif
	${_+_}cd ${.CURDIR}/gss; ${MAKE} install
	${_+_}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
yasu at rolling-vm-freebsd1[2105]% 

But 'make distribution' isn't executed by normal upgrade steps. So
it's a bug and should be fixed.

---
Yasuhiro KIMURA


More information about the freebsd-current mailing list