ops: rescue sshd /dev as its own tmpfs (/run is nodev, device nodes were unusable)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-10-30 12:40:03 +01:00
co-authored by Claude Sonnet 5.5
parent 8e8194dfeb
commit c7d638c8a4
+2
View File
@@ -113,6 +113,8 @@ EOF
chmod 755 "$R/bin/rboot"
mount -t proc proc "$R/proc"
# own device nodes and a NEW devpts instance (never bind /dev: shared propagation would let our umount hit the host)
# /run is mounted nodev, so device nodes need their own fresh tmpfs mount
mount -t tmpfs -o mode=755,size=1m tmpfs "$R/dev"
mknod -m 666 "$R/dev/null" c 1 3; mknod -m 666 "$R/dev/zero" c 1 5; mknod -m 666 "$R/dev/full" c 1 7
mknod -m 666 "$R/dev/random" c 1 8; mknod -m 666 "$R/dev/urandom" c 1 9; mknod -m 666 "$R/dev/tty" c 5 0
install -d "$R/dev/pts"