mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add validation checks to prepare_linux() to catch invalid kernel option combinations early: - Error if --build-guest-kernel and CH_CUSTOM_KERNEL are both provided, as they are mutually exclusive. - On x86_64, error if only one of CH_CUSTOM_KERNEL or CH_CUSTOM_BZIMAGE is set; both must be provided together. - Fix kernel-already-present check: use per-architecture branches with correct bash syntax (elif instead of else-if, [[ ]] instead of [ && ]) so aarch64 and x86_64 are each handled properly. Signed-off-by: Muminul Islam <muislam@microsoft.com>