On 9 May 2007, Michael Tokarev spake thusly:
> Nix wrote:
>> On 8 May 2007, Michael Tokarev told this:
>>> BTW, for such recovery purposes, I use initrd (initramfs really, but
>>> does not matter) with a normal (but tiny) set of commands inside,
>>> thanks to busybox.  So everything can be done without any help from
>>> external "recovery CD".  Very handy at times, especially since all
>>> the network drivers are here on the initramfs too, so I can even
>>> start a netcat server while in initramfs, and perform recovery from
>>> remote system... ;)
>> 
>> What you should probably do is drop into the shell that's being used to
>> run init if mount fails (or, more generally, if after mount runs it
>
> That's exactly what my initscript does ;)

I thought so. I was really talking to Mark, I suppose.

> chk() {
>   while ! "$@"; do
>     warn "the following command failed:"
>     warn "$*"
>     p="** Continue(Ignore)/Shell/Retry (C/s/r)? "

Wow. Feature-rich :)) I may reused this rather nifty stuff.

>> hasn't ended up mounting anything: there's no need to rely on mount's
>> success/failure status). [...]
>
> Well, so far exitcode has been reliable.

I guess I was being paranoid because I'm using busybox and at various
times the exitcodes of its internal commands have been... unimplemented
or unreliable.

-- 
`In the future, company names will be a 32-character hex string.'
  --- Bruce Schneier on the shortage of company names
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to