"Fernando A. P. Gomes": > > Currently I do know nothing about nash, switch_root or switchroot. Where > > can I get those source code and check which systemcall was issued? > > nash man: > http://www.die.net/doc/linux/man/man8/nash.8.html
And where is the source code? > My initrd is like this: > mount -n -t aufs -o > br=/etfw/.etfw_changes=rw:/cdrom/confs=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 > > none /filesystem At this point, your /etfw, and of cource /etfw/.etfw_changes, are in the single mounted tmpfs, aren't they? ie. you just executed 'mount -t tmpfs /etfw', didn't you? > mount --move /etfw/.etfw_changes /filesystem/.etfw_changes At this point, your /etfw is still /etfw. > /bin/chroot "/filesystem" /bin/bash -c 'echo radius:x:81:425:system user for > freeradius:/var/log/radius/radacct:/bin/false' >> /etc/passwd Is this redirection what you want? I am afraid /etc/passwd is on initrd (or initramfs), not /filesystem/etc/passwd. > exec nash /sbin/switch_root > /dev/null The nash manual you told me describes you need newrootpath as its parameter. 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