Symlinks working from "inside" 'chroot' to "outside" ?
I am building a script which will bootstrap a linux installation, and at one point doing a chroot to the target system "root" directory. But since my install scripts are also needed by the target installation, and they are located outside chrooted "root" directory, how can I reach them? I do not want to copy them to some place inside chroot, but i thought of creating a /tmp/install-scripts symlink which will point to a location outside chroot, however i am not sure the filesystem will be able to locate the target of such link?
Simpler put i have a host system with a bash shell running scripts from directory /mnt/my-usb-stick/install/install-script-1, which does a chroot into a, say, /mnt/install-target. Since all installation is scripted, chroot is too, and does a "env -i" environment cleanup which in turn calls another script. THe problem is, that another script already running from chrooted tree, will not be able to locate the /mnt/my-usb-stick/install/* since its a chrooted system..
Hope this makes sense. Thanks in advance.