This was fun but its still a bit flaky/unstable now and then but overall it seems to work.
What is it:
KODI multimedia player standalone installation script.
Features:
Boots directly into KODI with KODI standalone service
Enabled Hardware decoding by liujianfeng1994
Encrypted rootfs partition with auto-decrypt on boot
Encryption key is randomly generated during installation and inserted into initramfs/crypttab
Tested with EXT