Adding state scripts to an existing snapshot artifact

Hi there,

I have an image created through mender-artifact write rootfs-image directly from a golden Raspberry Pi 4 device running Bullseye. This automatically creates a .mender artifact that I can then deploy to the mender server and onto the device. I’m wondering if there’s a way to slip in state scripts that run when the artifact is installed? mender-artifact modify doesn’t seem to have anything.