Skip to content

Commit

Permalink
Avoid warning when using raw format.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Omer Katz authored Mar 29, 2018
1 parent 883ec47 commit 56af885
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builder/qemu/step_resize_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit 56af885

Please sign in to comment.