Skip to content

Commit

Permalink
cli: Make message of using initrd OR rootfs clearer
Browse files Browse the repository at this point in the history
When starting a kata container, if both initrd and rootfs
are provided in the configuration file then the error message
presented is "cannot specify an image and an initrd in
configuration file" which might be a bit confusing. This
fix makes the error message more explicit.

Fixes:  clearcontainers#563

Signed-off-by: Nitesh Konkar [email protected]
  • Loading branch information
nitkon committed Aug 10, 2018
1 parent 0bcb32f commit bee8d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func newQemuHypervisorConfig(h hypervisor) (vc.HypervisorConfig, error) {

if image != "" && initrd != "" {
return vc.HypervisorConfig{},
errors.New("cannot specify an image and an initrd in configuration file")
errors.New("having both an image and an initrd defined in the configuration file is not supported")
}

firmware, err := h.firmware()
Expand Down

0 comments on commit bee8d66

Please sign in to comment.