Skip to content

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

Merged
rhvgoyal merged 1 commit into
projectatomic:masterfrom
rhvgoyal:part-lsblk
Mar 1, 2016
Merged

use lsblk to figure out if a device is partition or not#105
rhvgoyal merged 1 commit into
projectatomic:masterfrom
rhvgoyal:part-lsblk

Conversation

@rhvgoyal

@rhvgoyal rhvgoyal commented Mar 1, 2016

Copy link
Copy Markdown
Collaborator

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 vgoyal@redhat.com

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 <vgoyal@redhat.com>
@rhvgoyal

rhvgoyal commented Mar 1, 2016

Copy link
Copy Markdown
Collaborator Author

@cgwalters

Copy link
Copy Markdown
Member

LGTM.

@rhvgoyal

rhvgoyal commented Mar 1, 2016

Copy link
Copy Markdown
Collaborator Author

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

frankamp commented Jan 6, 2018

Copy link
Copy Markdown

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