Skip to content

use lsblk to figure out if a device is partition or not #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2016

Conversation

rhvgoyal
Copy link
Collaborator

@rhvgoyal rhvgoyal commented Mar 1, 2016

Fixes #99

Right now we have very crude logic to figure out if a device is partition
or not. It fails on some devices whose names end with a number. Use lsblk
instead to figure out if a device is partition or not.

Signed-off-by: Vivek Goyal [email protected]

Right now we have very crude logic to figure out if a device is partition
or not. It fails on some devices whose names end with a number. Use lsblk
instead to figure out if a device is partition or not.

Signed-off-by: Vivek Goyal <[email protected]>
@rhvgoyal
Copy link
Collaborator Author

rhvgoyal commented Mar 1, 2016

@cgwalters
Copy link
Member

LGTM.

@rhvgoyal
Copy link
Collaborator Author

rhvgoyal commented Mar 1, 2016

Cool. Merging.

rhvgoyal added a commit that referenced this pull request Mar 1, 2016
use lsblk to figure out if a device is partition or not
@rhvgoyal rhvgoyal merged commit 5c6384c into projectatomic:master Mar 1, 2016
@frankamp
Copy link

frankamp commented Jan 6, 2018

I tried to build a raid0 and pass it as a device, and it failed this check. Do you know if that would have worked otherwise? I used a command like:

mdadm --create --verbose --auto=yes /dev/md0 --level=0 --raid-devices=2 /dev/xvdcz1 /dev/xvdd1

After this completed I passed /dev/md0 into the container-storage-setup (actually docker-storage-setup).

It failed on this check

INFO: EXTRA_DOCKER_STORAGE_OPTIONS is deprecated, please use EXTRA_STORAGE_OPTIONS INFO: Volume group backing root filesystem could not be determined ERROR: Partition specification unsupported at this time.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants