Skip to content

Commit

Permalink
docs: Fix snapcraft build instructions and explicitly include LXD pre…
Browse files Browse the repository at this point in the history
…requisite

The current documentation for building snapd with snapcraft doesn't work in 24.04. It also doesn't
mention the LXD requirement, which leads to uncertainty about the build process when lxd asks many
config questions and isn't mentioned in the build instructions. This documentation change:
- Adds --classic flag to snap install for snapcraft, as it is required
- Removes --channel option from snapcraft call as it no longer exists in 8.5.1
- Adds necessary and missing sudo to snap install
- Makes the lxd install and lxd init step explicit
  • Loading branch information
wheelerz committed Jan 16, 2025
1 parent 846e5de commit c3d5585
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,26 @@ Snapcraft 8.x or later is expected.
Install snapcraft:

```
sudo snap install snapcraft
sudo snap install snapcraft --classic
```

Install and setup lxd:

```
sudo snap install lxd
sudo lxd init --minimal
```

Then run snapcraft:

```
snapcraft --channel=latest/stable
snapcraft
```

Now the snapd snap that was just built can be installed with:

```
snap install --dangerous snapd_*.snap
sudo snap install --dangerous snapd_*.snap
```

To go back to using snapd from the store instead of the custom version we
Expand Down

0 comments on commit c3d5585

Please sign in to comment.