summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-07-06 13:25:46 -0400
committerMike Gilbert <floppym@gentoo.org>2023-07-08 21:16:36 -0400
commit5c926abe03ba6e17ba58faa71a512b3f6db90b19 (patch)
treec897ec3897aaa8a11e3050d31b9a4446c30ecaad
parentMakefile: simplify creation of /root, /tmp, /var/tmp (diff)
downloadbaselayout-5c926abe03ba6e17ba58faa71a512b3f6db90b19.tar.gz
baselayout-5c926abe03ba6e17ba58faa71a512b3f6db90b19.tar.bz2
baselayout-5c926abe03ba6e17ba58faa71a512b3f6db90b19.zip
Makefile: create /dev/console and /dev/null in the layout target
Bug: https://bugs.gentoo.org/909664 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 36c9134c..24671480 100644
--- a/Makefile
+++ b/Makefile
@@ -73,6 +73,10 @@ layout:
$(INSTALL) -d -m 0700 $(DESTDIR)/root
$(INSTALL) -d -m 1777 $(DESTDIR)/tmp
$(INSTALL) -d -m 1777 $(DESTDIR)/var/tmp
+ # Essential device nodes for init/openrc in early boot
+ # Nonfatal in case we are running as non-root
+ -mknod -m 0600 $(DESTDIR)/dev/console c 5 1
+ -mknod -m 0666 $(DESTDIR)/dev/null c 1 3
layout-usrmerge: layout
rm -fr ${DESTDIR}/bin