55b479b54f
This adds support for a GPT label type to the partitioning code. This is relatively straight-forward translation of the partition config into a sgparted command-line and subsequent call. A unit test is added based on a working GPT/EFI configuration and the fedora-minimal functional test is updated to build a single-partition GPT based using the new block-device-gpt override element. See notes in the sample configuration files about partition requirements and types. Documentation has been updated. Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Change-Id: I6b819a8071389e7e4eb4874ff7750bd192695ff2
53 lines
1.1 KiB
Bash
Executable file
53 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
sudo apt-get update || true
|
|
sudo apt-get install -y --force-yes \
|
|
apt-transport-https \
|
|
bzip2 \
|
|
debootstrap \
|
|
docker.io \
|
|
dosfstools \
|
|
gdisk \
|
|
inetutils-ping \
|
|
lsb-release \
|
|
kpartx \
|
|
python-lzma \
|
|
qemu-utils \
|
|
rpm \
|
|
uuid-runtime \
|
|
yum-utils || \
|
|
sudo yum -y install --enablerepo=epel \
|
|
bzip2 \
|
|
dpkg \
|
|
debootstrap \
|
|
docker \
|
|
dosfstools \
|
|
gdisk \
|
|
kpartx \
|
|
util-linux \
|
|
qemu-img \
|
|
policycoreutils-python || \
|
|
sudo zypper -n install \
|
|
bzip2 \
|
|
debootstrap \
|
|
docker \
|
|
dosfstools \
|
|
gdisk \
|
|
kpartx \
|
|
util-linux \
|
|
python-pyliblzma \
|
|
yum-utils \
|
|
qemu-tools || \
|
|
sudo emerge \
|
|
app-arch/bzip2 \
|
|
app-emulation/qemu \
|
|
dev-python/pyyaml \
|
|
sys-block/parted \
|
|
sys-apps/gptfdisk \
|
|
sys-fs/multipath-tools \
|
|
sys-fs/dosfstools \
|
|
qemu-img \
|
|
yum-utils
|