mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
cleanup markdown, add instructions for a btrfs pool
This commit is contained in:
parent
b9640a3ffb
commit
2c5362c631
1 changed files with 30 additions and 11 deletions
41
README.md
41
README.md
|
@ -1,5 +1,4 @@
|
|||
Package checker for YunoHost
|
||||
==================
|
||||
# Package checker for YunoHost
|
||||
|
||||
[YunoHost project](https://yunohost.org/#/)
|
||||
|
||||
|
@ -103,14 +102,14 @@ 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
|
||||
```
|
||||
|
||||
|
@ -118,13 +117,13 @@ Then test your packages :
|
|||
|
||||
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
|
||||
```
|
||||
|
||||
|
@ -135,7 +134,7 @@ 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
|
||||
|
@ -143,13 +142,13 @@ 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
|
||||
```
|
||||
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue