Hi,

> o Shared object library
> If the commands in your linuxrc are dynamically linked, the dynamic
> libraries are also exist in initrd. Theortically, they will never be
> used after pivot_root.
> Are there any possibilities that the commands which are executed from
> init, call dynamic library in initrd unexpectedly?

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

And yes, with this line I execute things in initrd with dynamic library 
calling in final fs.

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

> "Fernando A. P. Gomes":
> > 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
>
> What is your kernel version?

2.6.20 vanilla + aufs patch + unionfs patch (but disabled in kernel config)

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

> > > - 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.
>
> Does it mean,,,
> - boot, without touching files BEFORE the rc script.
> - ls(1) all branches
> - ls all aufses
> then, you don't have any problem. Am I wrong?

Apparently yes, I don't have any problem.

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