How can i run diskimage-builder in lxc
I try to run diskimage-builder in lxc and had some trouble:
List of Errors:
mount: cannot mount block device /tmp/dib_build.t9ychzEn/hooks read-only
I have tried several appamor configurations - not solved completely
At the end i add -l to the mount command in the scripts
vim /usr/local/share/diskimage-builder/lib/img-functions 85
vim /usr/local/share/diskimage-builder/lib/common-functions 134
/usr/local/bin/disk-image-create:main:410: sudo losetup --show -f /tmp/dib_image.YcesvNzx/image.raw
modified lxc config
...
lxc.cgroup.devices.allow = c 10:137 rwm # loop-control
lxc.cgroup.devices.allow = b 7:* rwm # loop*
...
sudo: parted: command not found
apt-get install parted
and so on
is there some manual how i can run diskimage-builder in a lxc?