<div dir="ltr">Hi All,<br><div>I have created lxc container based out of busybox template</div><div>Our requirement is to start the container with squashed rootfs.</div><div><br></div><div>Below are the steps followed to create lxc container, squash rootfs and  start</div><div><br></div><div>1. lxc-create -n b01 -t busybox</div><div>2. mksquashfs rootfs rootfs.sq</div><div>3. mv rootfs <a href="http://rootfs.org">rootfs.org</a>      //take backup of original rootfs</div><div>4. mkdir rootfs && sudo mount -o loop -t squashfs rootfs.sq rootfs  //mount squashed rootfs to rootfs folder    </div><div>5. lxc-start -n b01 </div><div><br></div><div>Container starts successfully and all the folders/files of rootfs on host machine is read-only.</div><div> Expectation is on start and logging into container, the permissions of rootfs files should remain intact</div><div><br></div><div>Actual results: dev folder of container rootfs is read-only on host machine but inside container, it is writable.</div><div><br></div><div>Please help with inputs on why the dev folder permissions are changed on lxc-attach.</div><div><br></div><div>Thanks for the help,</div><div>Yasoda</div></div>