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.
This commit is contained in:
parent
13d0228de1
commit
a04ea1b860
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71645
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user