diff options
author | John Wedig <johnwedig@google.com> | 2022-01-06 03:36:03 +0300 |
---|---|---|
committer | John Wedig <johnwedig@google.com> | 2022-01-07 04:03:14 +0300 |
commit | 41ef179e36a95b672a525a73ea84425f98bc1d67 (patch) | |
tree | fb355106fb8578f99161f6e487697f57f98f444c /meta-google/recipes-google/storage | |
parent | d7f89922854312c2b77d671a0706ce954d58c124 (diff) | |
download | openbmc-41ef179e36a95b672a525a73ea84425f98bc1d67.tar.xz |
meta-google: Add eMMC systemd service
This service launches eStoraged for the eMMC.
Tested:
Installed the image on a machine and confirmed that the systemd service
started automatically.
Signed-off-by: John Wedig <johnwedig@google.com>
Change-Id: I55567da8ef491af893e1749ee05d2f39fa01758b
Diffstat (limited to 'meta-google/recipes-google/storage')
-rw-r--r-- | meta-google/recipes-google/storage/emmc-service.bb | 18 | ||||
-rw-r--r-- | meta-google/recipes-google/storage/emmc-service/emmc.service | 10 |
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-google/recipes-google/storage/emmc-service.bb b/meta-google/recipes-google/storage/emmc-service.bb new file mode 100644 index 0000000000..c95867cedb --- /dev/null +++ b/meta-google/recipes-google/storage/emmc-service.bb @@ -0,0 +1,18 @@ +SUMMARY = "Storage management daemon for eMMC" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit systemd + +RDEPENDS:${PN} += "estoraged" + +SRC_URI += " file://emmc.service" + +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE:${PN} += "emmc.service" + +do_install:append() { + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/emmc.service ${D}${systemd_system_unitdir} +} diff --git a/meta-google/recipes-google/storage/emmc-service/emmc.service b/meta-google/recipes-google/storage/emmc-service/emmc.service new file mode 100644 index 0000000000..5447251b5b --- /dev/null +++ b/meta-google/recipes-google/storage/emmc-service/emmc.service @@ -0,0 +1,10 @@ +[Unit] +Description=Storage management daemon for eMMC + +[Service] +Type=simple +Restart=always +ExecStart=/usr/bin/eStoraged -b /dev/mmcblk0 + +[Install] +WantedBy=multi-user.target |