Files
kde-linux/mkosi.prepare.chroot
Ian Monroe 9a3481e59e install all packages outside the chroot
use the mkosi sandbox to install, so now the arch linux packages
are all cached properly
2024-12-15 15:42:09 +00:00

19 lines
634 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
# SPDX-FileCopyrightText: 2023 Harald Sitter <sitter@kde.org>
# If mkosi.prepare (PrepareScripts=) exists, it is first called with the final
# argument, right after the software packages are installed. It is called a
# second time with the build command line parameter, right after the build
# packages are installed and the build overlay mounted on top of the image's
# root directory .
set -ex
echo "$@"
if [ "$1" = "final" ]; then
env
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
fi