Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I need to run a /usr/sbin command in my init script, so there is a dependency for the /usr filesytem to be mounted.

To resolve the dependency, I put $local_fs or boot.localfs (I also tried $remote_fs and $all) in the required-start field of init script header, but it does still mount the /usr filesystem and my command in the initscript still fails with "command not found" error.

I could resolve the issue by adding boot.localfs in the .depend.boot file, but why could not I resolve from the required-start init script header?

Edit: I'm using the SUSE Linux 10.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I figured out the solution, it might just help others. The problem was that just adding the dependency of boot.localfs in my init script was not enough. After adding the dependency, one needs to run the insserv command (as insserv boot.myinitscript) to enable the init script that is changed and it automatically resolves the boot dependency order by adding necessary things to .depend.boot file, which I was adding manually before.

share|improve this answer

Your Answer

 
discard

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.