summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios.bb
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2017-04-13 12:36:01 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-04-27 02:37:39 +0000
commitae5e437976a00d354dd0cd3b8ac4385a56ab40c3 (patch)
tree106bd9b0d165e2c6b2e798fdb5ec009970bcca42 /meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios.bb
parente4da33593902b1bc6f5b12037a98696a0bfbab88 (diff)
downloadtalos-openbmc-ae5e437976a00d354dd0cd3b8ac4385a56ab40c3.tar.gz
talos-openbmc-ae5e437976a00d354dd0cd3b8ac4385a56ab40c3.zip
Create SquashFS mount template service
This service will mount a SquashFS image to a read-only partition. 1. Create a read-only UBI volume named pnor-ro-%i with an arbitrary size of 32MB. The volume will shrink to the size of the squashfs image, and the current pnor squashfs image is about 20MB. 2. Save the ubivolume id in a unique env variable $volumeid%i. Unlike ubifs, squashfs requires the volume id instead of the name. 3. Create a read-only ubi block device on the ubi volume, this is where read-only filesystems can reside. 4. Update the ubi block with the squashfs image. 5. Mount. The contents of the squashfs image will be available under /media/pnor-ro-%i. Add a couple fixes to the ubimount service to make it more readable and match the new squashfsmount service. Change-Id: I38c6f7a123c1b79fb82905c161f8c2ba796820ca Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios.bb')
-rw-r--r--meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios.bb b/meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios.bb
index 7398cbdbc..2137de414 100644
--- a/meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios.bb
+++ b/meta-phosphor/common/recipes-phosphor/flash/obmc-flash-bios.bb
@@ -14,3 +14,4 @@ DBUS_SERVICE_${PN} += "org.openbmc.control.Flash.service"
SYSTEMD_SERVICE_${PN} += "obmc-flash-init.service"
SYSTEMD_SERVICE_${PN} += "obmc-flash-bios-ubiattach.service"
SYSTEMD_SERVICE_${PN} += "obmc-flash-bios-ubimount@.service"
+SYSTEMD_SERVICE_${PN} += "obmc-flash-bios-squashfsmount@.service"
OpenPOWER on IntegriCloud