Skip to content

Commit

Permalink
document nvme definition
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed May 8, 2024
1 parent 4f77b7f commit 14f2d01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloudinit/config/cc_disk_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,9 @@ def mkfs(fs_cfg):
if not partition or partition.isdigit():
# Handle manual definition of partition
if partition.isdigit():
# nvme support
# https://github.com/torvalds/linux/blob/45db3ab/block/partitions
# /core.c#L330
if device[-1].isdigit():
device = f"{device}p"
device = "%s%s" % (device, partition)
Expand Down

0 comments on commit 14f2d01

Please sign in to comment.