Blame 0016-dracut.sh-check-the-value-of-kver.patch
|
Harald Hoyer |
f8c4a0 |
From aacdba2bdb3efddd7b3b9cdb149204d86f5020b0 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
f8c4a0 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
f8c4a0 |
Date: Tue, 6 Aug 2013 16:56:42 +0200
|
|
Harald Hoyer |
f8c4a0 |
Subject: [PATCH] dracut.sh: check the value of --kver
|
|
Harald Hoyer |
f8c4a0 |
|
|
Harald Hoyer |
f8c4a0 |
https://bugzilla.redhat.com/show_bug.cgi?id=993327
|
|
Harald Hoyer |
f8c4a0 |
---
|
|
Harald Hoyer |
f8c4a0 |
dracut.sh | 5 +++++
|
|
Harald Hoyer |
f8c4a0 |
1 file changed, 5 insertions(+)
|
|
Harald Hoyer |
f8c4a0 |
|
|
Harald Hoyer |
f8c4a0 |
diff --git a/dracut.sh b/dracut.sh
|
|
Harald Hoyer |
f8c4a0 |
index 4ef71f3..0b674ae 100755
|
|
Harald Hoyer |
f8c4a0 |
--- a/dracut.sh
|
|
Harald Hoyer |
f8c4a0 |
+++ b/dracut.sh
|
|
Harald Hoyer |
f8c4a0 |
@@ -478,6 +478,11 @@ if [[ $regenerate_all == "yes" ]]; then
|
|
Harald Hoyer |
f8c4a0 |
((ret+=$?))
|
|
Harald Hoyer |
f8c4a0 |
done
|
|
Harald Hoyer |
f8c4a0 |
exit $ret
|
|
Harald Hoyer |
f8c4a0 |
+elif [[ $kernel ]]; then
|
|
Harald Hoyer |
f8c4a0 |
+ if ! [[ -d /lib/modules/$kernel ]] && [[ $no_kernel != yes ]]; then
|
|
Harald Hoyer |
f8c4a0 |
+ printf -- "Kernel version $kernel has no modules in /lib/modules/$kernel\n" >&2
|
|
Harald Hoyer |
f8c4a0 |
+ exit 1
|
|
Harald Hoyer |
f8c4a0 |
+ fi
|
|
Harald Hoyer |
f8c4a0 |
fi
|
|
Harald Hoyer |
f8c4a0 |
|
|
Harald Hoyer |
f8c4a0 |
if ! [[ $kernel ]]; then
|