mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 19:16:23 +00:00
cli: Make message of using initrd OR rootfs clearer
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: #563 Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
This commit is contained in:
parent
0bcb32f704
commit
bee8d66ead
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user