abh1sar commented on code in PR #11070:
URL: https://github.com/apache/cloudstack/pull/11070#discussion_r2160277940
##########
plugins/storage/sharedfs/storagevm/src/main/resources/conf/fsvm-init.yml:
##########
@@ -31,7 +31,7 @@ write_files:
get_block_device() {
if [ "$HYPERVISOR" == "kvm" ]; then
- BLOCK_DEVICE="vdb"
+ lspci | grep "Virtio SCSI" > /dev/null && BLOCK_DEVICE="sdb" ||
BLOCK_DEVICE="vdb"
Review Comment:
I think something like below should handle all cases (for other hypervisors
as well)
get_block_device() {
lsblk -dn -o NAME,TYPE | awk '$2=="disk"{print $1}' | tail -n 1
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]