usb/storage-preinserted test fails with usb stick that do not contain a partition

Bug #1010096 reported by Jeff Marcom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Triaged
Low
Unassigned

Bug Description

Problem:
There may be instances where a usb key does not contain a valid partition, yet still has a writable filesystem.

Symptoms:
The current usb_pre-inserted test fails with the following:

No removable drives were detected, aborting

Reproducable? yes:
Device can be seen as /dev/sdd in OS and automounts. However pre-inserted test fails because it expects a partition.

Workaround:
Current workaround is to "zero out" the drive, create a partition table and partition on the key. Re-insert key, and restart test.

Tags: scripts
Jeff Marcom (jeffmarcom)
Changed in checkbox:
importance: Undecided → Low
assignee: nobody → Brendan Donegan (brendan-donegan)
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

This definitely happens and the removable_storage_test code needs to account for the possibility that the drive may not have any partition table and yet still be writable.

Changed in checkbox:
assignee: Brendan Donegan (brendan-donegan) → nobody
status: New → Triaged
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

The workaround is to always use sticks which have a partition table on them.

Daniel Manrique (roadmr)
tags: added: scripts
Zygmunt Krynicki (zyga)
affects: checkbox → plainbox-provider-checkbox
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.