| Summary: | memtest86+ script in /etc/grub.d error after grub2 update | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Daniel Belton <danielbelton> |
| Component: | memtest86+ | Assignee: | Jaroslav Škarvada <jskarvad> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | artur, jskarvad |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | memtest86+-4.20-6.fc17 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-29 04:12:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Thanks memtest86+-4.20-6.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/memtest86+-4.20-6.fc17 Package memtest86+-4.20-6.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing memtest86+-4.20-6.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-4808/memtest86+-4.20-6.fc17 then log in and leave karma (feedback). memtest86+-4.20-6.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. I had the same problem after updating my FC16 sytem to FC17 yesterday. I guess preupgrade already used this new memtest86+-4.20-6.fc17. I solved the problem by uninstalling and installing again memtest86+. |
Description of problem: The 20_memtest86+ script in /etc/grub.d/ now generates an error when grub2-mkconfig -o /boot/grub2/grub.cfg is run. Version-Release number of selected component (if applicable): memtest86+ 4.20-5 FC17 How reproducible: run grub2-mkconfig -0 /boot/grub2/grub.cfg Steps to Reproduce: 1. update grub2 to latest in repository 2. run grub2-mkconfig -o /boot/grub2/grub.cfg 3. Actual results: [root@tower20 default]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.3.0-1.fc17.x86_64 Found initrd image: /boot/initramfs-3.3.0-1.fc17.x86_64.img Found linux image: /boot/vmlinuz-3.3.0-0.rc7.git0.3.fc17.x86_64 Found initrd image: /boot/initramfs-3.3.0-0.rc7.git0.3.fc17.x86_64.img Found linux image: /boot/vmlinuz-3.3.0-0.rc6.git0.2.fc17.x86_64 Found initrd image: /boot/initramfs-3.3.0-0.rc6.git0.2.fc17.x86_64.img Found linux image: /boot/vmlinuz-3.3.0-0.rc5.git3.1.fc17.x86_64 Found initrd image: /boot/initramfs-3.3.0-0.rc5.git3.1.fc17.x86_64.img /etc/grub.d/20_memtest86+: line 24: /usr/lib/grub/grub-mkconfig_lib: No such file or directory Expected results: For the grub.cfg to be generated with the memtest86+ menu entry. Additional info: The 20_memtest86+ script in /boot/grub.d contains these lines at the beginning: prefix=/usr exec_prefix=/usr bindir=/usr/bin libdir=/usr/lib . ${libdir}/grub/grub-mkconfig_lib It appears that a grub2 update has move the grub-mkconfig_lib to /usr/share/grub/grub-mkconfig_lib A simple edit to the /etc/grub.d/20_memtest86+ script fixes the error here. Change the libdir line to point to /usr/share instead of /usr/lib: prefix=/usr exec_prefix=/usr bindir=/usr/bin libdir=/usr/share . ${libdir}/grub/grub-mkconfig_lib Output after change: [root@tower20 grub.d]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.3.0-1.fc17.x86_64 Found initrd image: /boot/initramfs-3.3.0-1.fc17.x86_64.img Found linux image: /boot/vmlinuz-3.3.0-0.rc7.git0.3.fc17.x86_64 Found initrd image: /boot/initramfs-3.3.0-0.rc7.git0.3.fc17.x86_64.img Found linux image: /boot/vmlinuz-3.3.0-0.rc6.git0.2.fc17.x86_64 Found initrd image: /boot/initramfs-3.3.0-0.rc6.git0.2.fc17.x86_64.img Found linux image: /boot/vmlinuz-3.3.0-0.rc5.git3.1.fc17.x86_64 Found initrd image: /boot/initramfs-3.3.0-0.rc5.git3.1.fc17.x86_64.img Found memtest image: /boot/elf-memtest86+-4.20 No volume groups found Found Windows 7 (loader) on /dev/sda1 done