mount-img

Mount images.

Example

Enable the mounting of images (2) and create the list of mount points (3). For example,

1shell> cat host_vars/build.example.com/fp-mount-img.yml
2fp_mount_img: true
3fp_mount_img_entries:
4  - img: /export/img/FreeBSD-12.2-RELEASE-arm-armv7-CUBOX-HUMMINGBOARD.img
5    mount: /usr/local/poudriere/jails/12arm7
6    fstype: ufs
7    partition: s2a

Dry-run the tasks, display the variables, and display the changes

shell> ansible-playbook playbook.yml -t fp_mount_img -e fp_mount_img_debug=true -CD

If all seems to be right configure the vnode and mount the image

shell> ansible-playbook playbook.yml -t fp_mount_img

Log to the remote host, list memory disks (2) and related mount points (5)

1shell> mdconfig -l -v
2md0 vnode 3072M /export/img/FreeBSD-12.2-RELEASE-arm-armv7-CUBOX-HUMMINGBOARD.img
3
4shell> df | grep arm
5/dev/md0s2a 5971064 4056912 1436472 74% /zroot/poudriere/jails/12arm7

See also