How can I make registered extensions for binfmt_misc persist across reboots?
Consider the following command, which performs a binfmt_misc registration:
echo ':golang:E::go::/tmp/test:OC' | sudo tee /proc/sys/fs/binfmt_misc/register
It needs to be executed as root, since only root is allowed to write to /proc/sys/fs/binfmt_misc/register. Thus, I cannot put such registrations into e.g. ~/.bashrc as an unprivileged user.