Files
systemd/mkosi/mkosi.images/build/mkosi.conf.d/postmarketos/mkosi.prepare
T
Yu Watanabe 1a787e5195 mkosi: add postmarketos support
postmarketOS image can be built with for example the following mkosi.local.conf:
```
[Distribution]
Distribution=postmarketos

[Output]
Format=disk

[Build]
UseSubvolumes=yes

[Runtime]
Firmware=uefi
```
2026-06-27 00:18:16 +09:00

22 lines
526 B
Bash
Executable File

#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
if [[ "$1" == "build" ]] || ((NO_BUILD)); then
exit 0
fi
APKBUILD="pkg/$PKG_SUBDIR${GIT_SUBDIR:+/$GIT_SUBDIR}/APKBUILD"
if [[ ! -f "$APKBUILD" ]]; then
echo "APKBUILD not found at $APKBUILD, run mkosi once with -ff to make sure the APKBUILD is cloned" >&2
exit 1
fi
# shellcheck source=/dev/null
CARCH="$DISTRIBUTION_ARCHITECTURE" \
_systemd_upstream=1 \
. "$APKBUILD"
# shellcheck disable=SC2086
mkosi-install ${makedepends:?}