From 73a2bd3d32f6819ab8af37a18cc83ef89bf6b192 Mon Sep 17 00:00:00 2001 From: Antynea Date: Thu, 22 Nov 2018 08:39:08 +0100 Subject: [PATCH] Enhanced btrfs raid 0 detection (#59) Fix #58 - grub-probe should work properly with btrfs raid 0 --- 41_snapshots-btrfs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index bc71fce..255fe0b 100755 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -98,18 +98,18 @@ export TEXTDOMAIN=grub-btrfs-git export TEXTDOMAINDIR="/usr/share/locale" ## Probe info "Boot partition" # Boot device -boot_device=$(${grub_probe} --target=device "/boot") +boot_device=$(${grub_probe} --target=device /boot) # hints string -boot_hs=$(${grub_probe} --device "${boot_device}" --target="hints_string" 2>/dev/null) +boot_hs=$(${grub_probe} --device ${boot_device} --target="hints_string" 2>/dev/null) # UUID of the boot partition -boot_uuid=$(${grub_probe} --device "${boot_device}" --target="fs_uuid" 2>/dev/null) +boot_uuid=$(${grub_probe} --device ${boot_device} --target="fs_uuid" 2>/dev/null) # Type filesystem of boot partition -boot_fs=$(${grub_probe} --target="fs" "/boot" 2>/dev/null) +boot_fs=$(${grub_probe} --target="fs" /boot 2>/dev/null) ## Probe info "Root partition" # Root device -root_device=$(${grub_probe} --target=device "/") +root_device=$(${grub_probe} --target=device /) # UUID of the root partition -root_uuid=$(${grub_probe} --device "${root_device}" --target="fs_uuid" 2>/dev/null) +root_uuid=$(${grub_probe} --device ${root_device} --target="fs_uuid" 2>/dev/null) ## Parameters passed to the kernel kernel_parameters="$GRUB_CMDLINE_LINUX $GRUB_CMDLINE_LINUX_DEFAULT" ## Mount point location