git.annexia.org
/
febootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37176e5
)
supermin: Die with an error if $kernels is empty (RHBZ#539746).
author
Richard Jones
<rjones@redhat.com>
Tue, 24 Nov 2009 18:15:44 +0000
(18:15 +0000)
committer
Richard Jones
<rjones@redhat.com>
Tue, 24 Nov 2009 18:15:44 +0000
(18:15 +0000)
febootstrap-supermin-helper.sh
patch
|
blob
|
history
diff --git
a/febootstrap-supermin-helper.sh
b/febootstrap-supermin-helper.sh
index
8c708b5
..
d11d82a
100755
(executable)
--- a/
febootstrap-supermin-helper.sh
+++ b/
febootstrap-supermin-helper.sh
@@
-82,6
+82,12
@@
rm -f "$kernel" "$initrd"
arch=$(echo "@host_cpu@" | sed 's/^i.86$/i?86/')
kernels=$(ls -1vr /boot/vmlinuz-*.$arch* 2>/dev/null | grep -v xen; ls -1vr /boot/vmlinuz-* 2>/dev/null | grep -v xen)
+
+if [ -z "$kernels" ]; then
+ echo "$0: failed to find a suitable kernel" >&2
+ exit 1
+fi
+
for f in $kernels; do
b=$(basename "$f")
b=$(echo "$b" | sed 's,vmlinuz-,,')