diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2017-04-13 20:36:01 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-04-27 05:37:39 +0300 |
commit | ae5e437976a00d354dd0cd3b8ac4385a56ab40c3 (patch) | |
tree | 106bd9b0d165e2c6b2e798fdb5ec009970bcca42 /meta-phosphor/classes/mrw-rev.bbclass | |
parent | e4da33593902b1bc6f5b12037a98696a0bfbab88 (diff) | |
download | openbmc-ae5e437976a00d354dd0cd3b8ac4385a56ab40c3.tar.xz |
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/classes/mrw-rev.bbclass')
0 files changed, 0 insertions, 0 deletions