Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install both mtda docker and qemu apt packages simultaneously #188

Merged
Merged
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
8 changes: 4 additions & 4 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ override_dh_auto_install:
mv debian/mtda/usr/lib/python*/dist-packages/mtda/console/docker.py debian/mtda-docker/usr/lib/python3/dist-packages/mtda/console/
mv debian/mtda/usr/lib/python*/dist-packages/mtda/power/docker.py debian/mtda-docker/usr/lib/python3/dist-packages/mtda/power/
mv debian/mtda/usr/lib/python*/dist-packages/mtda/storage/docker.py debian/mtda-docker/usr/lib/python3/dist-packages/mtda/storage/
install -m 0755 -d debian/mtda-docker/etc/mtda
install -m 0644 configs/docker.ini debian/mtda-docker/etc/mtda/config
chombourger marked this conversation as resolved.
Show resolved Hide resolved
install -m 0755 -d debian/mtda-docker/usr/share/doc/mtda-docker/examples/
install -m 0644 configs/docker.ini debian/mtda-docker/usr/share/doc/mtda-docker/examples/mtda.ini
:
install -m 0755 -d debian/mtda-kvm/etc/mtda
install -m 0644 configs/qemu.ini debian/mtda-kvm/etc/mtda/config
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ship to debian/mtda-docker/usr/share/doc/mtda-kvm/examples/mtda.ini

install -m 0755 -d debian/mtda-kvm/usr/share/doc/mtda-kvm/examples/
install -m 0644 configs/qemu.ini debian/mtda-kvm/usr/share/doc/mtda-kvm/examples/mtda.ini
install -m 0755 -d debian/mtda-kvm/var/lib/mtda
install -m 0644 configs/qemu-ovmf-vars.fd debian/mtda-kvm/var/lib/mtda/
:
Expand Down
17 changes: 17 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,20 @@ You may check your installation with the ``help`` command::

$ export PATH=$HOME/.local/bin:$PATH
$ mtda-cli help

Using apt for installing mtda-docker and mtda-kvm
-------------------------------------------------

Docker and KVM may be used as virtual platforms by respectively installing the mtda-docker and mtda-kvm packages from the Apt package feeds described above.

`mtda-docker` may be installed as follows::

$ sudo apt-get install mtda-docker
$ sudo mkdir -p /etc/mtda/
$ sudo cp /usr/share/doc/mtda-docker/examples/docker.ini /etc/mtda/config

`mtda-kvm` may be installed as follows::

$ sudo apt-get install mtda-kvm
$ sudo mkdir -p /etc/mtda/
$ sudo cp /usr/share/doc/mtda-kvm/examples/qemu.ini /etc/mtda/config