On Thu, May 17, 2012 at 08:47:53AM +0300, David D wrote: > Since I am not an expert in shells, I figured "why not". > Although there is a note that says that you have to reset the link > to bash in order to build _LFS_, it doesn't say you need to reset the > link in order to _boot_ the OS. > "Why?" you ask? > Well, I found out that soon after I restarted my PC, a bunch of errors > would pop up... the init scripts are written _bash-specific_ yet they > reference /bin/sh: > #!/bin/sh > (see http://www.linuxfromscratch.org/lfs/view/stable/scripts/apds04.html) > > I suggest to either make the scripts non-bash-specific by changing certain > lines like > mkdir -p /run/{var,lock,shm} > to be compatible with shells that don't support brace expansion: > mkdir -p /run/var > mkdir -p /run/lock > mkdir -p /run/shm > I'm all in favour of using /bin/bash, but supposedly the bootscripts are shell-agnostic. So, which shells in the book don't support brace expansion ?
Also, does the book ever tell you to symlink /bin/sh to a different shell, or do any of the other shells do that as part of their install ? AFAIK, if people want to use a different shell for their own session, that shouldn't impact the bootscripts. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
