aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-06-07 15:46:53 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-06-07 15:46:53 +0000
commit84c080a85edff95ddc7e98d08d7c299c3242608c (patch)
tree7532e30adb1fbc8c2cb4006ea1db09541093fa33 /sys/kern
parentac2ba9e3d5009864a272b61ea50605a17cf4d373 (diff)
downloadsrc-84c080a85edff95ddc7e98d08d7c299c3242608c.tar.gz
src-84c080a85edff95ddc7e98d08d7c299c3242608c.zip
Improve the root-dev prompt facility for printing devices which could
possibly be a root filesystem.
Notes
Notes: svn path=/head/; revision=115960
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_mount.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 6a12f20e9445..f9cc52a3762f 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -1600,8 +1600,6 @@ static int
vfs_mountroot_ask(void)
{
char name[128];
- int i;
- dev_t dev;
for(;;) {
printf("\nManual root filesystem specification:\n");
@@ -1618,15 +1616,8 @@ vfs_mountroot_ask(void)
if (name[0] == 0)
return(1);
if (name[0] == '?') {
- if (!g_dev_print()) {
- printf("Possibly valid devices for 'ufs' root:\n");
- for (i = 0; i < NUMCDEVSW; i++) {
- dev = makedev(i, 0);
- if (devsw(dev) != NULL)
- printf(" \"%s\"", devsw(dev)->d_name);
- }
- }
- printf("\n");
+ printf("\nList of GEOM managed disk devices:\n ");
+ g_dev_print();
continue;
}
if (!vfs_mountroot_try(name))