This change allows the utilization of all 80 characters per line in s390 parm files which makes them more condensed.
It should now also be possible to use parameters that are longer than 80 characters like for example long installation urls and similar.
I have removed the strip function because it is not needed anymore and might also result in problems with this change. The leading space could be also removed with an additional if else expression but I think it is not worth it.
Signed-off-by: Tim Hardeck thardeck@suse.de --- templates/pxe/s390x_parm.template | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/templates/pxe/s390x_parm.template b/templates/pxe/s390x_parm.template index f536c0d..5e47f02 100644 --- a/templates/pxe/s390x_parm.template +++ b/templates/pxe/s390x_parm.template @@ -10,12 +10,12 @@ ## ===================================== #set $output_str="" #for $item in $argList -#if $len($output_str) + $len($item) >= 80 -#echo "%s\n" % $output_str.strip() -#set $output_str = "" -#end if #set $output_str = "%s %s" % ($output_str, $item) +#if $len($output_str) >= 80 +#echo "%s\n" % $output_str[0:80] +#set $output_str = $output_str[80:$len($output_str)] +#end if #end for #if $len($output_str) > 0 -#echo "%s\n" % $output_str.strip() +#echo "%s\n" % $output_str #end if