Skip to content

Commit

Permalink
Ensure unmount of dev and release before exporting ZFS pool in boot()
Browse files Browse the repository at this point in the history
  • Loading branch information
V.I. Thacker authored Sep 9, 2024
1 parent 34b0a1a commit 1d77e92
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,14 @@ boot()
cp LICENSE ${cd_root}/LICENSE
cp -R boot/ ${cd_root}/boot/
mkdir ${cd_root}/etc
cd "${cwd}" && zpool export ghostbsd && while zpool status ghostbsd >/dev/null; do :; done 2>/dev/null

# Try to unmount dev and release if mounted
umount ${release}/dev >/dev/null 2>/dev/null || true
umount ${release} >/dev/null 2>/dev/null || true

# Export ZFS pool and ensure it's clean
zpool export ghostbsd
while zpool status ghostbsd >/dev/null; do :; done 2>/dev/null
}

image()
Expand Down

0 comments on commit 1d77e92

Please sign in to comment.