mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
fix issue 1103:xcat2.12 can not get the right disk name for RHEL on PowerKVM
This commit is contained in:
parent
b12eda029a
commit
1eb69676b6
@ -36,9 +36,9 @@ if [ -z "$install_disk" ]; then
|
||||
|
||||
# Get all partitions and disks from /proc/partitions file
|
||||
if [ -z "$has_awk" ]; then
|
||||
entries=$(cat /proc/partitions | sed 's/ */ /g' | cut -d " " -f5 | grep -v "name" | grep -e "[s|h]d.*$")
|
||||
entries=$(cat /proc/partitions | sed 's/ */ /g' | cut -d " " -f5 | grep -v "name" | grep -e "[s|h|v]d.*$")
|
||||
else
|
||||
entries=$(awk -F ' ' '{print $4}' /proc/partitions | grep -v "name" | grep -e "[s|h]d.*$")
|
||||
entries=$(awk -F ' ' '{print $4}' /proc/partitions | grep -v "name" | grep -e "[s|h|v]d.*$")
|
||||
fi
|
||||
|
||||
# Classify entries by DEVTYPE
|
||||
|
Loading…
x
Reference in New Issue
Block a user