For a couple of days I was unable to log in either in gdm or in the console.
I just kept updating in a chroot, hoping for the best.
Finally I decided to relabel the file system with
# touch .autorelabel
in the root directory.
This enabled me to finally log in, yet when I tried to update I got an error similar to:
error: cannot open Packages database in /var/lib/rpm
Error: rpmdb open failed
When I tried:
I got another error.
Finally I was able to fix it with