Skip to content

Commit beda60f

Browse files
committed
feat(arch): update Btrfs snapshots section
Signed-off-by: chris1320 <chris1320is@protonmail.com>
1 parent e97d8af commit beda60f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Operating Systems/Arch Linux/Contents/Manual Customization.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,15 @@ We will use [Snapper](https://snapper.io/) to create snapshots and [Btrfs Assist
607607

608608
```bash
609609
paru -S snapper snap-pac btrfs-assistant inotify-tools
610+
611+
# Temporarily unmount `/.snapshots` to let snapper create the config
612+
sudo umount /.snapshots
613+
sudo rm -r /.snapshots
614+
sudo snapper -c root create-config /
615+
sudo btrfs subvolume delete /.snapshots
616+
sudo mount --mkdir -o noatime,compress-force=zstd:3,subvol=@snapshots /dev/sda4 /.snapshots # use the same options you used from Manual Customization guide
617+
cat /etc/fstab
618+
610619
systemctl enable snapper-boot.timer
611620
```
612621

@@ -630,10 +639,6 @@ HOOKS=(... grub-btrfs-overlayfs)
630639

631640
After saving and closing the file, run `mkinitcpio -P`.
632641

633-
### Setting Up Snapper
634-
635-
Start Btrfs Assistant and go to the *Snapper Settings* tab. Click *New* and name it `root` with backup path `/`. Enable *timeline snaphots*, adjust the snapshot retention times, and click *Save*. Enable *timeline*, *cleanup*, and *boot* in *systemd Unit Settings* section.
636-
637642
## Ricing Up GRUB
638643

639644
Our whole system mostly uses the [Catppuccin](https://catppuccin.com/) colorscheme, so we're going to use [Catppuccin's GRUB theme](https://github.com/catppuccin/grub) to rice our bootloader.

0 commit comments

Comments
 (0)