Ah, OK.
Maybe there is a difference with the firmware because of the method that you used for the install. Perhaps that does not get updated/installed, unless you are booted to the macOS installer.
I would suggest reinstalling HS from a bootable drive.
Not sure if the MBAir would get the black boot screen, But I'm pretty sure the Late 2012 iMac should (not completely sure, as I don't have one), as it did come with Mountain Lion originally, which (I am guessing) should be new enough for the black screen support. I could be incorrect on that.
But then, in the event it is not supported, then you don't get the black boot screen. My mini, a Late 2012 model, certainly does. I just can't verify that a Late 2012 iMac supports the black screen. One way to find out. Boot up to the installer (good time to make a bootable USB for HS, if you don't already have one), and reinstall. It will simply load the system again, and won't affect your own files. And, it SHOULD recheck your firmware version, and automatically update it if it is not latest firmware. Should be worth a try, particularly on the iMac.