Skip to content

Commit

Permalink
docs: denote partition UUID in creation step
Browse files Browse the repository at this point in the history
  • Loading branch information
swysocki committed Jul 28, 2022
1 parent 3aaf6f4 commit 8f768d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import gpt_image, uuid
disk = gpt_image.disk.Disk("disk-image.raw")
disk.create(8 * 1024 * 1024)

# create a 2MB partition, default is a Linux partition
partition = gpt_image.partition.Partition("partition1", 2 * 1024 * 1024, uuid.uuid4())
# create a 2MB Linux partition named "partition1"
partition = gpt_image.partition.Partition("partition1", 2 * 1024 * 1024, Partition.LINUX_FILE_SYSTEM)

# add the partition to disk
disk.table.partitions.add(partition)
Expand Down

0 comments on commit 8f768d7

Please sign in to comment.