Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to understand how Ubuntu 12.04's initramfs runs scripts/local and in what order. I don't see it in init. What line of code runs scripts/local?

share|improve this question
up vote 1 down vote accepted

scripts/local is only run when using a local root filesystem (as opposed to a network filesystem). The BOOT variable in the init script is set to either local or nfs accordingly, so the following line sources scripts/local:

$ grep -A1 Mounting init
log_begin_msg "Mounting root file system"
. /scripts/${BOOT}
share|improve this answer
How similar are the initramfs in other Linuxes? – joeforker May 9 '12 at 1:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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