From Mageia wiki
Jump to: navigation, search

Summary

Add support to boot from Btrfs subvolumes/snapshots. This allows to make a snapshot of the system and then rollback to it.

Owner

  • Name: Nikita Krupenko
  • Email: krnekit@gmail.com

Resources

List here people who will be implied in this feature (packagers, QA, doc, ...)

Current status

  • Targeted release: Mageia 6
  • Last updated: 2025/05/09
  • Percentage of completion: 0%

Detailed Description

The feature can be implemented in a two ways:

  1. Use special name for subvolume used for boot, for example '@' (this is how it's done in Ubuntu). In this way, if one want to boot from different subvolume, it can be done by renaming @ to something else and new root subvolume to @.
  2. Set default subvolume on partition. This does not work with default GRUB2, as support for using default subvolume removed from it and requires special patches for GRUB2 (this is how it's done in SUSE).

The simplest solution is first one, as it requires at least installer to be able to create subvolume and install into it, instead of just using root directory of partition (i.e. /@/ instead of /) and add mount option to use this subvolume (i.e. subvol=@).

In fact, Mageia 5 can be installed on a subvolume, with some tricks and it works, even on partition placed into encrypted LVM.

Why it would be good for Mageia to include it

Because people can make a snapshot of working system and then rollback to it if something would broke.

Test case

  1. Install the system on a Btrfs subvolume.
  2. Create a snapshot of the current subvolume, used for foot filesystem.
  3. Check, if changing current subvolume for root fs is working and system can boot.

Software / Packages Dependencies

What could disrupt development of this new feature

Planning

Contingency

Release Notes

Documentation

Btrfs subvolumes doc

Related

Btrfs as default