systemd-203-2
- forward port kernel-install-grubby.patch
This commit is contained in:
parent
0a9dd92e96
commit
fad8badc77
@ -1,4 +1,4 @@
|
|||||||
From 5150a366a4771a2a498d4e062482728d1dce94dd Mon Sep 17 00:00:00 2001
|
From b3fdcc4f9a1331950f462e6bf43daa718a59dfe5 Mon Sep 17 00:00:00 2001
|
||||||
From: Harald Hoyer <harald@redhat.com>
|
From: Harald Hoyer <harald@redhat.com>
|
||||||
Date: Wed, 13 Mar 2013 07:57:53 +0100
|
Date: Wed, 13 Mar 2013 07:57:53 +0100
|
||||||
Subject: [PATCH] kernel-install: add fedora specific callouts to
|
Subject: [PATCH] kernel-install: add fedora specific callouts to
|
||||||
@ -9,21 +9,21 @@ Subject: [PATCH] kernel-install: add fedora specific callouts to
|
|||||||
1 file changed, 19 insertions(+)
|
1 file changed, 19 insertions(+)
|
||||||
|
|
||||||
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
|
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install
|
||||||
index 16c06e0..cf9829e 100644
|
index fb2ee57..1b73def 100644
|
||||||
--- a/src/kernel-install/kernel-install
|
--- a/src/kernel-install/kernel-install
|
||||||
+++ b/src/kernel-install/kernel-install
|
+++ b/src/kernel-install/kernel-install
|
||||||
@@ -25,6 +25,25 @@ COMMAND="$1"
|
@@ -19,6 +19,25 @@
|
||||||
KERNEL_VERSION="$2"
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
KERNEL_IMAGE="$3"
|
# along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
+if [[ -x /sbin/new-kernel-pkg ]]; then
|
+if [[ -x /sbin/new-kernel-pkg ]]; then
|
||||||
+ case "$COMMAND" in
|
+ case "$1" in
|
||||||
+ add)
|
+ add)
|
||||||
+ /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install "$KERNEL_VERSION" || exit $?
|
+ /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install "$2" || exit $?
|
||||||
+ /sbin/new-kernel-pkg --package kernel --rpmposttrans "$KERNEL_VERSION" || exit $?
|
+ /sbin/new-kernel-pkg --package kernel --rpmposttrans "$2" || exit $?
|
||||||
+ ;;
|
+ ;;
|
||||||
+ remove)
|
+ remove)
|
||||||
+ /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove "$KERNEL_VERSION" || exit $?
|
+ /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove "$2" || exit $?
|
||||||
+ ;;
|
+ ;;
|
||||||
+ *)
|
+ *)
|
||||||
+ ;;
|
+ ;;
|
||||||
@ -35,9 +35,9 @@ index 16c06e0..cf9829e 100644
|
|||||||
+ fi
|
+ fi
|
||||||
+fi
|
+fi
|
||||||
+
|
+
|
||||||
[[ -f /etc/os-release ]] && . /etc/os-release
|
usage()
|
||||||
if ! [[ $ID ]]; then
|
{
|
||||||
echo "Can't determine the name of your distribution. Please create /etc/os-release." >&2
|
echo "Usage:" >&2
|
||||||
--
|
--
|
||||||
1.8.1
|
1.8.2.1
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
Name: systemd
|
Name: systemd
|
||||||
Url: http://www.freedesktop.org/wiki/Software/systemd
|
Url: http://www.freedesktop.org/wiki/Software/systemd
|
||||||
Version: 203
|
Version: 203
|
||||||
Release: 1%{?gitcommit:.git%{gitcommit}}%{?dist}
|
Release: 2%{?gitcommit:.git%{gitcommit}}%{?dist}
|
||||||
# For a breakdown of the licensing, see README
|
# For a breakdown of the licensing, see README
|
||||||
License: LGPLv2+ and MIT and GPLv2+
|
License: LGPLv2+ and MIT and GPLv2+
|
||||||
Summary: A System and Service Manager
|
Summary: A System and Service Manager
|
||||||
@ -35,7 +35,7 @@ Source4: listen.conf
|
|||||||
Source6: yum-protect-systemd.conf
|
Source6: yum-protect-systemd.conf
|
||||||
|
|
||||||
# kernel-install patch for grubby, drop if grubby is obsolete
|
# kernel-install patch for grubby, drop if grubby is obsolete
|
||||||
# Patch1000: kernel-install-grubby.patch
|
Patch1000: kernel-install-grubby.patch
|
||||||
|
|
||||||
%global num_patches %{lua: c=0; for i,p in ipairs(patches) do c=c+1; end; print(c);}
|
%global num_patches %{lua: c=0; for i,p in ipairs(patches) do c=c+1; end; print(c);}
|
||||||
|
|
||||||
@ -753,6 +753,9 @@ fi
|
|||||||
%{_libdir}/pkgconfig/gudev-1.0*
|
%{_libdir}/pkgconfig/gudev-1.0*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 07 2013 Harald Hoyer <harald@redhat.com> 203-2
|
||||||
|
- forward port kernel-install-grubby.patch
|
||||||
|
|
||||||
* Tue May 7 2013 Lennart Poettering <lpoetter@redhat.com> - 203-1
|
* Tue May 7 2013 Lennart Poettering <lpoetter@redhat.com> - 203-1
|
||||||
- New upstream release
|
- New upstream release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user