1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-11 14:10:34 +00:00

zfsboot: print boot.config contents before parsing it

as parsing can be a destructive operation

MFC after:	2 weeks
This commit is contained in:
Andriy Gapon 2011-12-04 21:32:18 +00:00
parent 05b096ff61
commit a3295a8b09
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228267

View File

@ -541,10 +541,10 @@ main(void)
}
if (*cmd) {
if (parse())
autoboot = 0;
if (!OPT_CHECK(RBX_QUIET))
printf("%s: %s", PATH_CONFIG, cmd);
if (parse())
autoboot = 0;
/* Do not process this command twice */
*cmd = 0;
}