From: Lonnie A. <li...@lo...> - 2017-08-29 20:04:52
|
On Aug 29, 2017, at 1:42 PM, Michael Keuter <li...@mk...> wrote: > >> >> The initrd busybox config is not the problem, this is a fundamental problem using shell, though easily solved with bash, but bash is not a practical option with our initrd. >> >> Get exit status of process that's piped to another >> https://unix.stackexchange.com/questions/14270/get-exit-status-of-process-thats-piped-to-another >> >> I dont see an elegant solution. >> >> My only other thought would be to create a background "spinner" process, then call "e2fsck -y $1 >/dev/null" and status="$?" then stop the background spinner process. > > Sounds not so bad, at least worth a test. > BTW: Wasn't there a kind of mini-shell in busybox ("ash" or so)? Yes we are using the Busybox "ash" shell in the initrd. Lonnie |