action to setup an USB thumbdrive

Bug #1073110 reported by Fathi Boudra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA Dispatcher
In Progress
Wishlist
Arthur She

Bug Description

At the moment, it's up to the users to set up partitions and format a thumbdrive as he wants.
Such script has been done for LT TI LAVA tests [1].

It will be nice to have an action to setup an USB thumbrive and avoid each users to write his own script.
Indeed, the users should still have the flexibility to partition/format as they want.

[1] http://git.linaro.org/gitweb?p=people/davelong/lt_ti_lava.git;a=blob;f=utils/lava-usb-drive.sh

Revision history for this message
Alan Bennett (akbennett) wrote :

Fixing this bug does not fit in our development plans. Moving forward, all LAVA bugs will be disposed/scrubbed/triaged weekly.

Changed in lava-dispatcher:
status: New → Won't Fix
Fathi Boudra (fboudra)
Changed in lava-dispatcher:
status: Won't Fix → Triaged
importance: Undecided → Wishlist
Revision history for this message
Alan Bennett (akbennett) wrote :

efforts on lava-command-run, can/should enable this

Changed in lava-dispatcher:
status: Triaged → Confirmed
assignee: nobody → Tyler Baker (tyler-baker)
Revision history for this message
Dave Pigott (dpigott) wrote :

lava-command will enable this

Changed in lava-dispatcher:
assignee: Tyler Baker (tyler-baker) → Arthur She (arthur-she)
importance: Wishlist → High
status: Confirmed → In Progress
Revision history for this message
Arthur She (arthur-she) wrote :

lava-command can let you specify commands which you want to run in the target in job file directly, you may use the following job to partition disks and format it.
{
            "command": "lava_command_run",
            "parameters": {
                "commands": [
                    "echo '1,16,L' | sfdisk -uM /dev/sda",
                    "mkfs.ext4 /dev/sda1"
                ]
            }
}

Revision history for this message
Fathi Boudra (fboudra) wrote : Re: [Bug 1073110] Re: action to setup an USB thumbdrive

On 10 October 2013 08:32, Arthur She <email address hidden> wrote:
> lava-command can let you specify commands which you want to run in the target in job file directly, you may use the following job to partition disks and format it.
> {
> "command": "lava_command_run",
> "parameters": {
> "commands": [
> "echo '1,16,L' | sfdisk -uM /dev/sda",
> "mkfs.ext4 /dev/sda1"
> ]
> }
> }

yeah, it sounds like "each users to write his own script".
I don't even need lava_command_run to do that today.
It isn't what I'm looking for.

Revision history for this message
Tyler Baker (tyler-baker) wrote :

I'll discuss this with Fathi.

Revision history for this message
Antonio Terceiro (terceiro) wrote :

Fathi, if we add that script as a part of the lava-test-shell API call (as `lava-usb-drive`), would it fulfill your needs with this? So you would do something like this in the shell commants of a test definition:

lava-usb-drive /dev/foo
mount /dev/foo1 /whatever
cd /whatever
...

??

Changed in lava-dispatcher:
importance: High → Wishlist
Revision history for this message
Fathi Boudra (fboudra) wrote :

On 6 December 2013 17:53, Antonio Terceiro <email address hidden> wrote:
> Fathi, if we add that script as a part of the lava-test-shell API call
> (as `lava-usb-drive`), would it fulfill your needs with this? So you
> would do something like this in the shell commants of a test definition:
>
> lava-usb-drive /dev/foo
> mount /dev/foo1 /whatever
> cd /whatever
> ...
>
> ??

yes, it will fulfill my needs. Make it a single line ;)
lava-usb-drive /dev/foo1 /whatever

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.