Skip to content

Commit

Permalink
disk: inherit partition size when converting / to btrfs
Browse files Browse the repository at this point in the history
Prior this commit, if a blueprint mountpoint grew / and the / partition
was converted to btrfs later, we didn't carry the enlarged size over.
This commit carries the former partition size to the created btrfs
subvolume.

A test will be added in the following commit.
  • Loading branch information
ondrejbudai committed Aug 30, 2024
1 parent dea2846 commit 4531a76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/disk/partition_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ func (pt *PartitionTable) ensureBtrfs() error {
Mountpoint: "/",
Compress: DefaultBtrfsCompression,
ReadOnly: opts.ReadOnly(),
Size: part.Size,
},
},
}
Expand Down

0 comments on commit 4531a76

Please sign in to comment.