cd2307ccc2
On traditional rpm systems this can hang because the outer process may have an rpmdb lock, and the inner one wants to acquire a lock. Here we're sandboxing the `%post` script and it's targeting a separate temporary filesystem compared to the booted one (so there's no double locking). Plus we don't create the rpmdb in the target until all scripts have run. Inspired by https://twitter.com/_msw_/status/1335981558717587473