-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it work specifically for the default btrfs structure
in SLE12-SP1, see #556 Basically this means: Recovery of btrfs snapshot subvolumes is still not possible. Only recovery of "normal" btrfs subvolumes is possible. On SLE12-SP1 the only exception is the btrfs snapshot subvolume that is mounted at '/' but that one is not recreated but instead it is created anew from scratch during the recovery installation with the default first btrfs snapper snapshot subvolume path "@/.snapshots/1/snapshot" by the SUSE tool "installation-helper --step 1". Other snapshots like "@/.snapshots/234/snapshot" are not recreated. Additionally for mounted btrfs subvolumes that have the 'no copy on write' attribute set those btrfs subvolumes are recreated with that attribute set. Some details: On SLE12-SP1 with default btrfs subvolumes what is mounted at '/' is a btrfs snapshot subvolume that is controlled by snapper so that snapper is needed in the recovery system. Snapper setup by the recovery system uses /usr/lib/snapper/installation-helper via "installation-helper --step 1" that creates a snapper config based on /etc/snapper/config-templates/default In SLE12-SP1 some btrfs subvolume directories (/var/lib/pgsql /var/lib/libvirt/images /var/lib/mariadb) have the "no copy on write (C)" file attribute set so that chattr is required in the recovery system and accordingly also lsattr is useful to have in the recovery system (but not strictly required). Therefore in /etc/rear/local.conf the following is needed: REQUIRED_PROGS=( "${REQUIRED_PROGS[@]}" snapper chattr lsattr ) COPY_AS_IS=( "${COPY_AS_IS[@]}" /usr/lib/snapper/installation-helper /etc/snapper/config-templates/default )
- Loading branch information
Showing
3 changed files
with
163 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters