1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Fix bug in install script

lsblk -o label will list the labels of the block devices. Using name only returns /dev/sda, etc.
In some cases, labels may be repeated (eg - RAID configurations).  It is safer to use greater than 0.
This commit is contained in:
Dan Jasek
2016-02-06 19:23:29 -07:00
parent 0a75d86374
commit 9adfdf6ef9

View File

@@ -50,7 +50,7 @@ mount_device()
mkdir -p ${BASE_DIR}
if [ "$(lsblk -o name|grep RANCHER_BOOT | wc -l)" -eq "1" ]; then
if [ "$(lsblk -o label|grep RANCHER_BOOT | wc -l)" -gt "0" ]; then
label=RANCHER_BOOT
fi