From 501608db647086054cad32113fa1907ae9d8de28 Mon Sep 17 00:00:00 2001 From: "joon.c.baek" Date: Tue, 10 Jul 2018 15:52:57 +0900 Subject: Add condition and change options for tracefs To mount tracefs needs to check existed path, And add mount options in details. Change-Id: I9393c5629b8bf423d48ecec51fd4d99418d421cc Signed-off-by: joon.c.baek --- packaging/sys-kernel-debug-tracing.mount | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packaging/sys-kernel-debug-tracing.mount b/packaging/sys-kernel-debug-tracing.mount index 498745a..66f5c4f 100644 --- a/packaging/sys-kernel-debug-tracing.mount +++ b/packaging/sys-kernel-debug-tracing.mount @@ -8,6 +8,7 @@ [Unit] Description=Trace File System DefaultDependencies=no +ConditionPathExists=!/sys/kernel/debug/tracing/trace ConditionCapability=CAP_SYS_RAWIO Before=sysinit.target @@ -15,4 +16,4 @@ Before=sysinit.target What=tracefs Where=/sys/kernel/debug/tracing Type=tracefs -Options=remount,rw +Options=remount,nosuid,nodev,noatime -- cgit v1.2.3