Skip to content
upload

GitHub Action

Mount Image

v1 Latest version

Mount Image

upload

Mount Image

An action that mounts an image's boot and root partitions inside a Ubuntu runner

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Mount Image

uses: damianperera/mount-image-action@v1

Learn more about this action in damianperera/mount-image-action

Choose a version

Mount Image Action

An action that mounts an image's boot and root partitions inside a Ubuntu runner.

Example

- name: Mount Image
  id: mount-image
  uses: damianperera/mount-image-action@v1
  with:
    imagePath: /home/github-runner/rpi4.img
    mountPoint: /mnt/rpi4

For a usage example refer this workflow file.

Outputs

Value Description
bootMountLocation Mount location of the boot partition
rootMountLocation Mount location of the root partition
bootDeviceMapper The boot partition's mount device (e.g. /dev/mapper/loop5p0)
rootDeviceMapper The root partition's mount device (e.g. /dev/mapper/loop5p1)