I installed an infrared receiver sensor and I plan to shutdown my Raspberry running Ubuntu Core using a remote control. The point is: Python and libraries like Rpi.GPIO are installed in an environment 'classic' running in chroot. So, when I run 'sudo shutdown now -h' inside Pyhon at chroot, Ubuntu simply ignores the request.
Is there a way to provide root privileges to chroot to do this task? Is it safe to perform this action from chroot?
There's no way to install Python in root, because 'Ubuntu Core does not use apt-get'