Skip to content

Commit

Permalink
snapcraft/commands/daemon.start: have LXD warn if a lxc debug binary …
Browse files Browse the repository at this point in the history
…is found

Having the daemon warn about a debug client binary isn't ideal but the lxc wrapper
shall not emit warnings on every use. This warning should be infrequent enough to not
be spammy yet still provide a useful reminder to eventually remove the debug client binary.

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Nov 17, 2023
1 parent 8c09675 commit f23e60d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions snapcraft/commands/daemon.start
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,11 @@ if [ -L "${SNAP_COMMON}/lxd/lxd.db" ]; then
mv "${SNAP_DATA}/lxd/lxd.db" "${SNAP_COMMON}/lxd/lxd.db"
fi

# Warn the user if a debug LXC binary is found
if [ -x "${SNAP_COMMON}/lxc.debug" ]; then
echo "==> WARNING: A custom debug LXC binary was found!"
fi

## Start lxd
echo "=> Starting LXD"

Expand Down

0 comments on commit f23e60d

Please sign in to comment.