Hi All,

             Presently we migrated the chroot to sbuildchroot and one of my image creation part i try to mount some temporary file system as a loop device and do create volumes and other stuffs.

Here i could see am not able to mount the file system as a loop device specifically in chroot.

reproduce steps:
 
1. chroot into the created session 
2. dd if=/dev/zero of=ext4.img bs=4k count=2048
3.mkfs.ext4 ext4.img
4. mnt=$(mktemp -d)
5.  mount -o loop 'ext4.img' "${mnt}"

when i mount this ext4.img as a loop devices it throws the below error:
Error: "mount: /tmp/tmp.7oJoEpL0vt: mount failed: Operation not permitted." 

But the above steps are working fine in my host machine.

I hope we need to install the loop module in chroot or any other suggestion that would be helpful to mount loop devices in schroot sessions.

Note:  losetup also not works in schroot.

Many thanks,
Srinu