patches and low-level development discussion
 help / color / mirror / code / Atom feed
* [PATCH nixpkgs] spectrumPackages.rootfs: add /sys
@ 2021-03-15 13:55 Alyssa Ross
  2021-03-15 14:53 ` Alyssa Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Alyssa Ross @ 2021-03-15 13:55 UTC (permalink / raw)
  To: devel

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.30.0

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH nixpkgs] spectrumPackages.rootfs: add /sys
@ 2020-08-25 16:48 Alyssa Ross
  0 siblings, 0 replies; 5+ messages in thread
From: Alyssa Ross @ 2020-08-25 16:48 UTC (permalink / raw)
  To: devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-16  0:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 13:55 [PATCH nixpkgs] spectrumPackages.rootfs: add /sys Alyssa Ross
2021-03-15 14:53 ` Alyssa Ross
2021-03-15 23:09   ` Cole Helbling
2021-03-16  0:50     ` Alyssa Ross
  -- strict thread matches above, loose matches on Subject: below --
2020-08-25 16:48 Alyssa Ross

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).