From 0ecc45d6f7af36301eced0069960ac14c074bcf6 Mon Sep 17 00:00:00 2001 From: Michael Solberg Date: Tue, 17 Oct 2017 15:20:28 -0400 Subject: [PATCH] Fixes situations where sda or sdb is used for the docker volume instead of vda or vdb. --- fragments/common_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fragments/common_functions.sh b/fragments/common_functions.sh index c8191d9..d25e924 100644 --- a/fragments/common_functions.sh +++ b/fragments/common_functions.sh @@ -27,7 +27,7 @@ function docker_set_storage_device() { # It might be that disk is not present under /dev/disk/by-id/ # https://ask.openstack.org/en/question/50882/are-devdiskby-id-symlinks-unreliable/ # then just find first disk which has no partition - for dev in /dev/vdb /dev/vda; do + for dev in /dev/vdb /dev/vda /dev/sdb /dev/sda; do if [ -b $dev -a ! -b ${dev}1 ]; then docker_dev=$dev break