index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2022-05-28 15:40:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-28 15:40:36 +0200 |
commit | 486ad7dd6d195dd435c5da58d241e14742f60485 (patch) | |
tree | fd7f8935d02c70cd1c55dec75af75a5367fc6010 /archinstall/lib/disk/btrfs | |
parent | 5c9bd235d3d0e653ba8d643748fd3d776359978b (diff) |
-rw-r--r-- | archinstall/lib/disk/btrfs/btrfspartition.py | 8 |
diff --git a/archinstall/lib/disk/btrfs/btrfspartition.py b/archinstall/lib/disk/btrfs/btrfspartition.py index 5020133d..299357b8 100644 --- a/archinstall/lib/disk/btrfs/btrfspartition.py +++ b/archinstall/lib/disk/btrfs/btrfspartition.py @@ -108,9 +108,13 @@ class BTRFSPartition(Partition): if glob.glob(str(subvolume / '*')): raise DiskError(f"Cannot create subvolume at {subvolume} because it contains data (non-empty folder target is not supported by BTRFS)") - elif subvolinfo := subvolume_info_from_path(subvolume): - raise DiskError(f"Destination {subvolume} is already a subvolume: {subvolinfo}") + # Ideally we would like to check if the destination is already a subvolume. + # But then we would need the mount-point at this stage as well. + # So we'll comment out this check: + # elif subvolinfo := subvolume_info_from_path(subvolume): + # raise DiskError(f"Destination {subvolume} is already a subvolume: {subvolinfo}") + # And deal with it here: SysCommand(f"btrfs subvolume create {subvolume}") return subvolume_info_from_path(subvolume)
\ No newline at end of file |