Red Hat Bugzilla – Bug 711493
Multiple syntax errors in /sbin/new-kernel-pkg
Last modified: 2011-06-07 14:35:15 EDT
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):
Steps to Reproduce:
1. yum remove kernel-3.0-0.rc1.git0.1.fc16.x86_64
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.