diff options
author | obrien <obrien@FreeBSD.org> | 2001-11-24 01:34:12 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-11-24 01:34:12 +0000 |
commit | 8c5542cd12a76ff6e35253e7c2c06dfa25dfcc2b (patch) | |
tree | bfb72082dfd11d6a829f5171aac2bae0fc8838c0 | |
parent | ba99a6c219f16db1fdb4f8dd9548bfc0c6f196b7 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/kern/vfs_conf.c | 4 | ||||
-rw-r--r-- | sys/kern/vfs_mount.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c index 595a323..5bafcc8 100644 --- a/sys/kern/vfs_conf.c +++ b/sys/kern/vfs_conf.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"); 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"); |