You are not logged in.
I've just installed a lightweight 32-bit chroot following the guide in the wiki.
The problem is that /opt on my system is a symlink to /usr/opt and /usr is on a different partition than root and /etc, so I can't create the hard links at the configuration step and symlinks won't work within a chroot (at least they shouldn't, although I haven't actually tried). I've simply copied those file for now just to test the set-up (it works).
It's probably better to avoid linking some of those files to preserve integrity of both systems, but some such as the resolv.conf need to be kept in sync.
What's the best way to do this? So far it seems that the easiest solution would be to simply create a script that copies relevant files into the chroot before changing into it, but I would prefer something automatic.
*edit*
I don't have enough space on my root partition for the chroot either, so installing it there is not an option.
Last edited by Xyne (2010-05-22 19:36:35)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I would've also done the same thing you did, copying (or rsyncing) relevant files before changing. Although I'd put it in a wrapper script.
You could also use a daemon to watch for changes on those files and have it rsync/copy for you. I don't have any experience with fs change monitors, but fschange, audit, fcm, fileschanged, and fsniper (with inotail) look like some possible candidates.
Offline
I like the daemon idea. I'll use a wrapper script until I have time to look into it.
Thanks.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline