1

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?

2 Answers 2

5

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.

2
2

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?

2
  • 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, 2012 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, 2012 at 10:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .