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:
Alexander Motin 2016-03-11 12:59:07 +00:00
parent ffc161df9f
commit c66784839b

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();