chdir in a mkifs build file ?


Is there a way to change the current working directory inserting a “cd” command in a mkifs build file ??

I’ve testest something like that:

[+script] startup-script = {
        cd /dev/shmem

where cwd_test is a tool that prints the current working directory.

cwd_test prints “/”

cd is a shell builtin - you should be getting a “Unable to start cd (2)” or something like that

I don’t think you can change the pwd of procnto - you could start an ksh/esh and run a script from that.