From: chara Subject: rc: skip rootdisk_nodes if we are running diskless To: tech@openbsd.org Date: Wed, 2 Sep 2026 22:58:24 +0330 Hi there, i've been trying to run my systems without a disk recently, while trying to boot them i've been seeing this message pop up during boot: stat: 10.0.0.2:/home/chara/nfs/d510/: No such file or directory stat: 10.0.0.2:/home/chara/nfs/d510/: No such file or directory usage: mknod [-m mode] name b|c major minor mknod [-m mode] name p usage: mknod [-m mode] name b|c major minor mknod [-m mode] name p turns out thats related to changes to rc for max partition change. since the logic is related to setups with a disk, perhaps we can skip it if we are booting diskless. ok? diff /home/chara/nfs/src path + /home/chara/nfs/src commit - f35f7ce0ee20f97167b4d667c39c6032da84b613 blob - 9b30d8edac999f03d5f2599d74878a5f6f7430c1 file + etc/rc --- etc/rc +++ etc/rc @@ -303,7 +303,11 @@ run_upgrade_script() { # cd /dev && ./MAKEDEV redodisks rootdisk_nodes() { if [ $(sysctl -n kern.maxpartitions) = 16 ]; then - _rootdev=$(mount | grep ' / ' | cut -d' ' -f1) + # Find and use root device if we are not booting from NFS + _rootdev=$(mount | grep ' / ' | grep -v ':' | cut -d' ' -f1) + if [ -z $_rootdev ]; then + return + fi _maj=$(stat -f "%Hr" $_rootdev) _omin=$(stat -f "%Lr" $_rootdev) _min=$((_omin / 16 * 64)) -- chara