summaryrefslogtreecommitdiffstats
path: root/partition.c
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-10-07 17:31:06 +0200
committerJose M. Guisado <jguisado@soleta.eu>2022-12-15 12:27:35 +0100
commit8707d4311112f589ff7dcaf7ed634dbcc3bd9fdb (patch)
treee83dbe9060cdf235a9f1314dbfd65134aaa58941 /partition.c
parent46ad17eaa7c04b846fa359f9edc48572ab8bc31e (diff)
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.
Diffstat (limited to 'partition.c')
-rw-r--r--partition.c1
1 files changed, 1 insertions, 0 deletions
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;
}