mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
Skip setup the snapshots app if the filesystem type is btrfs but / is not a btrfs subvolume. For example, this may happen in containers where / is a bind mounted btrfs filesystem. Closes #1994 Tests performed: - Install freedombox on a lxc container inside Pioneer-FreedomBox. (In a container, / is a bind mounted btrfs filesystem). The snapshot app setup is skipped. - Install freedombox inside dev container (which uses btrfs filesystem image). The snapshot app setup succeeds. - Install freedombox inside container that uses a host directory as a base and the filesystem is ext4. The snapshot app setup is skipped. Signed-off-by: Veiko Aasa <veiko17@disroot.org> [sunil: Add comment explaining the check, fix a flake8 message] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>