Skip to content

Commit 90f552e

Browse files
committed
docs: document pre_srpm_build and umount_root hooks
1 parent 077ae47 commit 90f552e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/Plugin-Hooks.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ Where `HOOK_NAME` is one of:
2828
* prechroot - This hook is called just before executing a command when `mock chroot` command has been used. This action is currently being used by `root_cache` plugin.
2929
* preinit - Only chroot and result_dir directories exist. There may be no other content. No binary. Not even base directories. Root_cache plugin uses this hook to populate the content of chroot_from cache. HW_info gather information about hardware and store it in result_dir. This action is currently being used by `ccache`, `hw_info`, `root_cache`, `yum_cache` plugins.
3030
* preshell - This hook is called just before giving a prompt to a user when `mock shell` command has been used. This action is currently being used by `pm_request`, `root_cache` plugins.
31+
* pre_srpm_build - Called before generating the SRPM (`rpmbuild -bs`). Used in `--buildsrpm` mode only.
3132
* preyum - This hook is called before any packager manager action is executed. This is, e.g., used by `root_cache` plugin when `--cache-alterations` option is used. This action is currently being used by `root_cache`, `selinux`, `yum_cache`.
3233
* process_logs - Called once the build log files (root.log, build.log, ...) are completed so they can be processed (e.g. compressed by the `compress_logs` plugin).
3334
* remove_snapshot
3435
* rollback_to
3536
* scrub
37+
* umount_root - The counterpart to mount_root; called to instruct the buildroot-managing plugin to unmount the buildroot.
3638

3739
You can get inspired by existing [plugins](https://github.com/rpm-software-management/mock/tree/master/mock/py/mockbuild/plugins).

0 commit comments

Comments
 (0)