Re: [PATCH 3/3] url-lib: fix progressbar on s390, again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Will Woods píše v Pá 11. 05. 2012 v 18:45 -0400: 
> It turns out that you can't rely on s390 setting TERM to anything
> useful, so we just have to disable progressbar on all s390 systems.

seems it will be the only solution, for an installed system there is
TERM set to "dumb" for the console, but in the initrd environment it's
set to "linux", probably the default from kernel itself.


Dan

---
> modules.d/45url-lib/url-lib.sh |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/modules.d/45url-lib/url-lib.sh b/modules.d/45url-lib/url-lib.sh
> index 5721294..8a50c6f 100755
> --- a/modules.d/45url-lib/url-lib.sh
> +++ b/modules.d/45url-lib/url-lib.sh
> @@ -56,9 +56,9 @@ export CURL_HOME="/run/initramfs/url-lib"
>  mkdir -p $CURL_HOME
>  curl_args="--location --retry 3 --fail --show-error"
>  
> -# technically "dumb" can handle the progress bar, but the only thing I've ever
> -# seen using TERM=dumb is s390 CMS, and it's too dumb for --progress-bar
> -[ "$TERM" != "dumb" ] && curl_args="$curl_args --progress-bar"
> +# s390 x3270 consoles are too dumb for --progress-bar, and they don't seem to
> +# set TERM usefully, so we just have to disable it for all s390 systems.
> +strstr "$(uname -m)" "s390" || curl_args="$curl_args --progress-bar"
>  
>  curl_fetch_url() {
>      local url="$1" outloc="$2"


--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux