updater-script—Universal Method of Mounting partitions
As long as the recovery has busybox (e.g. TWRP for most if not all devices) you could simply call run_program("/sbin/busybox", "mount", "/system");. I wrote my own updater-script and this worked fairly well since the Android 5.x days.