Merge "Only enable dbus-daemon for fedora-29 and below"
This commit is contained in:
commit
8c8b856c27
@ -21,12 +21,8 @@ fi
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
# Ensure that dbus-broker is enabled; it seems that because of the
|
||||
# transition between dbus-daemon and dbus-broker (see
|
||||
# https://pagure.io/fesco/issue/1853) the .spec files could possibly
|
||||
# not enable this (likely related to ordering or something we do in
|
||||
# the non-standardish chroot building) and a 2019 system with no dbus
|
||||
# is very unhappy (networkmanager fails, etc).
|
||||
if [[ ${DISTRO_NAME} == 'fedora' && ${DIB_RELEASE} -ge 29 ]]; then
|
||||
systemctl --no-reload enable dbus-broker.service
|
||||
# Ensure that dbus-daemon is enabled; fedora 30 and above has switched to
|
||||
# dbus-broker.
|
||||
if [[ ${DISTRO_NAME} == 'fedora' && ${DIB_RELEASE} -le 29 ]]; then
|
||||
systemctl --no-reload enable dbus-daemon.service
|
||||
fi
|
@ -278,14 +278,6 @@ _base_packages="systemd passwd findutils sudo util-linux-ng "
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1398505
|
||||
_base_packages+="systemd-udev "
|
||||
|
||||
# F29 moved to dbus-broker as the default, but dbus-daemon is
|
||||
# still available. Explicitly pull it in; note we have an
|
||||
# install.d script to enable the service explicitly it as this
|
||||
# seems required.
|
||||
if [[ ${DISTRO_NAME} = fedora && ${DIB_RELEASE} -ge 29 ]]; then
|
||||
_base_packages+="dbus-broker"
|
||||
fi
|
||||
|
||||
# bootstrap the environment within the chroot; bring in new
|
||||
# metadata with an update and install some base packages we need.
|
||||
sudo -E chroot $TARGET_ROOT ${YUM} -y update
|
||||
|
Loading…
Reference in New Issue
Block a user