• Klaus Aehlig's avatar
    If possible, replace symbolic links in place · 645bba3a
    Klaus Aehlig authored
    
    
    Naive 'ln -s -f a b' will put the link inside 'b', if
    'b' is (a symlink to) a directory; so, during upgrades,
    the links in $(sysconfdir) cannot be updated this way.
    Removing and readding works, however leaves the risk
    of the upgrade process dying in that very moment, thus
    leaving 'gnt-cluster' a dangling link, so that the --resume
    option is of no help. On GNU systems, avoid this problem
    by using the -T option of GNU ln.
    Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
    Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
    645bba3a
gnt_cluster.py 68.7 KB