Hi, can anyone help me with using distrobuilder please?
I’m trying to build debian buster using distrobuilder, but I’m running distrobuilder inside of an lxd debian container.
My command line is:
sudo env container=lxc $HOME/builds/distrobuilder-1.1/go/bin/distrobuilder build-lxd debian.yaml
I had to add the container=lxc environment variable to fix an issue with debootstrap which had the error:
mknod: /deb-test/target/test-dev-null: Operation not permitted E: Cannot install into target '/deb-test/target' mounted with noexec or nodev
Adding that environment variable seems to fix that issue, but then when I run distrobuilder, I get this error:
Error: Failed to setup chroot: Failed to populate /dev: Failed to create "/dev/console": operation not permitted
This seems like a similar problem as what debootstrap was complaining about. Is there a way to work around this? Is it possible to use distrobuilder inside an lxd container?