Skip to content

Commit

Permalink
Revert "snapcraft: apply temporary workaround for core24 to fix snap …
Browse files Browse the repository at this point in the history
…reload"

This reverts commit 5db3438.

We don't need it starting from snapd 2.64 as it includes:
canonical/snapd#14118

Signed-off-by: Alexander Mikhalitsyn <[email protected]>
  • Loading branch information
mihalicyn committed Jul 3, 2024
1 parent 1a5b780 commit c2e2122
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions snapcraft/commands/daemon.start
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ fi
# Detect base name
SNAP_BASE="$(sed -n '/^name:/ s/^name:\s*\(core[0-9]\{2\}\)/\1/p' /meta/snap.yaml)"

# Temporary hack to workaround systemctl reload snap.lxd.daemon
# problem with core24-based LXD snap
if [ "${SNAP_BASE}" = "core24" ]; then
_LXD_SNAP_DEVCGROUP_CONFIG="/var/lib/snapd/hostfs/var/lib/snapd/cgroup/snap.lxd.device"
grep -qxF 'self-managed=true' "${_LXD_SNAP_DEVCGROUP_CONFIG}" || echo 'self-managed=true' >> "${_LXD_SNAP_DEVCGROUP_CONFIG}"
fi

# Wait for appliance configuration
if [ "${LXD_APPLIANCE}" = "true" ]; then
while :; do
Expand Down

0 comments on commit c2e2122

Please sign in to comment.