From 8707d4311112f589ff7dcaf7ed634dbcc3bd9fdb Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Fri, 7 Oct 2022 17:31:06 +0200 Subject: context: add add_partition method This method wraps fdisk_add_partition. Allows modifying in-memory partition table of a given context. Remember that changes need to be written to disk using the relevant fdisk_write_disklabel function wrapper. --- partition.c | 1 + 1 file changed, 1 insertion(+) (limited to 'partition.c') diff --git a/partition.c b/partition.c index ae812d4..6057f5b 100644 --- a/partition.c +++ b/partition.c @@ -55,6 +55,7 @@ static int Partition_init(PartitionObject *self, PyObject *args, PyObject *kwds) */ self->pa = fdisk_new_partition(); + fdisk_partition_start_follow_default(self->pa, 1); return 0; } -- cgit v1.2.3-18-g5258