summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2016-06-03 11:32:57 -0400
committerShea Levy <shea@shealevy.com>2016-06-03 11:32:57 -0400
commit83c2629f152304b9f031ca3bffedd32276be6cd9 (patch)
treef5c24ebf9785fc780cb16306189ba99c6d043ea7 /nixos
parenta942635724fd65eb563d140c53c18e6f264ebeab (diff)
parent9b0a5ced139e358a2c362b4f934272db3073826d (diff)
downloadnixlib-83c2629f152304b9f031ca3bffedd32276be6cd9.tar
nixlib-83c2629f152304b9f031ca3bffedd32276be6cd9.tar.gz
nixlib-83c2629f152304b9f031ca3bffedd32276be6cd9.tar.bz2
nixlib-83c2629f152304b9f031ca3bffedd32276be6cd9.tar.lz
nixlib-83c2629f152304b9f031ca3bffedd32276be6cd9.tar.xz
nixlib-83c2629f152304b9f031ca3bffedd32276be6cd9.tar.zst
nixlib-83c2629f152304b9f031ca3bffedd32276be6cd9.zip
Merge pull request #15895 from cerana/stage2-sysfs
stage2: if no /proc, also mount /sys
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/stage-2-init.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh
index 1b5b22c2005a..4a7f073ea8ad 100644
--- a/nixos/modules/system/boot/stage-2-init.sh
+++ b/nixos/modules/system/boot/stage-2-init.sh
@@ -41,6 +41,8 @@ if [ ! -e /proc/1 ]; then
     mount -n -t proc proc /proc
     mkdir -m 0755 -p /dev
     mount -t devtmpfs devtmpfs /dev
+    mkdir -m 0755 -p /sys
+    mount -t sysfs sysfs /sys
 fi