bsdinstall/script: umount before zpool export

When running zpool export first, boot/efi and dev is still mounted so
zpool export fails. By running bsdinstall umount first the pool can be
cleanly exported.

Reviewed by:		emaste
Differential Revision:	https://reviews.freebsd.org/D35114
Sponsored by:		Beckhoff Automation GmbH & Co. KG
MFC After:		3 days
This commit is contained in:
Corvin Köhne 2022-05-03 16:01:22 +02:00 committed by Emmanuel Vadot
parent 1f7746d81f
commit 450b4ac23c

View File

@ -168,10 +168,10 @@ if [ -f $TMPDIR/bsdinstall-installscript-ab ]; then
fi
bsdinstall entropy
bsdinstall umount
if [ "$ZFSBOOT_DISKS" ]; then
zpool export $ZFSBOOT_POOL_NAME
fi
bsdinstall umount
f_dprintf "Installation Completed at %s" "$( date )"