> > I do a chroot (not a pivot_root, my apologies), this version of my initrd > > do a chroot like this: > > > > exec /filesystem/lib/ld-linux.so.2 --library-path /filesystem/lib > > filesystem/initrd/bin/chroot filesystem /sbin/init > > How about ldconfig after chroot?
Same thing. > > > o Shared branches amnong several aufs > > > What will happen if you stop sharing branches? For example, > > > - /cdrom/tmpdir/1 for aufs1 > > > - /cdrom/tmpdir/2 for aufs2 > > > > I don't undestand what you want here. > > Since there were several aufses in your /proc/mounts and they shares > their branches, I suggested stop sharing. I've only one aufs: none / aufs rw,xino=/etfw_changes/.aufs.xino,br:/etfw_changes=rw:/cdrom/confs=ro:/cdrom/tmpdir/15=ro:/cdrom/tmpdir/14=ro:/cdrom/tmpdir/13=ro:/cdrom/tmpdir/12=ro:/cdrom/tmpdir/11=ro:/cdrom/tmpdir/10=ro:/cdrom/tmpdir/9=ro:/cdrom/tmpdir/8=ro:/cdrom/tmpdir/7=ro:/cdrom/tmpdir/6=ro:/cdrom/tmpdir/5=ro:/cdrom/tmpdir/4=ro:/cdrom/tmpdir/3=ro:/cdrom/tmpdir/2=ro:/cdrom/tmpdir/1=ro:/etfw=ro 0 0 the others that you see (like this: none /srv/webmin/squid aufs rw,xino=/etfw_changes/.aufs.xino,br:/etfw_changes=rw:/cdrom/confs=ro:/cdrom/tmpdir/15=ro:/cdrom/tmpdir/14=ro:/cdrom/tmpdir/13=ro:/cdrom/tmpdir/12=ro:/cdrom/tmpdir/11=ro:/cdrom/tmpdir/10=ro:/cdrom/tmpdir/9=ro:/cdrom/tmpdir/8=ro:/cdrom/tmpdir/7=ro:/cdrom/tmpdir/6=ro:/cdrom/tmpdir/5=ro:/cdrom/tmpdir/4=ro:/cdrom/tmpdir/3=ro:/cdrom/tmpdir/2=ro:/cdrom/tmpdir/1=ro:/etfw=ro 0 0 ) Are mount binded. Without mount bounded the /proc/mounts is: cat /proc/mounts rootfs / rootfs rw 0 0 none / tmpfs rw 0 0 /dev/hdc /cdrom iso9660 ro 0 0 /dev/loop0 /etfw ext3 ro,data=ordered 0 0 /dev/loop1 /cdrom/tmpdir/1 cramfs ro 0 0 /dev/loop2 /cdrom/tmpdir/2 cramfs ro 0 0 /dev/loop3 /cdrom/tmpdir/3 cramfs ro 0 0 /dev/loop4 /cdrom/tmpdir/4 cramfs ro 0 0 /dev/loop5 /cdrom/tmpdir/5 cramfs ro 0 0 /dev/loop6 /cdrom/tmpdir/6 iso9660 ro 0 0 /dev/loop7 /cdrom/tmpdir/7 cramfs ro 0 0 /dev/loop8 /cdrom/tmpdir/8 cramfs ro 0 0 /dev/loop9 /cdrom/tmpdir/9 cramfs ro 0 0 /dev/loop10 /cdrom/tmpdir/10 cramfs ro 0 0 /dev/loop11 /cdrom/tmpdir/11 cramfs ro 0 0 /dev/loop12 /cdrom/tmpdir/12 cramfs ro 0 0 /dev/loop13 /cdrom/tmpdir/13 cramfs ro 0 0 /dev/loop14 /cdrom/tmpdir/14 cramfs ro 0 0 /dev/loop15 /cdrom/tmpdir/15 cramfs ro 0 0 none / aufs rw,xino=/etfw_changes/.aufs.xino,br:/etfw_changes=rw:/cdrom/confs=ro:/cdrom/tmpdir/15=ro:/cdrom/tmpdir/14=ro:/cdrom/tmpdir/13=ro:/cdrom/tmpdir/12=ro:/cdrom/tmpdir/11=ro:/cdrom/tmpdir/10=ro:/cdrom/tmpdir/9=ro:/cdrom/tmpdir/8=ro:/cdrom/tmpdir/7=ro:/cdrom/tmpdir/6=ro:/cdrom/tmpdir/5=ro:/cdrom/tmpdir/4=ro:/cdrom/tmpdir/3=ro:/cdrom/tmpdir/2=ro:/cdrom/tmpdir/1=ro:/etfw=ro 0 0 none /.etfw_changes tmpfs rw 0 0 none /selinux selinuxfs rw 0 0 /proc /proc proc rw 0 0 /proc/bus/usb /proc/bus/usb usbfs rw 0 0 /sys /sys sysfs rw 0 0 none /dev/pts devpts rw 0 0 none /dev/shm tmpfs rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 > > > > I mount binded /etfw_changes to /.etfw_changes. > > > > > > Hmm,,, > > > Do you know why your /proc/mounts didn't show it? > > > > It's because the final chroot in initrd. > > Do you mean that the bound mount is hidden by chroot? > Are you sure? I run linuxrc, line a line, and the bound mount is hidden after this line: pivot_root /mnt/aufs /mnt/aufs/filesystem/initrd After this the linuxrc has two more lines: exec < filesystem/dev/console &> filesystem/dev/console exec /filesystem/lib/ld-linux.so.2 --library-path /filesystem/lib filesystem/initrd/bin/chroot filesystem /sbin/init Fernando Gomes ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV