git: 95c6bc5a03b9 - stable/13 - bsdinstall/script: umount before zpool export
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 May 2022 15:25:08 UTC
The branch stable/13 has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=95c6bc5a03b9d1326978f2aed5d7e944d6eeb745
commit 95c6bc5a03b9d1326978f2aed5d7e944d6eeb745
Author: Corvin Köhne <CorvinK@beckhoff.com>
AuthorDate: 2022-05-03 14:01:22 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-05-16 15:24:56 +0000
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
(cherry picked from commit 450b4ac23c75e2dde996c96049c0887864e22d09)
---
usr.sbin/bsdinstall/scripts/script | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/bsdinstall/scripts/script b/usr.sbin/bsdinstall/scripts/script
index 92332241f348..24469589d1a5 100755
--- a/usr.sbin/bsdinstall/scripts/script
+++ b/usr.sbin/bsdinstall/scripts/script
@@ -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 )"