commit: ff9fc523397858c2eaa927847570e6e679989ae6
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 26 03:48:42 2023 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Jan 26 03:48:42 2023 +0000
URL: https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=ff9fc523
install the fhs compatible symlinks in the Makefile
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Makefile b/Makefile
index ecc7b107..29b21c1b 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,12 @@ install:
./make_os_release ${PV} > $(DESTDIR)/usr/lib/os-release
$(INSTALL_DIR) $(DESTDIR)/usr/share/baselayout
cp -pPR share/* $(DESTDIR)/usr/share/baselayout/
+ # FHS compatibility symlinks
+ ln -snf ../proc/self/mounts $(DESTDIR)/etc/mtab
+ ln -snf ../var/tmp $(DESTDIR)/usr/tmp
+ $(INSTALL_DIR) $(DESTDIR)/var
+ ln -snf ../run $(DESTDIR)/var/run
+ ln -snf ../run/lock $(DESTDIR)/var/lock
layout:
# Create base filesytem layout