+Additional steps if you have installed LXD with snap...
+
+# Adding lxc/lxd to /usr/local/bin to make sure we can use them easily even
+# with sudo for which the PATH is defined in /etc/sudoers and probably doesn't
+# include /snap/bin
+sudo ln -s /snap/bin/lxc /usr/local/bin/lxc
+sudo ln -s /snap/bin/lxd /usr/local/bin/lxd
+
+
+
+You can now setup and use `package_check`:
+
+```bash
+git clone https://github.com/YunoHost/package_check
+cd package_check
+./package_check.sh your_app_ynh
+```
+
+## Features
+
The script is able to perform the following tests:
- [Linter](https://github.com/YunoHost/package_linter)
@@ -48,72 +91,6 @@ The app is expected to contain a `tests.toml` file (see below) to tell package_c
-h, --help Display this help
```
-## Deploying package_check
-
-First you need to install the system dependencies.
-
-Package check is based on the LXD/LXC ecosystem. Be careful that
-**LXD can conflict with other installed virtualization technologies such as
-libvirt or vanilla LXCs**, especially because they all require a daemon based
-on DNSmasq which may list on port 53.
-
-On a Debian-based system (regular Debian, Ubuntu, Mint ...), LXD can be
-installed using `snapd`. On other systems like Archlinux, you will probably also
-be able to install `snapd` using the system package manager (or even
-`lxd` directly).
-
-```bash
-apt install git snapd lynx jq
-sudo snap install core
-sudo snap install lxd
-
-# Adding lxc/lxd to /usr/local/bin to make sure we can use them easily even
-# with sudo for which the PATH is defined in /etc/sudoers and probably doesn't
-# include /snap/bin
-sudo ln -s /snap/bin/lxc /usr/local/bin/lxc
-sudo ln -s /snap/bin/lxd /usr/local/bin/lxd
-```
-
-NB. : you should **make sure that your user is in the `lxd` group** so that it's
-able to run `lxc` commands without sudo... You can check this with the command
-`groups` where you should see `lxd`. Otherwise, add your user to this group
-(don't forget that you may need to reload your entire graphical session for this
-to propagate (sigh))
-
-Then you shall initialize LXD which will ask you a bunch of question. Usually
-answering the default (just pressing enter) to all questions is fine. Just pay
-attention to :
-
-- the storage backend driver. Possibly `zfs` is the best, but requires a kernel >= 5.x
- and corresponding kernel module loaded. You can fallback to the `dir` driver.
-- the size of the default storage it'll create (the default is 5G but you may
- want 10G for heavy usage ?) (if you're using the 'dir' driver, this won't be asked)
-
-```bash
-lxd init
-```
-
-The base images for tests are centralized on `devbaseimgs.yunohost.org` and we'll download them from there to speed things up:
-
-```bash
-lxc remote add yunohost https://devbaseimgs.yunohost.org --public
-```
-
-(At the time this README is written, fingerprint is d9ae6e76c374e3c58c3c20a881cffe7435809adb3b222ec393805f5bd01bb522 )
-
-Then you can install package check :
-
-```
-git clone https://github.com/YunoHost/package_check
-cd package_check
-```
-
-Then test your packages :
-
-```
-./package_check.sh your_app_ynh
-```
-
## You can start a container on a different architecture with some hacks
Install the package `qemu-user-static` and `binfmt-support`, then list of all available images :