From 8c5542cd12a76ff6e35253e7c2c06dfa25dfcc2b Mon Sep 17 00:00:00 2001 From: obrien Date: Sat, 24 Nov 2001 01:34:12 +0000 Subject: 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 --- sys/kern/vfs_conf.c | 4 ++-- sys/kern/vfs_mount.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern') 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(" : Mount using filesystem \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(" 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(" : Mount using filesystem \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(" Abort manual input\n"); -- cgit v1.1