I have met one problem when taking "rancheros-install" to my disk volume.
[root@localhost ~]# ./rancheros-install -d /dev/sdb -c ./cloud_data.yml -v v0.1.2 -t generic
+ set -e
+ PARTITION_FLAG=false
+ INSTALLER_VERSION=latest
+ EXTRA_ARGS=
+ getopts c:d:ft:v:h OPTION
+ case $OPTION in
+ DEVICE=/dev/sdb
+ getopts c:d:ft:v:h OPTION
+ case $OPTION in
+ CLOUD_CONFIG=./cloud_data.yml
+ getopts c:d:ft:v:h OPTION
+ case $OPTION in
+ INSTALLER_VERSION=v0.1.2
+ getopts c:d:ft:v:h OPTION
+ case $OPTION in
+ INSTALL_TYPE=generic
+ getopts c:d:ft:v:h OPTION
++ whoami
+ '[' root '!=' root ']'
+ [[ -z generic ]]
+ '[' -z ./cloud_data.yml ']'
+ '[' generic == generic ']'
+ PARTITION_FLAG=true
+ [[ ! -z ./cloud_data.yml ]]
+ cp ./cloud_data.yml /opt/user_config.yml
+ EXTRA_ARGS='-c /opt/user_config.yml'
+ '[' '' '!=' true ']'
+ '[' generic '!=' rancher-upgrade ']'
+ echo 'All data will be wiped from this device'
All data will be wiped from this device
+ printf 'Partition: true\nDEVICE: /dev/sdb\n'
Partition: true
DEVICE: /dev/sdb
+ read -p 'Are you sure you want to continue? [yN]' -n 1 -r confirmation
Are you sure you want to continue? [yN]y+ '[' y '!=' y ']'
+ '[' true == true ']'
+ docker run --net=host -it --privileged --entrypoint=/scripts/set-disk-partitions rancher/os-installer:v0.1.2 /dev/sdb
+ DEVICE=/dev/sdb
+ [[ -z /dev/sdb ]]
++ wc -l
+++ cut -d / -f3
+++ echo /dev/sdb
++ grep sdb /proc/partitions
+ PARTITION_COUNT=1
+ '[' 1 -gt 1 ']'
+ fdisk /dev/sdb
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x5b287ded.
Command (m for help): Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): Partition number (1-4, default 1): First sector (2048-104857599, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-104857599, default 104857599):
Created a new partition 1 of type 'Linux' and of size 50 GiB.
Command (m for help): The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
+ docker start udev
Error response from daemon: No such container: udev
FATA[0000] Error: failed to start one or more containers