Catch error that occurs when there is no valid disk even created at this point

This commit is contained in:
Dane Everitt 2021-06-01 21:24:57 -07:00 committed by DaneEveritt
parent 957257ecc3
commit b0f99e2328
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -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