Init ~/.opam/<switch>/installed.user with the initial packages (it was working before, because is that file is empty, then OPAM copies the content of ~/.opam/<switch>/installed).