python3-anaconda: Fix xserver detection
PATCH 1/2 python3-anaconda: Fix xserver detection
When installing an image that has graphical interface, /etc/systemd/system/default.target will point to multi-user.target instead of graphical.target.
To fix this, use the right rpm query to detect the presence of xserver.
Signed-off-by Ovidiu Panait <[email protected]>
--- ...aconda-payload-Fix-xserver-detection.patch | 35 +++++++++++++++++++ .../anaconda/python3-anaconda_28.22.11.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 recipes-installer/anaconda/files/0001-pyanaconda-payload-Fix-xserver-detection.patch
recipes-installer/anaconda/files/0001-pyanaconda-payload-Fix-xserver-detection.patch new file +35 -0
@@ -0,0 +1,35 @@ +From f35925543f8b19c7b39cef4679cc0bc74bfa5253 Mon Sep 17 00:00:00 2001 +From: Ovidiu Panait <[email protected]> +Date: Thu, 9 May 2019 09:04:44 +0000 +Subject: [PATCH] pyanaconda: payload: Fix xserver detection + +When installing an image that has graphical interface, +/etc/systemd/system/default.target will point to multi-user.target +instead of graphical.target. + +To fix this, use the right rpm query to detect the presence of xserver. + +Upstream-Status: Inappropriate [OE specific] + +Signed-off-by: Ovidiu Panait <[email protected]> +--- + pyanaconda/payload/__init__.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/pyanaconda/payload/__init__.py b/pyanaconda/payload/__init__.py +index f67a4cd94..7929407e7 100644 +--- a/pyanaconda/payload/__init__.py ++++ b/pyanaconda/payload/__init__.py +@@ -897,8 +897,7 @@ class Payload(object): + ts = rpm.TransactionSet(util.getSysroot()) + + # XXX one day this might need to account for anaconda's display mode +- if ts.dbMatch("provides", 'service(graphical-login)').count() and \ +- ts.dbMatch('provides', 'xorg-x11-server-Xorg').count() and \ ++ if ts.dbMatch('provides', 'xserver-xorg').count() and \ + not flags.usevnc: + # We only manipulate the ksdata. The symlink is made later + # during the config write out. +-- +2.18.1 +
recipes-installer/anaconda/python3-anaconda_28.22.11.bb +1 -0
@@ -119,6 +119,7 @@ SRC_URI = "git://github.com/rhinstaller/anaconda;protocol=https;branch=f28-relea file://0001-Make-pyanaconda.dbus.typing-work-with-Python-3.7-159.patch \ file://0068-disable-chronyd.patch \ file://0069-disable-location-detection-based-on-IP-address.patch \ + file://0001-pyanaconda-payload-Fix-xserver-detection.patch \ " SRCREV = "0b0d2f86b4323e6ee7a186bc8181ffe7553c9235"
Signature · 1 line
2.20.1
PATCH 2/2 anaconda_support_image: Add package-management to IMAGE_FEATURES
Currently, if a target image does not contain the rpm database, any rpm queries that anaconda executes will fail.
To fix this, add the rpm database to all images.
Signed-off-by Ovidiu Panait <[email protected]>
--- classes/anaconda_support_image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
classes/anaconda_support_image.bbclass +1 -1
@@ -1,5 +1,5 @@ FEATURE_PACKAGES_anaconda-support = "packagegroup-anaconda-support" -IMAGE_FEATURES_append = " anaconda-support" +IMAGE_FEATURES_append = " anaconda-support package-management" # Generate filesystem images for image copy install IMAGE_FSTYPES += "ext4"
Signature · 1 line
2.20.1