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:
parent
883ec47a1f
commit
56af885212
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue