diff options
author | Nahum Shalman <nshalman@omniti.com> | 2016-06-01 13:26:14 +0000 |
---|---|---|
committer | Nahum Shalman <nshalman@omniti.com> | 2016-06-01 13:26:14 +0000 |
commit | 9b0a5ced139e358a2c362b4f934272db3073826d (patch) | |
tree | 4fa5647ede9c3cb89cabe48ab3c315a44adac4bf /nixos/modules/system/boot/stage-2-init.sh | |
parent | e2cc56f98c5efd816d1d1854c10d09df6625f4c8 (diff) | |
download | nixpkgs-9b0a5ced139e358a2c362b4f934272db3073826d.tar nixpkgs-9b0a5ced139e358a2c362b4f934272db3073826d.tar.gz nixpkgs-9b0a5ced139e358a2c362b4f934272db3073826d.tar.bz2 nixpkgs-9b0a5ced139e358a2c362b4f934272db3073826d.tar.lz nixpkgs-9b0a5ced139e358a2c362b4f934272db3073826d.tar.xz nixpkgs-9b0a5ced139e358a2c362b4f934272db3073826d.tar.zst nixpkgs-9b0a5ced139e358a2c362b4f934272db3073826d.zip |
stage2: if no /proc, also mount /sys
Diffstat (limited to 'nixos/modules/system/boot/stage-2-init.sh')
-rw-r--r-- | nixos/modules/system/boot/stage-2-init.sh | 2 |
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 1b5b22c2005..4a7f073ea8a 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 |