btrfs detection moved to toml

Co-authored-by: Nyx <nnyyxxxx@protonmail.com>
This commit is contained in:
leventbesli 2024-10-06 15:09:17 +03:00 committed by GitHub
parent 067dd54f63
commit 85588c6a10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,16 +5,6 @@
# This script automates the installation and root and homesnapshot configuration of Snapper and installs Grub-Btrfs on Fedora.
# Also installs python3-dnf-plugin-snapper package for automatic snapshots after dnf commands.
# Check the root filesystem type
checkFs() {
fs_type=$(findmnt -n -o FSTYPE /)
if [ "$fs_type" != "btrfs" ]; then
printf "%b\n" "${RED}This operation can only be performed on a Btrfs filesystem.${RC}"
exit 1
fi
printf "%b\n" "${GREEN}Btrfs filesystem detected. Continuing with the operation...${RC}"
}
# Install Btrfs-Assistant/snapper and dependencies
installBtrfsStack() {
if ! command_exists btrfs-assistant; then