kernel-install: restorecon the files copied to /boot

This commit is contained in:
Harald Hoyer 2015-10-08 16:13:16 +02:00
parent 456eac18c7
commit d4f2656784

View File

@ -1,21 +1,21 @@
From 0256bbe384f243dbbcfbe87200c9d8613a992ecb Mon Sep 17 00:00:00 2001 From 0762c0681b00288ef2735a31c6d2478e45f0532c Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com> From: Harald Hoyer <harald@redhat.com>
Date: Tue, 14 Jan 2014 17:48:08 -0500 Date: Tue, 14 Jan 2014 17:48:08 -0500
Subject: [PATCH] kernel-install: add fedora specific callouts to Subject: [PATCH] kernel-install: add fedora specific callouts to
new-kernel-pkg new-kernel-pkg
--- ---
src/kernel-install/kernel-install | 36 ++++++++++++++++++++++++++++++++++++ src/kernel-install/kernel-install | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+) 1 file changed, 38 insertions(+)
mode change 100644 => 100755 src/kernel-install/kernel-install mode change 100644 => 100755 src/kernel-install/kernel-install
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
old mode 100644 old mode 100644
new mode 100755 new mode 100755
index 3ae1d77..f1c74de index 3ae1d77..5925329
--- a/src/kernel-install/kernel-install --- a/src/kernel-install/kernel-install
+++ b/src/kernel-install/kernel-install +++ b/src/kernel-install/kernel-install
@@ -71,6 +71,42 @@ fi @@ -71,6 +71,44 @@ fi
KERNEL_VERSION="$1" KERNEL_VERSION="$1"
KERNEL_IMAGE="$2" KERNEL_IMAGE="$2"
@ -32,6 +32,8 @@ index 3ae1d77..f1c74de
+ ; do + ; do
+ [[ -e "$i" ]] || continue + [[ -e "$i" ]] || continue
+ cp -a "$i" "/boot/${i##*/}-${KERNEL_VERSION}" + cp -a "$i" "/boot/${i##*/}-${KERNEL_VERSION}"
+ command -v restorecon &>/dev/null && \
+ restorecon "/boot/${i##*/}-${KERNEL_VERSION}"
+ done + done
+ fi + fi
+ +
@ -59,5 +61,5 @@ index 3ae1d77..f1c74de
read MACHINE_ID < /etc/machine-id read MACHINE_ID < /etc/machine-id
fi fi
-- --
2.0.4 2.6.0