diff options
author | 2023-07-06 13:25:46 -0400 | |
---|---|---|
committer | 2023-07-08 21:16:36 -0400 | |
commit | 5c926abe03ba6e17ba58faa71a512b3f6db90b19 (patch) | |
tree | c897ec3897aaa8a11e3050d31b9a4446c30ecaad | |
parent | Makefile: simplify creation of /root, /tmp, /var/tmp (diff) | |
download | baselayout-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-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |