Re: finally fixing modconf bugs -- please read
On Sun, Apr 09, 2000 at 02:19:09PM -0700, Randolph Chung wrote:
> > By this I meant we could then chroot to /target and run modconf, but it
> > could get complicated.
>
> i'm reluctant to do something like this -- it could get very complicated
> very quickly.
>
> changing where the symlinks are created is very straightforward, but i'm not
> sure i understand all the ramifications yet.
>
> would it be possible to make /dev/cdrom a symlink to /target/dev/cdrom on
> the cd, then when we mount the real /target, manipulate the (writable)
> /target/dev/cdrom as a symlink to the real device?
What I've been doing in dboostrap in cases like this is making use of
realpath() (system("touch ...");realpath("...");). Perhaps you can work
out something similar (check syslogd.c in busybox and /realpath to see how
I handled it there for the /dev/log symlink to /tmp).
Ben
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bmc@visi.net '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
Reply to: