systemd: Refine patch for v256.5

Signed-off-by: Jun Zhu <junzhu@nxp.com>
This commit is contained in:
Jun Zhu 2024-09-04 15:53:45 +08:00 committed by Tom Hochstein
parent 7a59a6876e
commit 35bef24af8
2 changed files with 7 additions and 9 deletions

View File

@ -1,4 +1,4 @@
From f611772a8dc4431cf464c1c6ef5d215d9553bf3a Mon Sep 17 00:00:00 2001
From 19a8729bcd3252e564456586d1b6908d8033a008 Mon Sep 17 00:00:00 2001
From: Neena Busireddy <neenareddy.busireddy@nxp.com>
Date: Mon, 17 Dec 2018 10:02:19 -0600
Subject: [PATCH] units/systemd-udevd: Set PrivateMounts to no
@ -20,16 +20,15 @@ https://unix.stackexchange.com/questions/464959/udev-rule-to-automount-media-dev
Upstream-Status: Inappropriate [i.MX specific]
Signed-off-by: Neena Busireddy <neenareddy.busireddy@nxp.com>
---
units/systemd-udevd.service.in | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/units/systemd-udevd.service.in b/units/systemd-udevd.service.in
index b59fdef9b0..6be8309895 100644
index f4a4482088..4f35415b0f 100644
--- a/units/systemd-udevd.service.in
+++ b/units/systemd-udevd.service.in
@@ -28,13 +28,12 @@ RestartSec=0
@@ -29,13 +29,12 @@ RestartSec=0
ExecStart={{LIBEXECDIR}}/systemd-udevd
KillMode=mixed
TasksMax=infinity

View File

@ -1,4 +1,4 @@
From 10f7f659137e7a85db30253b5e98971c1ee9da22 Mon Sep 17 00:00:00 2001
From 9170893b472910c82011c04ce8cef48610aab913 Mon Sep 17 00:00:00 2001
From: Tom Hochstein <tom.hochstein@nxp.com>
Date: Tue, 3 Apr 2018 14:07:32 -0500
Subject: [PATCH] logind.conf: Set HandlePowerKey to ignore
@ -8,18 +8,17 @@ For i.MX, we don't want systemd to handle the power key.
Upstream-Status: Inappropriate [i.MX-specific]
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
---
src/login/logind.conf.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/login/logind.conf.in b/src/login/logind.conf.in
index e5fe924681..509932585c 100644
index b62458ec3c..1884c3f2c2 100644
--- a/src/login/logind.conf.in
+++ b/src/login/logind.conf.in
@@ -25,6 +25,8 @@
#InhibitDelayMaxSec=5
@@ -26,6 +26,8 @@
#UserStopDelaySec=10
#SleepOperation=suspend-then-hibernate suspend
#HandlePowerKey=poweroff
+# i.MX-specific
+HandlePowerKey=ignore