Thank you for your /proc/mounts and the script.

"Fernando A. P. Gomes":
> In rc script I don't do a chroot. I do a pivot_root in a initrd before system 

Let me make sure.

- boot with initrd and linuxrc
- in linuxrc, mount /cdrom and some dirs under /cdrom, mount
  /etfs_changes, and mount aufs with them.
- pivot_root, and rc script on cdrom will be executed.
- an error occurs during rc script.

I saw /.etfw_changes is mounted in your /proc/mounts, but where is
/etfw_changes as the first branch of aufs?

Honestly speaking, I have never tried sharing branches between several
aufses.


> > So you can ls(1) to your branches directly, and it succeeded, right?
> > Then, how about ls to your aufs after direct ls?
> 
> If I do a ls(1) before the rc script starts the next ls(1) to aufs works well.

Please try this.
- boot, without touching files BEFORE the rc script.
  if you access to /var/log/squid, it will cause this problem. So don't
  do this. Instead,

- ls(1) /cdrom/tmpdir/3/var/log/squid
  does it work correctly?
  And then,

- ls(1) /var/log/squid
  does it work correctly?


> # Is there an rc directory for this new runlevel?
> [ -d /etc/rc$runlevel.d ] || exit 0

Is this the point you mentioned?
Hmm,,, very early in the script...


Junjiro Okajima

-------------------------------------------------------------------------
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

Reply via email to