diff --git a/debian/rules b/debian/rules index 19c7f5a9..5edfad19 100755 --- a/debian/rules +++ b/debian/rules @@ -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 + 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 + 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/ : diff --git a/docs/install.rst b/docs/install.rst index 0c4ce274..0b56fa00 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -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