summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-09-24 18:05:36 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-09-24 18:05:36 -0500
commit57c250e24c70f8f9581860654cdec0d049345292 (patch)
treeeb131a931c6f082b34b3da6ac0cdb514d7648f77 /Makefile
parentcreate /etc/gentoo-release here instead of in the ebuild (diff)
downloadbaselayout-57c250e24c70f8f9581860654cdec0d049345292.tar.gz
baselayout-57c250e24c70f8f9581860654cdec0d049345292.tar.bz2
baselayout-57c250e24c70f8f9581860654cdec0d049345292.zip
generate /usr/lib/os-release dynamically
This allows the os name and version to be dynamic. Bug: https://bugs.gentoo.org/788190 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a0204748..8d74853e 100644
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,9 @@ install:
echo "Gentoo Base System release ${PV}" > ${DESTDIR}/etc/gentoo-release
$(INSTALL_DIR) $(DESTDIR)/usr/share/baselayout
cp -pPR share.$(OS)/* $(DESTDIR)/usr/share/baselayout/
+ $(INSTALL_DIR) $(DESTDIR)/usr/lib
+ ./make_os_release $(OS) $(PV) > $(DESTDIR)/usr/lib/os-release
+ ln -snf ../usr/lib/os-release ${DESTDIR}/etc/os-release
layout-dirs:
# Create base filesytem layout