I was reading This and I was wondering if I could write an API in python or have python load in an init script. If this were to be possible would I need to edit the kernel's makefile?


You can run python, or any other program, at boot, without needing to touch the kernel at all. See the init= kernel command line parameter.


Well, have a look at PerlLinux. It's a toy operating system with a Perl userland running on top of the Linux Kernel. I think they load a ramdisk during Init with the Perl environment running inside.

The real question is why would you wanna limit yourself to only having Python when Linux already offers Python + all the other tools and utilities?

  • This doesn't really help me. Also what do you mean when you say "Linux already offers Python + all the other tools and utilities" – Coder404 Aug 17 '12 at 10:49
  • @Coder404 I only brought up the link to present a possible approach - You'll have to look at the source and Makefiles yourself. The good news is, you don't have to change the Kernel. The bad news is there is no step by step tutorial I know of. – djf Aug 17 '12 at 10:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.