Skip to content

Commit 16e9bbe

Browse files
authored
Removed the @.snapshots volume in order to support both Snapper and Timeshift #3363 (#3408)
1 parent fd92873 commit 16e9bbe

4 files changed

Lines changed: 4 additions & 11 deletions

File tree

archinstall/lib/disk/device_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ def get_btrfs_info(
225225
mountpoint = self._TMP_BTRFS_MOUNT
226226
else:
227227
# when multiple subvolumes are mounted then the lsblk output may look like
228-
# "mountpoint": "/mnt/archinstall/.snapshots"
229-
# "mountpoints": ["/mnt/archinstall/.snapshots", "/mnt/archinstall/home", ..]
228+
# "mountpoint": "/mnt/archinstall/var/log"
229+
# "mountpoints": ["/mnt/archinstall/var/log", "/mnt/archinstall/home", ..]
230230
# so we'll determine the minimum common path and assume that's the root
231231
try:
232232
common_path = os.path.commonpath(lsblk_info.mountpoints)

archinstall/lib/interactions/disk_conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,7 @@ def suggest_single_disk_layout(
417417
SubvolumeModification(Path('@'), Path('/')),
418418
SubvolumeModification(Path('@home'), Path('/home')),
419419
SubvolumeModification(Path('@log'), Path('/var/log')),
420-
SubvolumeModification(Path('@pkg'), Path('/var/cache/pacman/pkg')),
421-
SubvolumeModification(Path('@.snapshots'), Path('/.snapshots'))
420+
SubvolumeModification(Path('@pkg'), Path('/var/cache/pacman/pkg'))
422421
]
423422
root_partition.btrfs_subvols = subvolumes
424423
elif using_home_partition:
@@ -596,8 +595,7 @@ def suggest_lvm_layout(
596595
SubvolumeModification(Path('@'), Path('/')),
597596
SubvolumeModification(Path('@home'), Path('/home')),
598597
SubvolumeModification(Path('@log'), Path('/var/log')),
599-
SubvolumeModification(Path('@pkg'), Path('/var/cache/pacman/pkg')),
600-
SubvolumeModification(Path('@.snapshots'), Path('/.snapshots')),
598+
SubvolumeModification(Path('@pkg'), Path('/var/cache/pacman/pkg'))
601599
]
602600

603601
home_volume = False

docs/cli_parameters/config/disk_config.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,6 @@ This example contains both subvolumes and compression.
200200
{
201201
"mountpoint": "/var/cache/pacman/pkg",
202202
"name": "@pkg",
203-
},
204-
{
205-
"mountpoint": "/.snapshots",
206-
"name": "@.snapshots",
207203
}
208204
],
209205
"dev_path": null,

examples/disk_layouts-sample.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
{
1717
"btrfs": {
1818
"subvolumes": {
19-
"@.snapshots": "/.snapshots",
2019
"@home": "/home",
2120
"@log": "/var/log",
2221
"@pkgs": "/var/cache/pacman/pkg"

0 commit comments

Comments
 (0)