Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ The target chroot is the actual root filesystem being produced. Tasks that need
* qemu-img
* xorriso
* cpio
* wget
* git
* sha256sum
* python3
* python3-colorama
Expand All @@ -49,12 +51,12 @@ This will run from any x86_64 Linux distribution that supports KVM, QEMU, python

* From Ubuntu/Debian based distros:
```
apt-get update && apt-get install -y qemu-system-x86 qemu-utils xorriso cpio
apt-get update && apt-get install -y qemu-system-x86 qemu-utils xorriso cpio wget git
```

* From Fedora/Redhat based distros:
```
dnf install qemu-system-x86 qemu-img xorriso cpio
dnf install qemu-system-x86 qemu-img xorriso cpio wget git
```

On either distribution, next install distro-seed, the python requirements and check the dependencies:
Expand Down
14 changes: 14 additions & 0 deletions common/utils/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,20 @@ def check_bin_in_path(bin):
print("cpio is required to repack the Debian installer initrd")
ret = 1

if check_bin_in_path('wget'):
print("Pass: wget available")
else:
print("Fail: wget missing")
print("wget is required by distro-seed download tasks")
ret = 1

if check_bin_in_path('git'):
print("Pass: git available")
else:
print("Fail: git missing")
print("git is required by distro-seed source and kernel tasks")
ret = 1

if check_bin_in_path('sha256sum'):
print("Pass: sha256sum available")
else:
Expand Down