Bug 711493

Summary: Multiple syntax errors in /sbin/new-kernel-pkg
Product: [Fedora] Fedora Reporter: Jerry James <loganjerry>
Component: grubbyAssignee: Brian Lane <bcl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: bcl, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: grubby-7.0.18-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-07 18:35:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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: