Re: pivot_root from non-interactive script

2001-06-20 Thread Ralph Jones
Hi, I was using ash from SuSE 7.1 (ash-0.2-294) I patched ash's input.c with fcntl(fd, F_SETFD, FD_CLOEXEC); in setinputd. This fixed the problem. Then I found that there is version 0.3.5-11 (on the debian site) with this fix already included. Thanks for your help. Ralph Jones On Tu

Re: pivot_root from non-interactive script

2001-06-19 Thread Andreas Schwab
Ralph Jones <[EMAIL PROTECTED]> writes: |> Thanks. Yes it looks as if this might be the case. Do you have any ideas how I |might get around this? Or do I have to use a different shell? The latter is probably the easiest. Or fix /bin/ash to set FD_CLOEXEC on the file descriptor. Andreas. -

Re: pivot_root from non-interactive script

2001-06-19 Thread Ralph Jones
Thanks. Yes it looks as if this might be the case. Do you have any ideas how I might get around this? Or do I have to use a different shell? Ralph On Mon, 18 June 2001, Andreas Schwab wrote: > > Ralph Jones <[EMAIL PROTECTED]> writes: > > |> I have followed the instructions given in Docum

Re: pivot_root from non-interactive script

2001-06-18 Thread Andreas Schwab
Ralph Jones <[EMAIL PROTECTED]> writes: |> I have followed the instructions given in Documentation/initrd.txt with regard to |pivot_root, but am unable to unmount the filesystem, when everything is called from a |non-interactive script. |> |> ie. When I set a link from linuxrc to /bin/ash and