Allow standard commands for "unknown" classes in RESCUE mode.

For example, it allows quite useful `geom disk list` command.

MFC after:	1 week
This commit is contained in:
mav 2016-03-11 12:59:07 +00:00
parent ef2ed17f02
commit 3e5354d8c8

View File

@ -635,8 +635,7 @@ get_class(int *argc, char ***argv)
} else if (!strcasecmp(class_name, "label")) {
version = &glabel_version;
class_commands = glabel_class_commands;
} else
errx(EXIT_FAILURE, "Invalid class name.");
}
#endif /* !STATIC_GEOM_CLASSES */
set_class_name();