On 10/08/2021 18:02, Jon Turney wrote:
Revised from [1], this adds an '--symlink-type {sys, native, wsl}' option,
which controls the type of symlinks created by setup and the post-install
scripts it invokes [2].

In the base install, there are 4 symlinks which can't be created using
the native method (and hence fall back to sys method):

package          from                                     -> to                 
        reason

terminfo        /usr/lib/terminfo                         -> ../share/terminfo  
        mount table
terminfo        /usr/share/terminfo/6a/jfbterm            -> ../6b/kon          
        target is in terminfo-extra package, unpacked later as unpack order isn't 
dependency order (only postinstall script run order?)
file            /usr/share/file/magic                     -> ../magic           
        target is also a symlink, later in the same archive
ca-certificates /usr/libexec/p11-kit/trust-extract-compat -> 
../../bin/update-ca-trust  mount table

'mount table' means that in the current setup architecture, 'from' has already been translated through the mount table into a native path before we can try to locate 'to' relative to it, but it exists relative to the untranslated path.

It's probably possible to improve the handling of these cases with more effort.

Reply via email to