"chroot not initialized! This is a bug! Please report it." on pmbootstrap export

To explain the weird step order: I have a script that I use for mainlining; what it does is it pulls the latest pmbootstrap version from git (needed for envkernel.sh), then runs some commands (pmbootstrap export to get the initramfs for manually rebuilding the boot.img later). I accidentally forgot to switch to the stable branch on my main PC, so it pulled 3.0.0 from master.

The steps I did to encounter this, roughly, are:

  • Run a pmbootstrap command, prompted to re-init due to an upgrade from folder 6 to 7
  • pmbootstrap init re-runs automatically after the upgrade; Ctrl+C out of it, wanting to revert to older pmbootstrap, then changing my mind
  • Try to run pmbootstrap export and realize the settings have been reset
  • Run pmbootstrap init again, this time manually
  • Run pmbootstrap export

Note that I didn't run a pmbootstrap install after re-init, this could be a point of interest, I'd need to investigate that.

The resulting log from the above is pretty long, so I've uploaded it as a file:

pmbootstrap-bug-log.txt

Edited by knuxify