Avoid warning when using raw format.

When using the raw image format and attempting to resize it we get the following error message:
```
WARNING: Image format was not specified for 'test.raw' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
```
Specifying the format will remove this warning.
This commit is contained in:
Omer Katz 2018-03-29 14:51:02 +03:00 committed by GitHub
parent 883ec47a1f
commit 56af885212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ func (s *stepResizeDisk) Run(_ context.Context, state multistep.StateBag) multis
command := []string{
"resize",
"-f", config.Format,
path,
fmt.Sprintf("%vM", config.DiskSize),
}