[SRU][canonical-kernel-snaps/main][PATCH 2/2] nvidia-hooks: follow symlinks in module hooks
Aaron Jauregui
aaron.jauregui at canonical.com
Sun Mar 30 22:27:04 UTC 2025
Signed-off-by: Aaron Jauregui <aaron.jauregui at canonical.com>
---
hooks/module/install.module | 4 ++--
hooks/module/post-refresh.module | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/hooks/module/install.module b/hooks/module/install.module
index 8fb6b8e..d61ae8b 100755
--- a/hooks/module/install.module
+++ b/hooks/module/install.module
@@ -17,5 +17,5 @@ fi
rm -rf "$dest"
mkdir -p "$dest"
-find "$SNAP_COMPONENT" -name '*.ko' -exec cp '{}' "$dest" \;
-find "$SNAP_COMPONENT" -name '*.ko.zst' -exec cp '{}' "$dest" \;
+find -L "$SNAP_COMPONENT" -name '*.ko' -exec cp '{}' "$dest" \;
+find -L "$SNAP_COMPONENT" -name '*.ko.zst' -exec cp '{}' "$dest" \;
diff --git a/hooks/module/post-refresh.module b/hooks/module/post-refresh.module
index 8fb6b8e..d61ae8b 100755
--- a/hooks/module/post-refresh.module
+++ b/hooks/module/post-refresh.module
@@ -17,5 +17,5 @@ fi
rm -rf "$dest"
mkdir -p "$dest"
-find "$SNAP_COMPONENT" -name '*.ko' -exec cp '{}' "$dest" \;
-find "$SNAP_COMPONENT" -name '*.ko.zst' -exec cp '{}' "$dest" \;
+find -L "$SNAP_COMPONENT" -name '*.ko' -exec cp '{}' "$dest" \;
+find -L "$SNAP_COMPONENT" -name '*.ko.zst' -exec cp '{}' "$dest" \;
--
2.43.0
More information about the kernel-team
mailing list