Bug 711493 - Multiple syntax errors in /sbin/new-kernel-pkg
Summary: Multiple syntax errors in /sbin/new-kernel-pkg
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: grubby
Version: rawhide
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-07 16:05 UTC by Jerry James
Modified: 2011-06-07 18:35 UTC (History)
2 users (show)

Fixed In Version: grubby-7.0.18-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-07 18:35:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2011-06-07 16:05:58 UTC
Description of problem:
I am unable to yum remove a broken kernel on my rawhide machine, because the %preun scriptlet fails due to multiple syntax errors in /sbin/new-kernel-pkg.

First, the shebang at the top is broken.  The first character in the file is 'u', instead of '#'.  Second, on line 111, there is a missing "then" token after the semicolon.  Third, there should be no parentheses after "run_grub2" on lines 149, 220, and 272.

Version-Release number of selected component (if applicable):
grubby-7.0.17-1.fc16.x86_64
grubby-7.0.17-1.fc16.i686

How reproducible:
Always

Steps to Reproduce:
1. yum remove kernel-3.0-0.rc1.git0.1.fc16.x86_64
2.
3.
  
Actual results:
The package is not removed due to errors in the PREUN scriptlet.  Running the script by hand reveals the problem to be the syntax errors noted above.

Expected results:
Package removal.

Additional info:


Note You need to log in before you can comment on or make changes to this bug.