herkulessi
herkulessi13mo ago

Run Deno on Linux without /proc mounted

I have a few automatic scripts using deno to run stuff, and wanted to migrate them to another Machine. For various reasons deno doesn't run on the new Host (mainly missing Libraries) so I wanted to run deno in a chroot. However that fails, because /proc is not mounted in the chroot and for some reason deno seems to rely on /proc/self/exe. Is there a way to not need that? Or do I need to mount /proc in the chroot?
3 Replies
javi
javi13mo ago
Why is mounting /proc not an option?
herkulessi
herkulessi13mo ago
It is an option, but if it is not strictly necessary I don't want to do it...
javi
javi13mo ago
Well mounting proc is a necessary step, I dont know what distro you're using though. Take for example the gentoo handbook, it's a necessary step. It wouldn't be in the handbook if it was optional