Blame kernel-install-grubby.patch
|
Harald Hoyer |
4b90fc |
From e42573cfbcd3f47c6485d9b437b3e87c95662dbd 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 |
4b90fc |
src/kernel-install/kernel-install | 20 ++++++++++++++++++++
|
|
Harald Hoyer |
4b90fc |
1 file changed, 20 insertions(+)
|
|
Harald Hoyer |
2e2e24 |
|
|
Harald Hoyer |
2e2e24 |
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
|
|
Harald Hoyer |
4b90fc |
index fb2ee57..f576dfe 100644
|
|
Harald Hoyer |
2e2e24 |
--- a/src/kernel-install/kernel-install
|
|
Harald Hoyer |
2e2e24 |
+++ b/src/kernel-install/kernel-install
|
|
Harald Hoyer |
4b90fc |
@@ -19,6 +19,26 @@
|
|
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 |
4b90fc |
+ /sbin/new-kernel-pkg --package kernel --install "$2" || exit $?
|
|
Kay Sievers |
6657d7 |
+ /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --update "$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 |
|