diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/build/openbsd.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/build/openbsd.go b/pkg/build/openbsd.go index d09427849..a47579035 100644 --- a/pkg/build/openbsd.go +++ b/pkg/build/openbsd.go @@ -81,6 +81,7 @@ func (ctx openbsd) copyFilesToImage(overlayDir, outputDir string) error { script := fmt.Sprintf(`set -eux OVERLAY="%s" # Cleanup in case something failed before. +sync doas umount /altroot || true doas vnconfig -u vnd0 || true @@ -88,6 +89,7 @@ doas /sbin/vnconfig vnd0 image doas mount /dev/vnd0a /altroot doas cp kernel /altroot/bsd test -d "$OVERLAY" && doas cp -Rf "$OVERLAY"/. /altroot +sync doas umount /altroot doas vnconfig -u vnd0 `, overlayDir) |
