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
..
50-acrn.netdev create acrn hypervisor/kernel deb packaging 2020-07-20 11:44:07 +08:00
50-acrn.network create acrn hypervisor/kernel deb packaging 2020-07-20 11:44:07 +08:00
50-eth.network create acrn hypervisor/kernel deb packaging 2020-07-20 11:44:07 +08:00
50-tap0.netdev create acrn hypervisor/kernel deb packaging 2020-07-20 11:44:07 +08:00
100_ACRN Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
README.rst doc: Update Debian packaging readme 2022-02-10 12:43:59 -08:00
acrn-board-inspector.postinst Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
acrn-board-inspector.prerm deb-pkg: add acrn-hypervisor and acrn-board-inspector into debian package 2021-11-02 15:31:18 +08:00
acrn-hypervisor.postinst Fix Debian packaging postinst partition finding 2024-06-26 13:56:01 +08:00
acrn-kernel.postinst Fix Debian packaging postinst partition finding 2024-06-26 13:56:01 +08:00
compile_iasl.py Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
deb.json deb-pkg: add OVMF_debug.fd in acrn deb 2022-04-13 14:34:25 +08:00
gen_acrn_deb.py misc: fix invalid escape sequence in python 3.12 2024-05-09 20:58:21 +08:00
release.json misc:update packaging tool,add pre-check scripts/ add patch function /optimize 2020-08-24 09:12:45 +08:00

README.rst

.. _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.