bug-grub
[Top][All Lists]
Advanced

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

[bug #30364] grub-mkconfig(/etc/grub.d/10_linux) ignores builtin initrds


From: Dennis Schridde
Subject: [bug #30364] grub-mkconfig(/etc/grub.d/10_linux) ignores builtin initrds
Date: Tue, 06 Jul 2010 06:24:59 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/4.4) KHTML/4.4.90 (like Gecko)

URL:
  <http://savannah.gnu.org/bugs/?30364>

                 Summary: grub-mkconfig(/etc/grub.d/10_linux) ignores builtin
initrds
                 Project: GNU GRUB
            Submitted by: devurandom
            Submitted on: Di 06 Jul 2010 06:24:58 GMT
                Category: Configuration
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: 1.98
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

When CONFIG_INITRAMFS_SOURCE is set, no seperate initrd is necessary.
grub-mkconfig from grub-1.98 (specifically /etc/grub.d/10_linux)
ignores this and assumes:
"""
# "UUID=" magic is parsed by initrds.  Since there's no initrd, it can't
work
here
"""

I propose following fix:
--- /etc/grub.d/10_linux.orig   2010-06-28 14:22:06.080669780 +0200
+++ /etc/grub.d/10_linux        2010-06-28 14:21:24.177670182 +0200
@@ -128,7 +128,7 @@
   done
   if test -n "${initrd}" ; then
     echo "Found initrd image: ${dirname}/${initrd}" >&2
-  else
+  elif ! grep "CONFIG_INITRAMFS_SOURCE=" /boot/config-${version} 2>
/dev/null
; then
     # "UUID=" magic is parsed by initrds.  Since there's no initrd, it
can't
work here.
     linux_root_device_thisversion=${GRUB_DEVICE}





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30364>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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