2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 11:10:24 +00:00

Add support for nvme device partition names.

This commit is contained in:
vigo332
2024-10-31 16:17:33 -04:00
committed by GitHub
parent d8ce286412
commit b43dc3eb20

View File

@@ -216,6 +216,12 @@ doconfigure () {
fi
partnum=`expr $partnum + 1`
partdev=$dev$partnum
# need to handle nvme device name, nvme0n1 so partnum is nvme0n1p1
if [[ $dev == *"nvme"* ]]; then
partdev=${dev}p$partnum
fi
echo "Create filesystem $fstype on $partdev" >>$LOG
echo "mkfs.$fstype -f -q $partdev" >>$LOG
`mkfs.$fstype -f -q $partdev > /dev/null`