Build fails if `config/chroot_local-packages` contains packages
I tried this once with the packages I built for VeraCrypt (#15521 (closed)), and then again with an existing Debian package (https://packages.debian.org/stretch/amd64/vim/download). In both cases the build fails with:
P: Configuring file /etc/apt/sources.list gpg: WARNING: unsafe permissions on homedir '/root/.gnupg' gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: agent_genkey failed: Inappropriate ioctl for device gpg: key generation failed: Inappropriate ioctl for device cp: cannot create regular file 'cache/': Not a directory P: Begin unmounting filesystems...
For context, see live-build!1 (comment 184039).
Prepare live-build fix (live-build!1 (merged))
live-buildrepo as a Git submodule of tails/tails, in some relevant place under
In the Vagrant box build process, somehow copy the relevant
live-buildfiles to the VM filesystem; this may boil down to running
DESTDIR=something make install
Prepare a MR against tails/tails that upgrades the live-build submodule to include live-build!1 (merged)
Merge both live-build!1 (merged) and the MR against tails/tails