The branch main has been updated by manu:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=450b4ac23c75e2dde996c96049c0887864e22d09

commit 450b4ac23c75e2dde996c96049c0887864e22d09
Author:     Corvin Köhne <corv...@beckhoff.com>
AuthorDate: 2022-05-03 14:01:22 +0000
Commit:     Emmanuel Vadot <m...@freebsd.org>
CommitDate: 2022-05-03 14:02:39 +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
---
 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 )"
 

Reply via email to