Pierre Labastie wrote: >> -binfiles="sh cat cp dd killall ls lsmod mkdir mknod mount " >> +binfiles="bash cat cp dd killall ls mkdir mknod mount" >> >> +ln -s bash $WDIR/bin/sh >> >> sh is needed in the case where the user has /bin/sh linked to something >> other than bash. We could do a test and either add the other file or >> create a symlink to bash.
> agreed. Maybe: > > binfiles="cat cp dd killall ls mkdir mknod mount" > > if [ -h /bin/sh ]; then > binfiles="$binfiles $(readlink /bin/sh)" > ln -s $(readlink /bin/sh) $WDIR/bin/sh > fi Thinking about this some more, we don't need to do anything. Whatever file sh points to will be copied to the initramfs as sh. We don't need any symlinks for sh. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
