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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user