How can i run diskimage-builder in lxc

asked 2016-08-09 05:15:42 -0500

Maik gravatar image

updated 2016-08-09 06:29:31 -0500

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?

edit retag flag offensive close merge delete