Running Linux from a USB drive is possible. You can boot just about any distribution you want from USB. There are some things you should consider before going this route. I've used Linux in just about ...
I wish Apple and other device manufacturers would provide paths to turning old devices into limited purpose machines. There's no good technological reason an old iPad can't be a dedicated HomeKit ...