chimeraos
chimeraos copied to clipboard
Unlocking a previous deployment makes pacman database incoherent
One can end up in a state where pacman has a database not relevant to the current deployment and can break the system.
Steps to reproduce:
- start with a locked image
- deploy another image
- boot the old image
- unlock that one
- boot the new deployment
Option two:
- start with a locked image
- deploy another image
- unlock the currently-running image
- boot the new deployment
The result will be a locked deployment that has the pacman database of the older image. Attempting to update the system breaks it. Attempting to install a package will install something that might not work due to needed libraries not being ABI-compatible.