Blame kernel-install-grubby.patch
|
Harald Hoyer |
fad8ba |
From b3fdcc4f9a1331950f462e6bf43daa718a59dfe5 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
2e2e24 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
2e2e24 |
Date: Wed, 13 Mar 2013 07:57:53 +0100
|
|
Harald Hoyer |
2e2e24 |
Subject: [PATCH] kernel-install: add fedora specific callouts to
|
|
Harald Hoyer |
2e2e24 |
new-kernel-pkg
|
|
Harald Hoyer |
2e2e24 |
|
|
Harald Hoyer |
2e2e24 |
---
|
|
Harald Hoyer |
2e2e24 |
src/kernel-install/kernel-install | 19 +++++++++++++++++++
|
|
Harald Hoyer |
2e2e24 |
1 file changed, 19 insertions(+)
|
|
Harald Hoyer |
2e2e24 |
|
|
Harald Hoyer |
2e2e24 |
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
|
|
Harald Hoyer |
fad8ba |
index fb2ee57..1b73def 100644
|
|
Harald Hoyer |
2e2e24 |
--- a/src/kernel-install/kernel-install
|
|
Harald Hoyer |
2e2e24 |
+++ b/src/kernel-install/kernel-install
|
|
Harald Hoyer |
fad8ba |
@@ -19,6 +19,25 @@
|
|
Harald Hoyer |
fad8ba |
# You should have received a copy of the GNU Lesser General Public License
|
|
Harald Hoyer |
fad8ba |
# along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
Harald Hoyer |
2e2e24 |
|
|
Harald Hoyer |
2e2e24 |
+if [[ -x /sbin/new-kernel-pkg ]]; then
|
|
Harald Hoyer |
fad8ba |
+ case "$1" in
|
|
Harald Hoyer |
2e2e24 |
+ add)
|
|
Harald Hoyer |
fad8ba |
+ /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install "$2" || exit $?
|
|
Harald Hoyer |
fad8ba |
+ /sbin/new-kernel-pkg --package kernel --rpmposttrans "$2" || exit $?
|
|
Harald Hoyer |
2e2e24 |
+ ;;
|
|
Harald Hoyer |
2e2e24 |
+ remove)
|
|
Harald Hoyer |
fad8ba |
+ /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove "$2" || exit $?
|
|
Harald Hoyer |
2e2e24 |
+ ;;
|
|
Harald Hoyer |
2e2e24 |
+ *)
|
|
Harald Hoyer |
2e2e24 |
+ ;;
|
|
Harald Hoyer |
2e2e24 |
+ esac
|
|
Harald Hoyer |
2e2e24 |
+
|
|
Harald Hoyer |
2e2e24 |
+ # exit, if we can't find a boot loader spec conforming setup
|
|
Harald Hoyer |
2e2e24 |
+ if ! [[ -d /boot/loader/entries || -L /boot/loader/entries ]]; then
|
|
Harald Hoyer |
2e2e24 |
+ exit 0
|
|
Harald Hoyer |
2e2e24 |
+ fi
|
|
Harald Hoyer |
2e2e24 |
+fi
|
|
Harald Hoyer |
2e2e24 |
+
|
|
Harald Hoyer |
fad8ba |
usage()
|
|
Harald Hoyer |
fad8ba |
{
|
|
Harald Hoyer |
fad8ba |
echo "Usage:" >&2
|
|
Harald Hoyer |
2e2e24 |
--
|
|
Harald Hoyer |
fad8ba |
1.8.2.1
|
|
Harald Hoyer |
2e2e24 |
|