productbuild: Don't write rootVolumeOnly attribute if writing domains
The rootVolumeOnly
attribute is deprecated. Apple docs say to use domains instead, so don't output the rootVolumeOnly
attribute when domains are enabled.
This MR includes a couple of minor cleanups in the code related to the main change.
Fixes: #23343 (closed)
Backport: release
Edited by Craig Scott