File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def _check_dep_btrfs(self) -> bool:
118118 disk_layout_conf : DiskLayoutConfiguration | None = self ._menu_item_group .find_by_key ('disk_config' ).value
119119
120120 if disk_layout_conf :
121- return disk_layout_conf .is_default_btrfs ()
121+ return disk_layout_conf .has_default_btrfs_vols ()
122122
123123 return False
124124
Original file line number Diff line number Diff line change @@ -193,19 +193,20 @@ def parse_arg(
193193 if (enc_config := disk_config .get ('disk_encryption' , None )) is not None :
194194 config .disk_encryption = DiskEncryption .parse_arg (config , enc_config , enc_password )
195195
196- if config .is_default_btrfs ():
196+ if config .has_default_btrfs_vols ():
197197 if (btrfs_arg := disk_config .get ('btrfs_options' , None )) is not None :
198198 config .btrfs_options = BtrfsOptions .parse_arg (btrfs_arg )
199199
200200 return config
201201
202- def is_default_btrfs (self ) -> bool :
202+ def has_default_btrfs_vols (self ) -> bool :
203203 if self .config_type == DiskLayoutType .Default :
204204 for mod in self .device_modifications :
205205 for part in mod .partitions :
206206 if part .is_create_or_modify ():
207207 if part .fs_type == FilesystemType .Btrfs :
208- return True
208+ if len (part .btrfs_subvols ) > 0 :
209+ return True
209210
210211 return False
211212
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ def perform_installation(mountpoint: Path) -> None:
150150 if servies := config .services :
151151 installation .enable_service (servies )
152152
153- if disk_config .is_default_btrfs ():
153+ if disk_config .has_default_btrfs_vols ():
154154 btrfs_options = disk_config .btrfs_options
155155 snapshot_config = btrfs_options .snapshot_config if btrfs_options else None
156156 snapshot_type = snapshot_config .snapshot_type if snapshot_config else None
You can’t perform that action at this time.
0 commit comments