refkit-image.bbclass: more flexible refkit_image_patch_os_release
refkit-image.bbclass: more flexible refkit_image_patch_os_release

The code used to fail when using refkit-image.bbclass with DISTRO=poky
because the os-release file wasn't installed. Now we check that
instead of failing.

While at it, other copies of that file are also patched. /etc and
${sysconfdir} are both tried, just in case.

Signed-off-by: Patrick Ohly <0fc9d825c622b2a5ac5160289c29f03654b10648@intel.com>

klihub/intel-iot-refkit,ipuustin/intel-iot-refkit,YinThong/intel-iot-refkit,YinThong/intel-iot-refkit,YinThong/intel-iot-refkit,ipuustin/intel-iot-refkit,YinThong/intel-iot-refkit,klihub/intel-iot-refkit,intel/intel-iot-refkit,ipuustin/intel-iot-refkit,jairglez/intel-iot-refkit,klihub/intel-iot-refkit,jairglez/intel-iot-refkit,mythi/intel-iot-refkit,ipuustin/intel-iot-refkit,jairglez/intel-iot-refkit,klihub/intel-iot-refkit,ipuustin/intel-iot-refkit,mythi/intel-iot-refkit,YinThong/intel-iot-refkit,YinThong/intel-iot-refkit,jairglez/intel-iot-refkit,intel/intel-iot-refkit,YinThong/intel-iot-refkit,intel/intel-iot-refkit,jairglez/intel-iot-refkit,mythi/intel-iot-refkit,klihub/intel-iot-refkit,mythi/intel-iot-refkit,intel/intel-iot-refkit,ipuustin/intel-iot-refkit,mythi/intel-iot-refkit,jairglez/intel-iot-refkit,intel/intel-iot-refkit,intel/intel-iot-refkit,ipuustin/intel-iot-refkit,mythi/intel-iot-refkit,intel/intel-iot-refkit,klihub/intel-iot-refkit,jairglez/intel-iot-refkit,mythi/intel-iot-refkit,klihub/intel-iot-refkit