From 4a5387acac9f5e5e540d706f1019a6f2dc9278a4 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 7 Nov 2024 02:19:41 +0100 Subject: [PATCH] fix dri problem. now works on real hardware --- airootfs/etc/os-release | 2 +- airootfs/etc/systemd/system/abrechenbarkeit@.service | 2 ++ airootfs/etc/systemd/system/default.target | 1 + airootfs/etc/udev/rules.d/99-dri.rules | 1 + profiledef.sh | 2 +- 5 files changed, 6 insertions(+), 2 deletions(-) create mode 120000 airootfs/etc/systemd/system/default.target create mode 100644 airootfs/etc/udev/rules.d/99-dri.rules diff --git a/airootfs/etc/os-release b/airootfs/etc/os-release index ba2d66b..512cbea 100644 --- a/airootfs/etc/os-release +++ b/airootfs/etc/os-release @@ -2,5 +2,5 @@ NAME="Abrechenbarkeit System Distribution" PRETTY_NAME="Abrechenbarkeit System Distribution" ID=abrechenbarkeit BUILD_ID=rolling -ANSI_COLOR="38;2;23;147;209" +ANSI_COLOR="38;2;230;0;255" HOME_URL="https://codeberg.org/metamuffin/abrechenbarkeit" diff --git a/airootfs/etc/systemd/system/abrechenbarkeit@.service b/airootfs/etc/systemd/system/abrechenbarkeit@.service index 3189eee..cf079c5 100644 --- a/airootfs/etc/systemd/system/abrechenbarkeit@.service +++ b/airootfs/etc/systemd/system/abrechenbarkeit@.service @@ -7,6 +7,8 @@ Wants=dbus.socket systemd-logind.service After=dbus.socket systemd-logind.service Conflicts=getty@%i.service After=getty@%i.service +After=dev-dri-card1.device +Requires=dev-dri-card1.device [Service] Type=simple diff --git a/airootfs/etc/systemd/system/default.target b/airootfs/etc/systemd/system/default.target new file mode 120000 index 0000000..cf9fa51 --- /dev/null +++ b/airootfs/etc/systemd/system/default.target @@ -0,0 +1 @@ +/usr/lib/systemd/system/graphical.target \ No newline at end of file diff --git a/airootfs/etc/udev/rules.d/99-dri.rules b/airootfs/etc/udev/rules.d/99-dri.rules new file mode 100644 index 0000000..5761007 --- /dev/null +++ b/airootfs/etc/udev/rules.d/99-dri.rules @@ -0,0 +1 @@ +SUBSYSTEM=="drm", KERNEL=="card1", TAG+="systemd" diff --git a/profiledef.sh b/profiledef.sh index 78bbef3..42591de 100644 --- a/profiledef.sh +++ b/profiledef.sh @@ -12,7 +12,7 @@ bootmodes=('uefi-ia32.systemd-boot.esp' 'uefi-x64.systemd-boot.esp') arch="x86_64" pacman_conf="pacman.conf" airootfs_image_type="squashfs" -airootfs_image_tool_options=('-comp' 'zstd' '-Xcompression-level' '5') +airootfs_image_tool_options=('-comp' 'zstd' '-Xcompression-level' '10') bootstrap_tarball_compression=(zstd -c -T0 --long -19) file_permissions=( ["/etc/shadow"]="0:0:400"