From c7d638c8a44bd5ef25adab49604da22b9e224f41 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Fri, 30 Oct 2026 12:40:03 +0100 Subject: [PATCH] ops: rescue sshd /dev as its own tmpfs (/run is nodev, device nodes were unusable) Co-Authored-By: Claude Sonnet 5.5 --- scripts/ops/rescue-sshd.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/ops/rescue-sshd.sh b/scripts/ops/rescue-sshd.sh index 4967defa..ae00b3cc 100644 --- a/scripts/ops/rescue-sshd.sh +++ b/scripts/ops/rescue-sshd.sh @@ -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"