Remove grub2 install for legacy setup to fix failure of x86 vm images building. Add the error handling of the abnormal value of the opstype. Add an entry for unit testing in Makefile. Signed-off-by: liyuanr <liyuanrong1@huawei.com>