diff --git a/meta/classes-recipe/baremetal-image.bbclass b/meta/classes-recipe/baremetal-image.bbclass
index d3377a92fa..2f07dec4ac 100644
--- a/meta/classes-recipe/baremetal-image.bbclass
+++ b/meta/classes-recipe/baremetal-image.bbclass
@@ -18,8 +18,15 @@
 ## Emulate image.bbclass
 # Handle inherits of any of the image classes we need
 IMAGE_CLASSES ??= ""
-IMGCLASSES = " ${IMAGE_CLASSES}"
+BAREMETAL_IMAGE_CLASSES ?= " ${IMAGE_CLASSES}"
+
+# The license_image class relies on package managers used on do_rootfs
+# these dont exist for baremetal images since no rootfs is created.
+BAREMETAL_IMAGE_CLASSES:remove = "license_image"
+
+IMGCLASSES = " ${BAREMETAL_IMAGE_CLASSES}"
 inherit ${IMGCLASSES}
+
 # Set defaults to satisfy IMAGE_FEATURES check
 IMAGE_FEATURES ?= ""
 IMAGE_FEATURES[type] = "list"
