summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/flash
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2018-06-07 23:17:15 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-06-25 23:05:23 +0300
commit859b92ea28bb75d98c98b058339e181c208bba5b (patch)
treeac7ca7810217ba491317674bf91201099723d96d /meta-phosphor/common/recipes-phosphor/flash
parentf18df6b5af6fc0481a74059aec89edb3c4e2e6ec (diff)
downloadopenbmc-859b92ea28bb75d98c98b058339e181c208bba5b.tar.xz
Remove use of mapper call
Replace invocations of mapper call with a call to busctl and mapper get-service. This provides equivalent functionality but opens the door for dropping a systemd patch we have carried for some time. Change-Id: Iea0cce89341939b49b095d1f5010415578331d4d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/flash')
-rw-r--r--meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios/obmc-flash-init.service4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios/obmc-flash-init.service b/meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios/obmc-flash-init.service
index d9355b3d2b..de196d0ea7 100644
--- a/meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios/obmc-flash-init.service
+++ b/meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios/obmc-flash-init.service
@@ -5,8 +5,8 @@ After=mapper-wait@-org-openbmc-control-flash-bios.service
[Service]
Restart=no
-ExecStart=/usr/bin/env mapper call /org/openbmc/control/flash/bios org.openbmc.Flash init
-SyslogIdentifier=mapper
+ExecStart=/bin/sh -c "busctl call `mapper get-service /org/openbmc/control/flash/bios` /org/openbmc/control/flash/bios org.openbmc.Flash init"
+SyslogIdentifier=obmc-flash-init
[Install]
WantedBy={SYSTEMD_DEFAULT_TARGET}