chore: Add patched anaconda sources

This commit is contained in:
Kyle Gospodnetich 2024-08-03 13:31:32 -07:00
parent 42b5a2eeed
commit 48ffa8f6e4
2 changed files with 9413 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,35 @@
diff -Naur a/pyanaconda/display.py b/pyanaconda/display.py
--- a/pyanaconda/display.py
+++ b/pyanaconda/display.py
@@ -237,6 +237,14 @@
:param str runres: a resolution specification string
:param gui_mode: an Anaconda display mode
"""
+
+ # Get product name
+ with open("/sys/devices/virtual/dmi/id/product_name") as f:
+ dmi = f.read().strip()
+
+ if "Jupiter" in dmi or "Galileo" in dmi:
+ runres = "1280x800"
+
if runres and gui_mode and not flags.usevnc:
set_x_resolution(runres)
diff -Naur a/pyanaconda/ui/gui/__init__.py b/pyanaconda/ui/gui/__init__.py
--- a/pyanaconda/ui/gui/__init__.py
+++ b/pyanaconda/ui/gui/__init__.py
@@ -576,6 +576,13 @@
if not primary_monitor:
return
+ with open("/sys/devices/virtual/dmi/id/product_name") as f:
+ dmi = f.read().strip()
+
+ if "Jupiter" in dmi or "Galileo" in dmi:
+ util.setenv("GDK_SCALE", "1")
+ return
+
monitor_geometry = primary_monitor.get_geometry()
monitor_scale = primary_monitor.get_scale_factor()
monitor_width_mm = primary_monitor.get_width_mm()