Support ubuntu/centos in metadata