summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-11-24 01:34:12 +0000
committerobrien <obrien@FreeBSD.org>2001-11-24 01:34:12 +0000
commit8c5542cd12a76ff6e35253e7c2c06dfa25dfcc2b (patch)
treebfb72082dfd11d6a829f5171aac2bae0fc8838c0 /sys/kern/vfs_mount.c
parentba99a6c219f16db1fdb4f8dd9548bfc0c6f196b7 (diff)
downloadFreeBSD-src-8c5542cd12a76ff6e35253e7c2c06dfa25dfcc2b.zip
FreeBSD-src-8c5542cd12a76ff6e35253e7c2c06dfa25dfcc2b.tar.gz
Remove the use of _PATH_DEV in the example.
The kernel certainly doesn't use _PATH_DEV or even /dev/ to find the device. It cannot, since "/" has not been mounted. Maybe the only affect of using /dev/ is that it gets put in the mounted-from name for "/", so that mount(8), etc., display an absolute path before "/" has been remounted. Many have never bothered typing the full path, and code that constructs a path in rootdevnames[] never bothered to construct a full path, so the example shouldn't have it. Submitted by: bde
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 595a323..5bafcc8 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -268,9 +268,9 @@ vfs_mountroot_ask(void)
printf("\nManual root filesystem specification:\n");
printf(" <fstype>:<device> Mount <device> using filesystem <fstype>\n");
#if defined(__i386__) || defined(__ia64__)
- printf(" eg. ufs:%s%s\n", _PATH_DEV, "da0s1a");
+ printf(" eg. ufs:da0s1a\n");
#else
- printf(" eg. ufs:%s%s\n", _PATH_DEV, "da0a");
+ printf(" eg. ufs:da0a\n");
#endif
printf(" ? List valid disk boot devices\n");
printf(" <empty line> Abort manual input\n");
OpenPOWER on IntegriCloud