kernel-install: if a plugin fails, return error immediately
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 26 May 2022 18:56:12 +0000 (20:56 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 26 May 2022 19:46:58 +0000 (21:46 +0200)
commit5aa285b437d14c809649beaa2b47341b0de4a67d
tree21be0ee09ff7fb91b5a5426dab90c142b7bd9989
parent97e7d4945dbf8140b89a92212bcfb8c80c01dd47
kernel-install: if a plugin fails, return error immediately

Since the first version in 81516adcb71a47837544340f72eb8ee810274119,
kernel-install would "gather" a return value by summing the exit codes
of the plugins… This makes no sense, because those are not additive values.

Let's just break off immediately. We now implement cleanup via trap, so if we
break, we should leave no garbage behind.
src/kernel-install/kernel-install.in