From b0f99e2328c2d9caaad1cfbefa39d70cf429b592 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Tue, 1 Jun 2021 21:24:57 -0700 Subject: [PATCH] Catch error that occurs when there is no valid disk even created at this point --- internal/vhd/vhd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/vhd/vhd.go b/internal/vhd/vhd.go index 289d522..7dfea92 100644 --- a/internal/vhd/vhd.go +++ b/internal/vhd/vhd.go @@ -144,7 +144,7 @@ func (d *Disk) MakeFilesystem(ctx context.Context) error { } return ErrFilesystemExists } - if !strings.Contains(err.Error(), "can't find in /etc/fstab") { + if !strings.Contains(err.Error(), "can't find in /etc/fstab") && !strings.Contains(err.Error(), "exit status 32") { return errors.WrapIf(err, "vhd: unexpected error from mount command") } // As long as we got an error back that was because we couldn't find thedisk