From 9c2b9cab09223df4cd90e996b10261cc57e379f4 Mon Sep 17 00:00:00 2001 From: MichaIng <28480705+MichaIng@users.noreply.github.com> Date: Fri, 14 Jun 2019 15:51:06 +0200 Subject: [PATCH] v6.25 + DietPi-Drive_Manager | BTRFS support is not natively built into the kernel on RPi and Odroid: https://github.com/MichaIng/DietPi/issues/2909 --- dietpi/dietpi-drive_manager | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dietpi/dietpi-drive_manager b/dietpi/dietpi-drive_manager index 07f66b239f..b951ef82f4 100644 --- a/dietpi/dietpi-drive_manager +++ b/dietpi/dietpi-drive_manager @@ -1367,10 +1367,16 @@ Please enter the desired percentage of reserved blocks, e.g. "0.05" for 0.05% or # Transfer RootFS elif [[ $G_WHIP_RETURNED_VALUE == 'Transfer RootFS' ]]; then + # - Kernel lacks native BTRFS support (enabled as module): https://github.com/MichaIng/DietPi/issues/2909 + if [[ ${aDRIVE_FSTYPE[$MENU_DRIVE_INDEX]} == 'btrfs' ]]; then + + G_WHIP_MSG "[WARNING] Booting from ${aDRIVE_FSTYPE[$MENU_DRIVE_INDEX]} is not supported by this device.\n +We recommend "\ext4\" as filesystem type for the RootFS." + # - User must unmount partition before format - if (( ${aDRIVE_ISMOUNTED[$MENU_DRIVE_INDEX]} )); then + elif (( ${aDRIVE_ISMOUNTED[$MENU_DRIVE_INDEX]} )); then - G_WHIP_MSG 'Partition must be unmounted, before format and RootFS transfer can begin.\n\nPlease unmount the partition, then try again.' + G_WHIP_MSG '[WARNING] Partition must be unmounted, before format and RootFS transfer can begin.\n\nPlease unmount the partition, then try again.' else