1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Format data disk in Supervisor instead of OS Agent (#4212)

* Supervisor formats data disk instead of os agent

* Fix issues occurring during tests

* Can't migrate if target is too small
This commit is contained in:
Mike Degatano
2023-03-30 14:15:07 -04:00
committed by GitHub
parent a3204f4ebd
commit c0b75edfb7
19 changed files with 559 additions and 70 deletions

View File

@@ -108,17 +108,17 @@ async def test_create_partition(
await sda.create_partition(
offset=0,
size=1000000,
type_=PartitionTableType.DOS,
type_="0FC63DAF-8483-4772-8E79-3D69D8477DE4",
name="hassos-data",
options=CreatePartitionOptions(partition_type="primary"),
)
== "/org/freedesktop/UDisks2/block_devices/sda2"
== "/org/freedesktop/UDisks2/block_devices/sda1"
)
assert partition_table_sda_service.CreatePartition.calls == [
(
0,
1000000,
"dos",
"0FC63DAF-8483-4772-8E79-3D69D8477DE4",
"hassos-data",
{
"partition-type": Variant("s", "primary"),