Version is : 

root@l4b:/# apt show lava-server
Package: lava-server
Version: 2019.09+stretch

I was looking into code and found that it looks like about fastboot reboot-booloader is hardcoded.
https://github.com/Linaro/lava/blob/master/lava_dispatcher/actions/boot/fastboot.py#L357

Ilya.

From: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Sent: Thursday, September 5, 2019 5:40 PM
To: Ilya Fedusiv <ilya.f@l4b-software.com>
Cc: lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>
Subject: Re: [Lava-users] Fastboot reboot-bootloader
 
Hmm, that should work. soft_reboot_command is the only place where the
'reboot bootloader' shows up. Which version of LAVA do you run?

milosz

On Thu, 5 Sep 2019 at 15:04, Ilya Fedusiv <ilya.f@l4b-software.com> wrote:
>
> Thank you!
> I'm trying to understand this connection part. If I understand correctly this is connection part
> https://github.com/Linaro/lava/blob/master/etc/dispatcher-config/device-types/base.jinja2#L146 ?
>
> I edited device desc
> https://pastebin.com/ihzYZxVM
>
> Am I on right way?
>
> Job is still running fastboot reboot-bootloader command.
>
> Ilya
>
> ________________________________
> From: Milosz Wasilewski <milosz.wasilewski@linaro.org>
> Sent: Thursday, September 5, 2019 4:12:09 PM
> To: Ilya Fedusiv <ilya.f@l4b-software.com>
> Cc: lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>
> Subject: Re: [Lava-users] Fastboot reboot-bootloader
>
> There is no "connection_command" anywhere in your device dictionary.
> Without it you're missing the whole 'commands' section. This means
> you're using default soft_reboot_command. Beside that without
> connection_command LAVA won't interact with your device - there won't
> be any device logs available in the job. It will also not know when
> the booting process finished. To put it simply - it won't work.
>
> milosz
>
> On Thu, 5 Sep 2019 at 14:07, Ilya Fedusiv <ilya.f@l4b-software.com> wrote:
> >
> > Sorry, but I didnt understand about what commands are you talking about?
> >
> > Flash image via fastboot flash. And once I successfully did it. But my device has problem with fastboot reboot-bootloader(some times pass some times fails) and I want to remove fastboot reboot-bootloader.
> > Communication with device via serial connection.
> >
> > Ilya.
> >
> > ________________________________
> > From: Milosz Wasilewski <milosz.wasilewski@linaro.org>
> > Sent: Thursday, September 5, 2019 3:56:52 PM
> > To: Ilya Fedusiv <ilya.f@l4b-software.com>
> > Cc: lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>
> > Subject: Re: [Lava-users] Fastboot reboot-bootloader
> >
> > Your 'commands' section is missing entirely. You need either of:
> > connection_command
> > user_commands
> > connection_list
> > to add this section to the rendered dictionary. Without it default
> > value will be used.
> >
> > Beside that, how does LAVA interact with your device without connection_command?
> >
> >
> > milosz
> >
> > On Thu, 5 Sep 2019 at 13:33, Ilya Fedusiv <ilya.f@l4b-software.com> wrote:
> > >
> > > Rendered device.
> > > https://pastebin.com/BGMTi1SZ
> > >
> > > I just change file, save it. Update web page. And it looks like that device description is updated.
> > >
> > > Ilya
> > > ________________________________
> > > From: Milosz Wasilewski <milosz.wasilewski@linaro.org>
> > > Sent: Thursday, September 5, 2019 3:22:55 PM
> > > To: Ilya Fedusiv <ilya.f@l4b-software.com>
> > > Cc: lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>
> > > Subject: Re: [Lava-users] Fastboot reboot-bootloader
> > >
> > > Than you're not changing it in the right place. How does the rendered
> > > device dictionary look like?
> > >
> > > milosz
> > >
> > > On Thu, 5 Sep 2019 at 13:20, Ilya Fedusiv <ilya.f@l4b-software.com> wrote:
> > > >
> > > > No, result same.
> > > > Lava still runs that command
> > > >
> > > > nice fastboot -s 861a1c59 reboot-bootloader
> > > >
> > > > ________________________________
> > > > From: Milosz Wasilewski <milosz.wasilewski@linaro.org>
> > > > Sent: Thursday, September 5, 2019 3:16:04 PM
> > > > To: Ilya Fedusiv <ilya.f@l4b-software.com>
> > > > Cc: lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>
> > > > Subject: Re: [Lava-users] Fastboot reboot-bootloader
> > > >
> > > > On Thu, 5 Sep 2019 at 13:13, Ilya Fedusiv <ilya.f@l4b-software.com> wrote:
> > > > >
> > > > > It doesnt help.
> > > > > Maybe I made wrong description.
> > > > >
> > > > > Device desc:
> > > > > https://pastebin.com/1uUw2shL
> > > >
> > > > Try this:
> > > > {% set soft_reboot_command = 'pwd' %}
> > > >
> > > > milosz
> > > >
> > > > >
> > > > > Log:
> > > > > https://pastebin.com/ZyNbduP6
> > > > >
> > > > > Ilya
> > > > >
> > > > > ________________________________
> > > > > From: Milosz Wasilewski <milosz.wasilewski@linaro.org>
> > > > > Sent: Thursday, September 5, 2019 2:19:01 PM
> > > > > To: Ilya Fedusiv <ilya.f@l4b-software.com>
> > > > > Cc: lava-users@lists.lavasoftware.org <lava-users@lists.lavasoftware.org>
> > > > > Subject: Re: [Lava-users] Fastboot reboot-bootloader
> > > > >
> > > > > On Thu, 5 Sep 2019 at 10:16, Ilya Fedusiv <ilya.f@l4b-software.com> wrote:
> > > > > >
> > > > > > Hi!
> > > > > >
> > > > > > Lava as default at beginning runs that command:
> > > > > >
> > > > > > nice fastboot -s 261a1c5d reboot-bootloader
> > > > >
> > > > > This is coming from base-fastboot template
> > > > > {% set soft_reboot_command = soft_reboot_command|default('adb -s ' +
> > > > > fastboot_serial_number + ' reboot bootloader') %}
> > > > >
> > > > > So to prevent it you need to set soft_reboot_command in your device dictionary.
> > > > >
> > > > > milosz
> > > > >
> > > > > >
> > > > > >
> > > > > > Is it possible to avoid this step? Dont run this command
> > > > > >
> > > > > > Ilya
> > > > > >
> > > > > > _______________________________________________
> > > > > > Lava-users mailing list
> > > > > > Lava-users@lists.lavasoftware.org
> > > > > > https://lists.lavasoftware.org/mailman/listinfo/lava-users