From 530d3c69d52e702531b8c2b60dc4efa0afe1d51c Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Thu, 10 Oct 2024 14:23:39 +0100 Subject: [PATCH] Revert "lxd-stophook: Adds stop hook wrapper for the lxd command" This reverts commit 4d10cbd366cd4e9d0bc05c7f12073f620e20941d. Signed-off-by: Thomas Parrott --- snapcraft.yaml | 1 - snapcraft/wrappers/lxd-stophook | 8 -------- 2 files changed, 9 deletions(-) delete mode 100755 snapcraft/wrappers/lxd-stophook diff --git a/snapcraft.yaml b/snapcraft.yaml index dc118f276..66c609377 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1602,7 +1602,6 @@ parts: organize: commands/snap-query: bin/ hooks/: snap/hooks/ - wrappers/lxd-stophook: bin/lxd wrappers/gpu-2404-custom-wrapper: bin/ wrappers/editor: bin/ wrappers/remote-viewer: bin/ diff --git a/snapcraft/wrappers/lxd-stophook b/snapcraft/wrappers/lxd-stophook deleted file mode 100755 index 55dc33177..000000000 --- a/snapcraft/wrappers/lxd-stophook +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# Use exec so that this script process is replaced. -# This avoids polluting the process tree with this wrapper script. -if [ "$1" = "callhook" ]; then - exec /snap/lxd/current/bin/lxd-user "$@" -fi - -exec lxd "$@"