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>
3 files changed
tree: 51c2dc9eb2e171d284532b270f8e6960c54565a0
  1. classes/
  2. common/
  3. conf/
  4. COPYING.apache-2.0
  5. COPYING.MIT
  6. LICENSE