david_igou.armbian.board_boot_verify role – Assert a board’s rootfs matches the declared boot mode.
Note
This role is part of the david_igou.armbian collection (version 0.0.5-alpha).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it use: ansible-galaxy collection install david_igou.armbian.
To use it in a playbook, specify: david_igou.armbian.board_boot_verify.
Entry point main – Assert a board’s rootfs matches the declared boot mode.
Synopsis
Single-host role. Gathers facts, inspects ansible_facts[‘mounts’][‘/’], and asserts that the rootfs fstype matches the declared board_boot_verify_mode (nfs|nfs4 for nfs; not nfs for sd, local, or local_kernel; for local_kernel additionally asserts the device path matches board_boot_verify_local_kernel_match, default ^/dev/nvme).
Parameters
Parameter |
Comments |
|---|---|
Mirrors armbian_extra_modes for verify_match lookups. When board_boot_verify_mode is a key in board_boot_verify_extra_modes, this role reads the mode’s `verify_match` regex and asserts ansible_facts[‘mounts’][‘/’]. device matches it. Default: |
|
Regex the rootfs device must match when board_boot_verify_mode=local_kernel. Defaults to armbian_board_config.local_kernel.verify_match when that is resolved on the host, else ‘^/dev/nvme’. Example for a board with an eMMC fallback: ‘^/dev/(nvme|mmcblk0)’. |
|
The declared boot mode. Built-in modes are nfs, sd, local, and local_kernel (`local_kernel` asserts the rootfs device matches board_boot_verify_local_kernel_match, default ^/dev/nvme; boards with non-NVMe localcmd fallbacks widen it via local_kernel.verify_match in armbian_board_config). Any other value is treated as a user-defined mode and must be a key in board_boot_verify_extra_modes; the mode’s `verify_match` regex is asserted against the root device. No `choices:` constraint here on purpose — it would reject custom modes before the board_boot_verify_extra_modes branch could run. |