Force symlink creation for zpool.d compat links

gmake install fails when zpool.d compat links already exist.

Force the symlinks to be recreated if already present.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11633
This commit is contained in:
Ryan Moeller 2021-02-24 12:49:59 -05:00 committed by GitHub
parent b9c07ec71b
commit 94fa1c3d96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -179,5 +179,5 @@ install-data-hook:
ln -s "$(zpoolexecdir)/$${f}" "$(DESTDIR)$(zpoolconfdir)"; \
done
for l in $(zpoolcompatlinks); do \
(cd "$(DESTDIR)$(zpoolcompatdir)"; ln -s $${l} ); \
(cd "$(DESTDIR)$(zpoolcompatdir)"; ln -sf $${l} ); \
done