When building a system profile as root, store paths installed by
non-root users (e.g. via mere dev build) were rejected with a
PermissionDenied error. Instead, harden them in place by calling
hardenStoreObject, which sets root ownership and read-only permissions.
Rename assertRootOwnedPackages to ensureRootOwnedPackages to reflect
the new behavior.
Fixes a regression where sudo mere install would fail if any
dependency in the generation was previously installed by a user.
When building a system profile as root, store paths installed by
non-root users (e.g. via `mere dev build`) were rejected with a
PermissionDenied error. Instead, harden them in place by calling
hardenStoreObject, which sets root ownership and read-only permissions.
Rename assertRootOwnedPackages to ensureRootOwnedPackages to reflect
the new behavior.
Fixes a regression where `sudo mere install` would fail if any
dependency in the generation was previously installed by a user.