fix(image): correction condition introduced

Merged 李胤颉 requested to merge liyinjie_dev into scarthgap

Fix variable judgment to import specific modules, and fix the error issue of virt-manager in non-virtualized systems.

Merge request reports