summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/zfsboot
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2011-12-04 21:32:18 +0000
committeravg <avg@FreeBSD.org>2011-12-04 21:32:18 +0000
commit576c5dd3ba013aa460308a204a067da2fd4d5aa5 (patch)
tree58723bc006f630c1734cab362bc937781a39c705 /sys/boot/i386/zfsboot
parent2d5c2df3426908fe17f500e524ce2cb57f3295e5 (diff)
downloadFreeBSD-src-576c5dd3ba013aa460308a204a067da2fd4d5aa5.zip
FreeBSD-src-576c5dd3ba013aa460308a204a067da2fd4d5aa5.tar.gz
zfsboot: print boot.config contents before parsing it
as parsing can be a destructive operation MFC after: 2 weeks
Diffstat (limited to 'sys/boot/i386/zfsboot')
-rw-r--r--sys/boot/i386/zfsboot/zfsboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/zfsboot/zfsboot.c b/sys/boot/i386/zfsboot/zfsboot.c
index 48a29f5..afefc4e 100644
--- a/sys/boot/i386/zfsboot/zfsboot.c
+++ b/sys/boot/i386/zfsboot/zfsboot.c
@@ -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;
}
OpenPOWER on IntegriCloud