diff --git a/scripts/build.sh b/scripts/build.sh index f4a41c001a..06e695cd31 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -51,15 +51,6 @@ run_scripts() { } run_scripts "pre" -# Remove RPMs. -get_yaml_array remove_rpms '.rpm.remove[]' -if [[ ${#remove_rpms[@]} -gt 0 ]]; then - echo "-- Removing RPMs defined in recipe.yml --" - echo "Removing: ${remove_rpms[@]}" - rpm-ostree override remove "${remove_rpms[@]}" - echo "---" -fi - # Install RPMs. get_yaml_array install_rpms '.rpm.install[]' if [[ ${#install_rpms[@]} -gt 0 ]]; then @@ -69,6 +60,15 @@ if [[ ${#install_rpms[@]} -gt 0 ]]; then echo "---" fi +# Remove RPMs. +get_yaml_array remove_rpms '.rpm.remove[]' +if [[ ${#remove_rpms[@]} -gt 0 ]]; then + echo "-- Removing RPMs defined in recipe.yml --" + echo "Removing: ${remove_rpms[@]}" + rpm-ostree override remove "${remove_rpms[@]}" + echo "---" +fi + # Toggle yafti, which provides the "first boot" experience, https://github.com/ublue-os/yafti. FIRSTBOOT_DATA="/usr/share/ublue-os/firstboot" FIRSTBOOT_LINK="/usr/etc/profile.d/ublue-firstboot.sh"