summary refs log tree commit diff
path: root/modules/system/boot/stage-2-init.sh
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-03-11 21:56:47 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2012-03-11 21:56:47 +0000
commitbbebba68f7a5fab3865f8dcadb82a7b7128a3c11 (patch)
tree64e1396d094481221bf37db634d7b9b8f52a8cfe /modules/system/boot/stage-2-init.sh
parent6a0958cc06508395f1b8f4a88226165d15648651 (diff)
downloadnixpkgs-bbebba68f7a5fab3865f8dcadb82a7b7128a3c11.tar
nixpkgs-bbebba68f7a5fab3865f8dcadb82a7b7128a3c11.tar.gz
nixpkgs-bbebba68f7a5fab3865f8dcadb82a7b7128a3c11.tar.bz2
nixpkgs-bbebba68f7a5fab3865f8dcadb82a7b7128a3c11.tar.lz
nixpkgs-bbebba68f7a5fab3865f8dcadb82a7b7128a3c11.tar.xz
nixpkgs-bbebba68f7a5fab3865f8dcadb82a7b7128a3c11.tar.zst
nixpkgs-bbebba68f7a5fab3865f8dcadb82a7b7128a3c11.zip
A more friendly stage1, with interactive bash, busybox plenty of tools, etc.
I set it as default because users can benefit of this without having to prepare
their nixos first, and I don't think it will break any nixos for the initrd
size increase.

It can be disabled with 'boot.initrd.withExtraTools = false'.


svn path=/nixos/trunk/; revision=33000
Diffstat (limited to 'modules/system/boot/stage-2-init.sh')
-rw-r--r--modules/system/boot/stage-2-init.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/system/boot/stage-2-init.sh b/modules/system/boot/stage-2-init.sh
index 7a619f1f97f..947ba4b7f35 100644
--- a/modules/system/boot/stage-2-init.sh
+++ b/modules/system/boot/stage-2-init.sh
@@ -46,6 +46,9 @@ if [ ! -e /proc/1 ]; then
     mknod -m 0666 /dev/null c 1 3
     mknod -m 0644 /dev/urandom c 1 9 # needed for passwd
     mknod -m 0644 /dev/console c 5 1
+    mknod -m 0644 /dev/tty1 c 4 1
+    mknod -m 0644 /dev/ttyS0 c 4 64
+    mknod -m 0644 /dev/ttyS1 c 4 65
 fi