From a04ea1b860e7e1c344df49d7aeb6c8f45574a5ee Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Thu, 25 Jan 2001 17:29:07 +0000 Subject: [PATCH] Provide a better error message when the /dev entry is non-existant. Due to the old message, I spent way more time debugging a diskless root problem than it should have taken. --- sbin/mount/mount_ufs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c index 18180b86d4a9..f999db882538 100644 --- a/sbin/mount/mount_ufs.c +++ b/sbin/mount/mount_ufs.c @@ -137,6 +137,9 @@ mount_ufs(argc, argv) warnx("%s on %s: incorrect super block", args.fspec, fs_name); break; + case ENOENT: + warn("%s", args.fspec); + break; default: warn(NULL); break;