From 9b0a5ced139e358a2c362b4f934272db3073826d Mon Sep 17 00:00:00 2001 From: Nahum Shalman Date: Wed, 1 Jun 2016 13:26:14 +0000 Subject: stage2: if no /proc, also mount /sys --- nixos/modules/system/boot/stage-2-init.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nixos') 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 -- cgit 1.4.1