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

Welcome, thank you for your time.

> Let me make sure.
>
> - boot with initrd and linuxrc

Yeap.

> - in linuxrc, mount /cdrom and some dirs under /cdrom, mount
>   /etfs_changes, and mount aufs with them.

Yeap.

> - pivot_root, and rc script on cdrom will be executed.
pivot_root is executed and enter in init (from centos4, with a normal 
inittab). The init from centos4 is the responsable to execute rc script

> - an error occurs during rc script.

Yes, If I've a /bin/bash before  [ -d /etc/rc$runlevel.d ] || exit 0, all 
seems ok.

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

I mount binded  /etfw_changes to  /.etfw_changes.

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

Yes.

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

Yes.

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

Yes... I've seen that /etc/wvdial.conf is corrupted before rc script. Is 
corrupted at rc.sysinit script, line:

# Clean up /var.  I'd use find, but /usr may not be mounted.
for afile in /var/lock/* /var/run/* ; do
        if [ -d "$afile" ]; then
           case "$afile" in
                */news|*/mon)   ;;
                */sudo)         rm -f $afile/*/* ;;
                */samba)        rm -rf $afile/*/* ;;
                *)              rm -f $afile/* ;;
           esac
        else
           rm -f $afile
        fi
done

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

Reply via email to