projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ae3361
)
dracut.sh: check the value of --kver
author
Harald Hoyer
<harald@redhat.com>
Tue, 6 Aug 2013 14:56:42 +0000
(16:56 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 7 Aug 2013 08:33:15 +0000
(10:33 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=993327
dracut.sh
patch
|
blob
|
history
diff --git
a/dracut.sh
b/dracut.sh
index
4ef71f3
..
0b674ae
100755
(executable)
--- a/
dracut.sh
+++ b/
dracut.sh
@@
-478,6
+478,11
@@
if [[ $regenerate_all == "yes" ]]; then
((ret+=$?))
done
exit $ret
+elif [[ $kernel ]]; then
+ if ! [[ -d /lib/modules/$kernel ]] && [[ $no_kernel != yes ]]; then
+ printf -- "Kernel version $kernel has no modules in /lib/modules/$kernel\n" >&2
+ exit 1
+ fi
fi
if ! [[ $kernel ]]; then