Skip to content

Commit

Permalink
cleanup markdown, add instructions for a btrfs pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Mar 15, 2024
1 parent b9640a3 commit 2c5362c
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Package checker for YunoHost
==================
# Package checker for YunoHost

[YunoHost project](https://yunohost.org/#/)

Expand Down Expand Up @@ -103,28 +102,28 @@ lxc remote add yunohost https://devbaseimgs.yunohost.org --public

Then you can install package check :

```
```bash
git clone https://github.com/YunoHost/package_check
cd package_check
```

Then test your packages :

```
```bash
./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 :

```
```bash
lxc image list images:debian/bullseye
```

Export the image of the architecture you want to run (for example armhf):

```
```bash
lxc image export images:debian/bullseye/armhf
```

Expand All @@ -135,21 +134,21 @@ This command will create two files.

We need to change the architecture of the metadata:

```
```bash
tar xJf lxd.tar.xz
sed -i '0,/architecture: armhf/s//architecture: amd64/' metadata.yaml
tar cJf lxd.tar.xz metadata.yaml templates
```

And reimport the image:

```
```bash
lxc image import lxd.tar.xz rootfs.squashfs --alias test-arm
```

You can now start an armhf image with:

```
```bash
lxc launch test-arm
lxc exec inspired-lamprey -- dpkg --print-architecture
```
Expand Down Expand Up @@ -217,7 +216,27 @@ test_format = 1.0

Note that you can run `python3 lib/parse_tests_toml.py /path/to/your/app/ | jq` to dump what tests will be run by package check


##### Test ids
### Test ids

The test IDs to be used in only/exclude statements are: `install.root`, `install.subdir`, `install.nourl`, `install.multi`, `backup_restore`, `upgrade`, `upgrade.someCommitId` `change_url`

## Using a btrfs storage pool

```bash
# Install btrfs tools
apt install btrfs-progs

# Create a partition. No need to format it!
fdisk /dev/sdb
# n for new then default values
# w to write and exit

# Remove the previous storage pool
incus profile device remove default root

# Create the storage pool (it will format and mount the partition)
incus storage create btrfs_pool btrfs source=/dev/sdb1

# Use it as the default pool
incus profile device add default root disk path=/ pool=btrfs_pool
```

0 comments on commit 2c5362c

Please sign in to comment.