mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-20 02:00:24 +00:00
Merge pull request #7477 from vigo332/patch-1
Add support for nvme device partition names.
This commit is contained in:
@@ -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`
|
||||
|
Reference in New Issue
Block a user