Fix "syntax error near unexpected token `done'" ... /bin/kernel-install: line 95: syntax error near unexpected token `done' /bin/kernel-install: line 95: ` done' warning: %posttrans(kernel-core-4.3.0-1.fc24.x86_64) scriptlet failed, exit status 2 Non-fatal POSTTRANS scriptlet failure in rpm package kernel-core-4.3.0-1.fc24.x86_64 /bin/kernel-install: line 95: syntax error near unexpected token `done' /bin/kernel-install: line 95: ` done' warning: %posttrans(kernel-debug-core-4.3.0-1.fc24.x86_64) scriptlet failed, exit status 2 Non-fatal POSTTRANS scriptlet failure in rpm package kernel-debug-core-4.3.0-1.fc24.x86_64 ... --- kernel-install-grubby.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel-install-grubby.patch b/kernel-install-grubby.patch index 1326a59..3069db0 100644 --- a/kernel-install-grubby.patch +++ b/kernel-install-grubby.patch @@ -40,7 +40,7 @@ index 3ae1d77..5c1e4fc + cp -a "$i" "/boot/.${KERNEL_IMAGE##*/}-${KERNEL_VERSION}.hmac" + command -v restorecon &>/dev/null && \ + restorecon "/boot/.${KERNEL_IMAGE##*/}-${KERNEL_VERSION}.hmac" -+ done ++ fi + fi + + [[ "$KERNEL_VERSION" == *\+* ]] && flavor=-"${KERNEL_VERSION##*+}" -- 2.6.2
What file have you actually patched? In what package? There is no such code in kernel-install in Rawhide.
(In reply to Jan Synacek from comment #1) > What file have you actually patched? In what package? There is no such code > in kernel-install in Rawhide. http://pkgs.fedoraproject.org/cgit/systemd.git/tree/kernel-install-grubby.patch#n43
*** Bug 1277661 has been marked as a duplicate of this bug. ***
Information for package systemd http://koji.fedoraproject.org/koji/packageinfo?packageID=10477 "Fixed In Version: systemd-227-3.fc24" Where is this version?
BTW mister Hoyer, why dont you fix this, it came with your commit http://pkgs.fedoraproject.org/cgit/systemd.git/commit/?id=f6039fa
It seem that I didn't actually build the package. Building now.