update curtin and adapt to API change

This commit is contained in:
Michael Hudson-Doyle 2023-06-09 14:29:54 +12:00
parent 211ee4e7b5
commit 9ed9f4e469
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ parts:
source: https://git.launchpad.net/curtin source: https://git.launchpad.net/curtin
source-type: git source-type: git
source-commit: 8e74f621e1bd84f804bda280a370440b150f9f40 source-commit: 6412598919202072d0d8b57827a120c963478d35
override-pull: | override-pull: |
craftctl default craftctl default

View File

@ -27,7 +27,7 @@ from typing import Any, Dict, List, Optional, Set
import attr import attr
from curtin.commands.extract import AbstractSourceHandler from curtin.commands.extract import AbstractSourceHandler
from curtin.storage_config import ptable_uuid_to_flag_entry from curtin.storage_config import ptable_part_type_to_flag
import pyudev import pyudev
@ -673,7 +673,7 @@ class FilesystemController(SubiquityController, FilesystemManipulator):
type_uuid = structure.gpt_part_type_uuid() type_uuid = structure.gpt_part_type_uuid()
if type_uuid: if type_uuid:
part.partition_type = type_uuid part.partition_type = type_uuid
part.flag = ptable_uuid_to_flag_entry(type_uuid)[0] part.flag = ptable_part_type_to_flag(type_uuid)
if structure.name: if structure.name:
part.partition_name = structure.name part.partition_name = structure.name
if structure.filesystem: if structure.filesystem: