From 5e0951d8cbcbdf5bdbc64ef63a299ffecca55f84 Mon Sep 17 00:00:00 2001 From: Antynea Date: Sat, 29 Aug 2015 23:17:03 +0200 Subject: [PATCH] Fixme : broken $boot_dir_real_path Fixme : broken $boot_dir_real_path --- 41_snapshots-btrfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index 5943cc2..ea85f3d 100644 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -90,7 +90,6 @@ boot_dir() boot_dir="$gbgmp/$snap_dir_name/boot" [[ "$root_uuid" != "$boot_uuid" ]] && boot_dir="/boot" echo "$boot_dir" - if [ -d ${boot_dir} ]; then boot_dir_real_path="$(make_system_path_relative_to_its_root "$boot_dir")"; fi } @@ -202,6 +201,7 @@ list_kernels_initramfs() detect_initramfs name_initramfs=("${list_initramfs[@]##*"/"}") # echo "initramfs = ${name_initramfs[*]}" + if [ -d ${boot_dir} ]; then boot_dir_real_path="$(make_system_path_relative_to_its_root "$(boot_dir)")"; fi # Create menu entries snapshots_entry "${prefixentry}" "${snap_dir_name}" "${snap_date_time}" done @@ -220,4 +220,4 @@ if [ ${choise_of_method} = "1" ] ; then umount $gbgmp gettext_printf "###### - Grub-btrfs: Auto-detect - ######\n" >&2 ; fi -### End choice of method ### \ No newline at end of file +### End choice of method ###