[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #44199] grub2-mkconfig: /usr/share/grub/grub-mkconfig_lib: line 56:

From: Ilya Tumaykin
Subject: [bug #44199] grub2-mkconfig: /usr/share/grub/grub-mkconfig_lib: line 56: 26488 Segmentation fault "${grub_probe}" -t fs "$path"
Date: Sat, 07 Feb 2015 01:37:28 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0


                 Summary: grub2-mkconfig: /usr/share/grub/grub-mkconfig_lib:
line 56: 26488 Segmentation fault "${grub_probe}" -t fs "$path"
                 Project: GNU GRUB
            Submitted by: coacher
            Submitted on: Sat 07 Feb 2015 04:37:27 MSK
                Category: None
                Severity: Major
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Git master
         Reproducibility: None
         Planned Release: None




Recently I've updated my live version of grub2 and now I have the following
messages printed on every grub2-mkconfig invocation:

Generating grub configuration file ...
/usr/share/grub/grub-mkconfig_lib: line 56: 26488 Segmentation fault     
"${grub_probe}" -t fs "$path" > /dev/null 2>&1
/usr/share/grub/grub-mkconfig_lib: line 56: 26496 Segmentation fault     
"${grub_probe}" -t fs "$path" > /dev/null 2>&1
/usr/share/grub/grub-mkconfig_lib: line 56: 26515 Segmentation fault     
"${grub_probe}" -t fs "$path" > /dev/null 2>&1
/usr/share/grub/grub-mkconfig_lib: line 56: 26530 Segmentation fault     
"${grub_probe}" -t fs "$path" > /dev/null 2>&1

These are followed by messages about found kernel and initrd images and
finished by 'done'.

The problem is missing backticks around 'if' condition on line 65 in
util/grub-mkconfig_lib.in file (HEAD is


diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in
index 29ef865..7a70f64 100644
--- a/util/grub-mkconfig_lib.in
+++ b/util/grub-mkconfig_lib.in
@@ -62,7 +62,7 @@ is_path_readable_by_grub ()

   # abort if file is in a filesystem we can't read
-  if "${grub_probe}" -t fs "$path" > /dev/null 2>&1 ; then : ; else
+  if "`"${grub_probe}" -t fs "$path" > /dev/null 2>&1`" ; then : ; else
     return 1


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]