Files
acrn-hypervisor/misc/packaging
Xin Zhang d0fed9901d Fix Debian packaging postinst partition finding
If the root partition is bind mounted with / and another, the current
postinst script (using command lsblk) will fail to find the partition:
$type will be "/" only and cause the following command may find the
wrong partition.

Ubuntu 22.04 desktop with firefox snap by default:
```
> lsblk
nvme0n1      259:19   0 931.5G  0 disk
├─nvme0n1p1  259:20   0   243M  0 part /boot/efi
├─nvme0n1p2  259:21   0 927.5G  0 part /var/snap/firefox/common/host-hunspell
│                                      /
```

And current command forces the root partition to be ext4.

This patch fixes the two issues.

Tracked-On: #8532

Signed-off-by: Xin Zhang <xin.x.zhang@intel.com>
2024-06-26 13:56:01 +08:00
..
2022-02-10 12:43:59 -08:00

.. _debian_packaging:

ACRN Installation via Debian Packages
#####################################

Debian packages provide a simple way to package ACRN configurations on
a development computer. You can then copy the packages onto your target system,
install the packages, and reboot the system with ACRN and an Ubuntu Service VM
up and running.

ACRN does not distribute pre-built Debian packages for the hypervisor or kernel
because ACRN and the kernel are configured based on your specific hardware and
scenario configurations, as described in the :ref:`overview_dev`. Instead after
configuring ACRN to your needs, Debian packages are created when you build your
ACRN hypervisor and ACRN kernel via ``Makefile`` commands.

All the configuration files and scripts used by the Makefile to build the Debian
packages are in the ``misc/packaging`` folder. The ``gen_acrn_deb.py`` script
does all the work to build the Debian packages so you can copy and install them
on your target system.

For build and installation steps, see :ref:`gsg_build` in the Getting Started
Guide.