diff --git a/pkgs/build-package.sh b/pkgs/build-package.sh index 7f848588c..65daa2721 100755 --- a/pkgs/build-package.sh +++ b/pkgs/build-package.sh @@ -4,6 +4,11 @@ set -x sudo chown -R build:build /workdir/pkgs +# ChimeraOS now uses dracut and excludes mkinitcpio due to pacman hooks causing problems +# Ensure package conflicting with mkinitcpio can be built +sudo pacman -S --noconfirm dracut +sudo pacman -R --noconfirm mkinitcpio + PIKAUR_CMD="PKGDEST=/workdir/pkgs pikaur --noconfirm --build-gpgdir /etc/pacman.d/gnupg -S -P /workdir/${1}/PKGBUILD" PIKAUR_RUN=(bash -c "${PIKAUR_CMD}") "${PIKAUR_RUN[@]}"