I want to create a symlink, foo.txt, needed at system startup, to another file, bar.txt on a different mount point. The mounted partitions are different physical drives as well.ln -s /baz/bar.txt /foo.txtEDIT:So far no problem. The Symlink is created and is valid. The question relates to what will happen when partition at /bar disappears./EDITMy dilemma is this, the partition mounted at /baz may not be present at startup.My question -> To avoid obvious problems, can I specify a fall back file at the filesystem level that the symlink will resolve to rather than simply breaking? Or am i stuck doing this at the application level?Using Debian linux on an ext4 (the default for the latest release of Debian) filesystem FWIW.
Specify a fallback file for a broken symbolic link
debian;filesystems;symlink
Make the replacement file /baz/bar.txt while the filesystem is NOT mounted.When /baz gets it's additional filesystem, this file will be below it and when the mounted filesystem has bar.txt, this will seem to replace the other file of below...