Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 521340 Details for
Bug 735259
after updating grub2, booting drops me to grub rescue prompt
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix upgrades from grub2 < 1.99-4
0001-Fix-upgrades-from-grub2-1.99-4-735259.patch (text/plain), 2.48 KB, created by
Kalev Lember
on 2011-09-03 19:09:50 UTC
(
hide
)
Description:
Patch to fix upgrades from grub2 < 1.99-4
Filename:
MIME Type:
Creator:
Kalev Lember
Created:
2011-09-03 19:09:50 UTC
Size:
2.48 KB
patch
obsolete
>From eb5089f407d5f9d2f92b3822901c5d0cbe5c16c7 Mon Sep 17 00:00:00 2001 >From: Kalev Lember <kalevlember@gmail.com> >Date: Sat, 3 Sep 2011 21:11:08 +0300 >Subject: [PATCH] Fix upgrades from grub2 < 1.99-4 (#735259) > >grub2 versions older than 1.99-4 had the following in %preun: > # XXX Ugly > rm -f /boot/%{name}/*.mod > rm -f /boot/%{name}/*.img > rm -f /boot/%{name}/*.lst > rm -f /boot/%{name}/device.map > >This change tries to work around the damage caused on upgrades, by first >backuping the files and later restoring them after the old packages's >%preun has been run. > >Complements the change in 5c9195d. > >https://bugzilla.redhat.com/show_bug.cgi?id=735259 >--- > grub2.spec | 29 ++++++++++++++++++++++++++++- > 1 files changed, 28 insertions(+), 1 deletions(-) > >diff --git a/grub2.spec b/grub2.spec >index de1924e..3c9629e 100644 >--- a/grub2.spec >+++ b/grub2.spec >@@ -18,7 +18,7 @@ > Name: grub2 > Epoch: 1 > Version: 1.99 >-Release: 4%{?dist} >+Release: 5%{?dist} > Summary: Bootloader with support for Linux, Multiboot and more > > Group: System Environment/Base >@@ -222,6 +222,30 @@ if [ "$1" = 1 ]; then > /sbin/install-info --info-dir=%{_infodir} %{_infodir}/grub2-dev.info.gz || : > fi > >+# grub2 < 1.99-4 removed a number of essential files in postun. To fix upgrades >+# from the affected grub2 packages, we first back up the files in triggerun and >+# later restore them in triggerpostun. >+# https://bugzilla.redhat.com/show_bug.cgi?id=735259 >+%triggerun -- grub2 < 1:1.99-4 >+# Back up the files before uninstalling old grub2 >+mkdir -p /boot/grub2.tmp && >+cp -a /boot/grub2/*.mod \ >+ /boot/grub2/*.img \ >+ /boot/grub2/*.lst \ >+ /boot/grub2/device.map \ >+ /boot/grub2.tmp/ || : >+ >+%triggerpostun -- grub2 < 1:1.99-4 >+# ... and restore the files. >+test ! -f /boot/grub2/device.map && >+test -d /boot/grub2.tmp && >+mv -f /boot/grub2.tmp/*.mod \ >+ /boot/grub2.tmp/*.img \ >+ /boot/grub2.tmp/*.lst \ >+ /boot/grub2.tmp/device.map \ >+ /boot/grub2/ && >+rm -r /boot/grub2.tmp/ || : >+ > %preun > if [ "$1" = 0 ]; then > /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/grub2.info.gz || : >@@ -328,6 +352,9 @@ fi > %endif > > %changelog >+* Sat Sep 03 2011 Kalev Lember <kalevlember@gmail.com> - 1.99-5 >+- Fix upgrades from grub2 < 1.99-4 (#735259) >+ > * Fri Sep 02 2011 Peter Jones <pjones@redhat.com> - 1.99-4 > - Don't do sysadminny things in %preun or %post ever. (#735259) > - Actually include the changelog in this build (sorry about -3) >-- >1.7.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 735259
:
521130
| 521340