patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Alyssa Ross <hi@alyssa.is>
To: devel@spectrum-os.org
Subject: [PATCH nixpkgs] spectrumPackages.rootfs: add /sys
Date: Tue, 25 Aug 2020 16:48:45 +0000	[thread overview]
Message-ID: <20200825164845.8850-1-hi@alyssa.is> (raw)

Programs assume this and it's useful to have.
---
 pkgs/os-specific/linux/spectrum/rootfs/generic.nix | 2 +-
 pkgs/os-specific/linux/spectrum/rootfs/stage1.nix  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkgs/os-specific/linux/spectrum/rootfs/generic.nix b/pkgs/os-specific/linux/spectrum/rootfs/generic.nix
index 778b18dafa0..0a99f99bd5b 100644
--- a/pkgs/os-specific/linux/spectrum/rootfs/generic.nix
+++ b/pkgs/os-specific/linux/spectrum/rootfs/generic.nix
@@ -31,7 +31,7 @@ let
     mkdir $out
     cd $out
 
-    mkdir bin sbin dev proc run tmp
+    mkdir bin sbin dev proc run sys tmp
     ln -s ${dash}/bin/dash bin/sh
     ln -s ${makeStage1 { inherit run; }} sbin/init
     cp -r ${./etc} etc
diff --git a/pkgs/os-specific/linux/spectrum/rootfs/stage1.nix b/pkgs/os-specific/linux/spectrum/rootfs/stage1.nix
index 75cfed56e7f..be7853316e9 100644
--- a/pkgs/os-specific/linux/spectrum/rootfs/stage1.nix
+++ b/pkgs/os-specific/linux/spectrum/rootfs/stage1.nix
@@ -27,6 +27,7 @@ writeScript "init-stage1" ''
     if { s6-mount -t devpts -o gid=4,mode=620 none /dev/pts }
     if { s6-mount -t tmpfs none /dev/shm }
     if { s6-mount -t proc none /proc }
+    if { s6-mount -t sysfs none /sys }
     if { s6-ln -s ${mesa.drivers} /run/opengl-driver }
 
     export HOME /
-- 
2.27.0

             reply	other threads:[~2020-08-25 16:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-25 16:48 Alyssa Ross [this message]
2021-03-15 13:55 Alyssa Ross
2021-03-15 14:53 ` Alyssa Ross
2021-03-15 23:09   ` Cole Helbling
2021-03-16  0:50     ` Alyssa Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200825164845.8850-1-hi@alyssa.is \
    --to=hi@alyssa.is \
    --cc=devel@spectrum-os.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).