for instance, in the poky-container we are pokyuser but HOME us /home/usersetup We need to do a sudo -H ...
This is now fixed, see: https://github.com/crops/extsdk-container/commit/8380597a18fcb5c552203c36a15501335f488484