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 (from parent 1:
a1c6fbd
)
supermin: Improve error message and add -d option to ls command.
author
Richard Jones
<rjones@redhat.com>
Wed, 25 Nov 2009 10:22:06 +0000
(10:22 +0000)
committer
Richard Jones
<rjones@redhat.com>
Wed, 25 Nov 2009 10:22:06 +0000
(10:22 +0000)
febootstrap-supermin-helper.sh
patch
|
blob
|
history
diff --git
a/febootstrap-supermin-helper.sh
b/febootstrap-supermin-helper.sh
index
d11d82a
..
0849b1f
100755
(executable)
--- a/
febootstrap-supermin-helper.sh
+++ b/
febootstrap-supermin-helper.sh
@@
-81,10
+81,10
@@
rm -f "$kernel" "$initrd"
# without arch second.
arch=$(echo "@host_cpu@" | sed 's/^i.86$/i?86/')
# without arch second.
arch=$(echo "@host_cpu@" | sed 's/^i.86$/i?86/')
-kernels=$(ls -1
vr /boot/vmlinuz-*.$arch* 2>/dev/null | grep -v xen; ls -1
vr /boot/vmlinuz-* 2>/dev/null | grep -v xen)
+kernels=$(ls -1
dvr /boot/vmlinuz-*.$arch* 2>/dev/null | grep -v xen; ls -1d
vr /boot/vmlinuz-* 2>/dev/null | grep -v xen)
if [ -z "$kernels" ]; then
if [ -z "$kernels" ]; then
- echo "$0: failed to find a suitable kernel" >&2
+ echo "$0: failed to find a suitable kernel
in /boot directory
" >&2
exit 1
fi
exit 1
fi