• Adding BTRFS install option to Cnchi


    I’m looking into adding BTRFS support to the Cnchi installer so people can easily choose that kind of setup.

    Is there any advice on what to take into account and how to implement it? I’m currently reading the Python code byte by byte to try to understand it as much as possible

  • @earthmind I recommend studying how OpenSUSE uses BTRFS by default

    1. All volumes are BTRFS subvolumes on / with mount points to their legacy locations. There are only / and swap partitions. Everything else is a BTRFS subvolume so it can be snapshotted and rolled back.

    Here’s someone trying to do something similar to you: https://forums.opensuse.org/showthread.php/521277-LEAP-42-2-btrfs-root-filesystem-subvolume-structure

    More info about snapshotting methods: https://en.opensuse.org/SDB:BTRFS#Default_Subvolumes

    1. There’s a snapshot subvolume with data from Snapper, which triggers snapshots by default whenever zypper (like pacman) is used – this can be achieved on Arch with snap-pac

    Arch Wiki: https://wiki.archlinux.org/index.php/Snapper#Wrapping_pacman_transactions_in_snapshots

    Github site: https://github.com/wesbarnett/snap-pac

    1. Grub can boot snapshots

    Github site: https://github.com/Antynea/grub-btrfs

    Good luck! I think it’s a great idea. I use OpenSUSE TW for my KVM server and I think BTRFS+snapshots+grub rollback is literally the best feature I’ve seen enabled by default on any Linux distro. (Reminds me of Solaris w/ ZFS).

    It makes sure it keeps working! Can’t beat that.

    Thinkpad / Antergos / ZFS / Cinnamon / KVM enthusiast

    "Linux … is more a phenomenon than an OS" - Joekamprad

  • That’s good advice. Trying to copy the OpenSUSE way as much as possible is a good idea because they’ve really developed it into an advanced setup as a result of it being their main FS. On my blog there’s a lot I got from their documentation about subvolumes and which ones are recommended to skip them in system wide snapshots (like the logs folder for example, no use in reverting that EVER)

    I’m going to take a look at all the information you provided. It would be awesome to implement the BTRFS feature as a full solution instead of how I documented is in combination with FAT32.

    I was btw talking more about the technical sides of implementing in into Cnchi. Tips that could help me avoid confusions or implement it faster or so

cnchi130 btrfs13 adding10 Posts 3Views 257
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.