Skip to content

Commit

Permalink
fixup! run-snapd-from-snap: set the current symlink before bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
valentindavid authored and Meulengracht committed Feb 21, 2024
1 parent df75a4b commit bbfe0d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/usr/lib/core/run-snapd-from-snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ set -eux
run_on_unseeded() {
SNAPD_BASE_DIR="/run/mnt/snapd"

# We need to initialize /snap/snapd/current symlink so that the
# dynanic linker
# /snap/snapd/current/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
# is available to run snapd.
[ -d /snap/snapd ] || mkdir -p /snap/snapd
ln -sf "${SNAPD_BASE_DIR}" /snap/snapd/current

Expand Down

0 comments on commit bbfe0d3

Please sign in to comment.