All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-selinux][PATCH] initscripts: use the 'i' option for restorecon command
@ 2017-06-22  2:17 Zhixiong Chi
  2017-07-05  6:38 ` Zhixiong Chi
  0 siblings, 1 reply; 2+ messages in thread
From: Zhixiong Chi @ 2017-06-22  2:17 UTC (permalink / raw)
  To: yocto

Use the 'i' option for restorecon command to ignore the files that
don't exist when building project.

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
---
 recipes-core/initscripts/initscripts_1.0.bbappend | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-core/initscripts/initscripts_1.0.bbappend b/recipes-core/initscripts/initscripts_1.0.bbappend
index f17cf07..0fc7a5e 100644
--- a/recipes-core/initscripts/initscripts_1.0.bbappend
+++ b/recipes-core/initscripts/initscripts_1.0.bbappend
@@ -5,9 +5,9 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 do_install_append () {
 	cat <<-EOF >> ${D}${sysconfdir}/init.d/populate-volatile.sh
 touch /var/log/lastlog
-test ! -x /sbin/restorecon || /sbin/restorecon -RF /var/volatile/ /var/lib /run \
+test ! -x /sbin/restorecon || /sbin/restorecon -iRF /var/volatile/ /var/lib /run \
     /etc/resolv.conf /etc/adjtime
 EOF
-	sed -i '/mount -n -o remount,$rootmode/i\test ! -x /sbin/restorecon || /sbin/restorecon -RF /run' \
+	sed -i '/mount -n -o remount,$rootmode/i\test ! -x /sbin/restorecon || /sbin/restorecon -iRF /run' \
 	    ${D}${sysconfdir}/init.d/checkroot.sh
 }
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-selinux][PATCH] initscripts: use the 'i' option for restorecon command
  2017-06-22  2:17 [meta-selinux][PATCH] initscripts: use the 'i' option for restorecon command Zhixiong Chi
@ 2017-07-05  6:38 ` Zhixiong Chi
  0 siblings, 0 replies; 2+ messages in thread
From: Zhixiong Chi @ 2017-07-05  6:38 UTC (permalink / raw)
  To: yocto

Ping...

On 2017年06月22日 10:17, Zhixiong Chi wrote:
> Use the 'i' option for restorecon command to ignore the files that
> don't exist when building project.
>
> Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
> ---
>   recipes-core/initscripts/initscripts_1.0.bbappend | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-core/initscripts/initscripts_1.0.bbappend b/recipes-core/initscripts/initscripts_1.0.bbappend
> index f17cf07..0fc7a5e 100644
> --- a/recipes-core/initscripts/initscripts_1.0.bbappend
> +++ b/recipes-core/initscripts/initscripts_1.0.bbappend
> @@ -5,9 +5,9 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>   do_install_append () {
>   	cat <<-EOF >> ${D}${sysconfdir}/init.d/populate-volatile.sh
>   touch /var/log/lastlog
> -test ! -x /sbin/restorecon || /sbin/restorecon -RF /var/volatile/ /var/lib /run \
> +test ! -x /sbin/restorecon || /sbin/restorecon -iRF /var/volatile/ /var/lib /run \
>       /etc/resolv.conf /etc/adjtime
>   EOF
> -	sed -i '/mount -n -o remount,$rootmode/i\test ! -x /sbin/restorecon || /sbin/restorecon -RF /run' \
> +	sed -i '/mount -n -o remount,$rootmode/i\test ! -x /sbin/restorecon || /sbin/restorecon -iRF /run' \
>   	    ${D}${sysconfdir}/init.d/checkroot.sh
>   }

-- 
---------------------
Thanks,
Zhixiong Chi
Tel: +86-10-8477-7036



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-05  6:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-22  2:17 [meta-selinux][PATCH] initscripts: use the 'i' option for restorecon command Zhixiong Chi
2017-07-05  6:38 ` Zhixiong Chi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.