From 2773382eb5e3611e5710deb2ca23f4cc993cc211 Mon Sep 17 00:00:00 2001 From: Antynea Date: Sun, 9 Aug 2015 17:42:56 +0200 Subject: [PATCH] error if /grub is in /boot/EFI --- 41_snapshots-btrfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index ac4d659..343b38b 100644 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -89,7 +89,7 @@ boot_dir() boot_dir="$gbgmp/$snap_dir_name/boot" [[ "$root_uuid" != "$boot_uuid" ]] && boot_dir="/boot" echo "$boot_dir" - boot_dir_real_path="$(make_system_path_relative_to_its_root "$boot_dir")" + if [ -d ${boot_dir} ]; then boot_dir_real_path="$(make_system_path_relative_to_its_root "$boot_dir")"; fi } @@ -206,7 +206,7 @@ list_kernels_initramfs() name_initramfs=("${list_initramfs[@]##*"/"}") # echo "initramfs = ${name_initramfs[*]}" # Create menu entries - snapshots_entry "${prefixentry}" "${snap_dir_name}" "${snap_date_time}" + # snapshots_entry "${prefixentry}" "${snap_dir_name}" "${snap_date_time}" done IFS=$oldIFS if [ $root_uuid = $boot_uuid ] ; then umount $gbgmp ; fi