On Tue, Sep 12, 2017 at 12:47 PM, Amir Goldstein <amir73il@xxxxxxxxx> wrote: > So is this reproducible at every run with v4.13? yes, > Are you able to try this without overlayfs? i.e. chroot to squashfs mount? I have found the same in 4.12 when mounting only one squashfs image. Therefore we could say that when working with previous versions overlayfs was solving the problem in some way. > I am guessing there is nothing important in upper layer when this error occurs, > Am I right? does script need write to chroot path before this error occurs? Correct, there is no need to write or enter in the chroot, only repeat the mount command. Thanks, Jordi Pujol
# uname -a Linux pcjordi 4.12.11-1-haswell-lnet-amd64 #1 SMP PREEMPT Thu Sep 7 12:27:02 CEST 2017 x86_64 GNU/Linux root@pcjordi:~# cd /tmp/ root@pcjordi:tmp# mkdir fs root@pcjordi:tmp# mount -o loop,ro /lnet/image/LneTLXQT64/00filesystem.squashfs /tmp/fs/ root@pcjordi:tmp# mount -o bind /tmp /tmp/fs/tmp/ root@pcjordi:tmp# ls -lA /tmp/fs/ total 0 drwxr-xr-x 2 root root 1925 Sep 5 11:00 bin drwxr-xr-x 2 root root 196 Sep 10 09:59 boot drwxr-xr-x 2 root root 3 Sep 10 09:22 dev drwxr-xr-x 97 root root 2867 Sep 10 09:58 etc drwxr-xr-x 2 root root 3 Sep 10 09:24 home lrwxrwxrwx 1 root root 45 Sep 7 13:57 initrd.img -> /boot/initrd.img-4.12.11-1-haswell-lnet-amd64 drwxr-xr-x 12 root root 290 Jul 5 11:54 lib drwxr-xr-x 2 root root 43 Aug 31 09:55 lib64 drwxr-xr-x 2 root root 3 Feb 6 2017 media drwxr-xr-x 2 root root 3 Feb 6 2017 mnt drwxr-xr-x 2 root root 3 Feb 6 2017 opt dr-xr-xr-x 2 root root 3 Sep 10 09:22 proc drwx------ 2 root root 3 Sep 10 09:24 root drwxr-xr-x 2 root root 3 Sep 10 09:24 run drwxr-xr-x 2 root root 2085 Sep 5 11:00 sbin drwxr-xr-x 2 root root 3 Feb 6 2017 srv dr-xr-xr-x 2 root root 3 Sep 10 09:22 sys drwxrwxrwt 11 root root 260 Sep 12 14:42 tmp drwxr-xr-x 10 root root 162 Feb 6 2017 usr drwxr-xr-x 11 root root 184 Feb 6 2017 var lrwxrwxrwx 1 root root 41 Sep 7 13:57 vmlinuz -> boot/vmlinuz-4.12.11-1-haswell-lnet-amd64 root@pcjordi:tmp# mount -o bind /tmp /tmp/fs/tmp/ root@pcjordi:tmp# ls -lA /tmp/fs/ total 0 root@pcjordi:tmp# mount-list sysfs /sys sysfs nodev,noexec,nosuid,relatime,rw sysfs 0:17 proc /proc proc nodev,noexec,nosuid,relatime,rw proc 0:5 udev /dev devtmpfs mode=755,nosuid,nr_inodes=978778,relatime,rw,size=3915112k udev 0:6 devpts /dev/pts devpts gid=5,mode=620,noexec,nosuid,ptmxmode=000,relatime,rw devpts 0:18 tmpfs /run tmpfs mode=755,noexec,nosuid,relatime,rw,size=786164k tmpfs 0:19 tmpfs /lnet tmpfs mode=755,relatime,rw,size=7861632k tmpfs 0:20 /dev/sda1 /lnet/image ext2 errors=continue,noacl,noatime,nouser_xattr,ro /dev/sda1 8:1 /lnet/image/LneTXFCE64/00filesystem.squashfs /lnet/00filesystem.squashfs squashfs noatime,ro,loop=/dev/loop0 /dev/loop0 7:0 /lnet/image/LneTXFCE64/10interfaces.squashfs /lnet/10interfaces.squashfs squashfs noatime,ro,loop=/dev/loop1 /dev/loop1 7:1 /dev/sda2 /lnet/cowroot ext4 data=ordered,relatime,rw /dev/sda2 8:2 overlay / overlay lowerdir=/lnet/00filesystem.squashfs:/lnet/10interfaces.squashfs,relatime,rw,upperdir=/lnet/cowroot/LneTXFCECOW/upper,workdir=/lnet/cowroot/LneTXFCECOW/work overlay 0:21 tmpfs /tmp tmpfs nodev,nosuid,relatime,rw,size=7861632k,mode=1777 tmpfs 0:22 tmpfs /var/log tmpfs mode=755,nosuid,relatime,rw,size=7861632k tmpfs 0:23 tmpfs /var/tmp tmpfs nodev,nosuid,relatime,rw,size=7861632k,mode=1777 tmpfs 0:24 securityfs /sys/kernel/security securityfs nodev,noexec,nosuid,relatime,rw securityfs 0:7 tmpfs /dev/shm tmpfs nodev,nosuid,rw,mode=1777 tmpfs 0:25 tmpfs /run/lock tmpfs nodev,noexec,nosuid,relatime,rw,size=5120k,mode=1777 tmpfs 0:26 tmpfs /sys/fs/cgroup tmpfs mode=755,nodev,noexec,nosuid,ro tmpfs 0:27 cgroup /sys/fs/cgroup/unified cgroup2 nodev,noexec,nosuid,relatime,rw cgroup 0:28 cgroup /sys/fs/cgroup/systemd cgroup name=systemd,nodev,noexec,nosuid,relatime,rw,xattr cgroup 0:29 pstore /sys/fs/pstore pstore nodev,noexec,nosuid,relatime,rw pstore 0:30 cgroup /sys/fs/cgroup/cpu cgroup cpu,nodev,noexec,nosuid,relatime,rw cgroup 0:31 systemd-1 /proc/sys/fs/binfmt_misc autofs direct,fd=33,maxproto=5,minproto=5,pgrp=1,relatime,rw,timeout=0 systemd-1 0:32 /lnet/cowroot/LneTXFCEhome /home none rw,bind /dev/sda2 8:2 /lnet/image/LneTXFCE64 /boot none ro,bind /dev/sda1 8:1 mqueue /dev/mqueue mqueue relatime,rw mqueue 0:16 debugfs /sys/kernel/debug debugfs relatime,rw debugfs 0:8 hugetlbfs /dev/hugepages hugetlbfs relatime,rw hugetlbfs 0:33 /lnet/image/grub /boot/grub none ro,bind /dev/sda1 8:1 /lnet/image/grub /lnet/image/LneTXFCE64/grub none ro,bind /dev/sda1 8:1 /lnet/cowroot/JPLive /home/JPLive none rw,bind /dev/sda2 8:2 /lnet/cowroot/JPLive /lnet/cowroot/LneTXFCEhome/JPLive none rw,bind /dev/sda2 8:2 /lnet/cowroot/LneTXFCEhome/root /root none rw,bind /dev/sda2 8:2 /lnet/cowroot/JPLive/var-spool /var/spool none rw,bind /dev/sda2 8:2 /lnet/cowroot/JPLive/apt-cache-amd64 /var/cache/apt none rw,bind /dev/sda2 8:2 /lnet/cowroot/JPLive/apt-lib-amd64 /var/lib/apt none rw,bind /dev/sda2 8:2 tmpfs /run/user/1001 tmpfs gid=100,mode=700,nodev,nosuid,relatime,rw,size=786160k,uid=1001 tmpfs 0:37 /lnet/image/LneTLXQT64/00filesystem.squashfs /tmp/fs squashfs relatime,ro,loop=/dev/loop2 /dev/loop2 7:2 /tmp/ /tmp/fs/tmp none rw,bind tmpfs 0:22 /tmp/ /tmp/fs/tmp none rw,bind tmpfs 0:22 /tmp/ /tmp none rw,bind tmpfs 0:22