diff options
author | bsd <bsd@FreeBSD.org> | 2001-01-25 17:29:07 +0000 |
---|---|---|
committer | bsd <bsd@FreeBSD.org> | 2001-01-25 17:29:07 +0000 |
commit | 3b449212d5650d9047f8dabcb8484262a80ab8c8 (patch) | |
tree | 3c0c9ef61ffd75f2c75736bdedcfde2966201dc5 /sbin | |
parent | 932c9e0f8f61b71816123bfa237be51aeb74a7b2 (diff) | |
download | FreeBSD-src-3b449212d5650d9047f8dabcb8484262a80ab8c8.zip FreeBSD-src-3b449212d5650d9047f8dabcb8484262a80ab8c8.tar.gz |
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.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mount/mount_ufs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/mount/mount_ufs.c b/sbin/mount/mount_ufs.c index 18180b8..f999db8 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; |