Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#20077 - [grub2] mkconfig doesn't handle initrd-less kernels correctly
Attached to Project:
Arch Linux
Opened by Ayla Ounce (reacocard) - Monday, 05 July 2010, 05:05 GMT
Last edited by Ronald van Haren (pressh) - Tuesday, 03 May 2011, 14:00 GMT
Opened by Ayla Ounce (reacocard) - Monday, 05 July 2010, 05:05 GMT
Last edited by Ronald van Haren (pressh) - Tuesday, 03 May 2011, 14:00 GMT
|
DetailsDescription:
When using GRUB2's grub-mkconfig to generate a grub.cfg, all kernels in boot are detected and entries added for them, however all entries also get a Fallback entry, even if no fallback initrd exists (as is the case for my initrd-less custom kernel). mkconfig should check for the existence of the Fallback initrds, and not create entries for them if they do not exist. Additional info: * GRUB2 version 1.98-4 from [extra] Steps to reproduce: 1) Put a kernel image in /boot that does not have a corresponding fallback initrd image 2) Run grub-mkconfig 3) Observe that there is a Fallback entry for kernel image from step 1, though the image path referenced does not exist. |
This task depends upon
Closed by Ronald van Haren (pressh)
Tuesday, 03 May 2011, 14:00 GMT
Reason for closing: Fixed
Additional comments about closing: added your new patch in the upcoming version
Tuesday, 03 May 2011, 14:00 GMT
Reason for closing: Fixed
Additional comments about closing: added your new patch in the upcoming version
New patch is attached.
2 additional minor faults:
- 05_archtheme isn't needed anymore because the patch adds config options for the colors
- the patch is marked executable in git
The misuse of the version parameter of linux_entry() had some side effects. In the second patch I added the possibility to append text to the title and set the recovery parameter of Fallback to true because otherwise GRUB would save that entry as default if GRUB_SAVEDEFAULT is true.
Changes (oriented at Debian):
- removed enable/disable-efiemu (enabled for bios version by default)
- bin and sbin moved to /usr
- moved some binaries to platform dependant package and made packages conflicting each other
Is that ok?
GRUB_CONTRIB should have absolute path to work, relative paths confuses the build system.
Don't know about platform specific binaries. The only minor change require for platform specific binary is grub-install which is taken care by sed. I would prefer to keep binaries under grub2-common and as simple as possible isntead of keeping track of every platform specific binary.
Also you forgot about grub2-efi-x86_64. Otherwise the PKGBUILD looks ok but the changes look cosmetic and unnecessary to me.
- moved some binaries to platform dependant package and made packages conflicting each other
[/quote]
Big no. Many systems support both bios and uefi boot modes and some installer scripts rely on both not conflicting on each other. This was a deliberate choice i made when i wrote the PKGBUILDs, packages should co-exist. Some installers like archboot rely on that for the same reason. I personally use both grub2-bios and grub2-efi-x86_64 on my system. Installing the package does not automatically setup the bootloader (unlike in Debian/Ubuntu) so no problem in them co-existing in the same system.
As for /bin and /sbin, they should NOT move to /usr/bin and /usr/sbin. Please see http://www.pathname.com/fhs/pub/fhs-2.3.html
I don't really see the sense of putting binaries/scripts directly into /bin and /sbin while they rely on stuff that is under /usr/lib/grub.
I see, on 32 bit configure doesn't enable efiemu by default, so mine and your PKGBUILD do exacly the same.
Sure, but then the move should be the other way around as we try to follow the FHS. The libs should be moved to /lib.