mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-03 17:41:58 +02:00
fix: LED driver for every kernel on a fresh install
The DKMS override was written to /etc/dkms before dkms was installed, when that folder doesn't exist yet: the write failed silently and other kernels (e.g. LTS) built against the running one and failed. Create the folder first and stop on a failed write. VERSION 0.9.1.
This commit is contained in:
1 parent
986b3c8c07
commit
2e107e537e
3 files changed
+18
-5
No files matched your search
+10
-2
@@ -5,7 +5,15 @@ All notable changes, per version and per commit. Versions follow
|
|||||||
`steamify.sh`. Versions before 0.7.0 were numbered afterwards,
|
`steamify.sh`. Versions before 0.7.0 were numbered afterwards,
|
||||||
one per merged pull request.
|
one per merged pull request.
|
||||||
|
|
||||||
## 0.9.0 - 2026-09-24
|
## 0.9.1 - 2026-09-24
|
||||||
|
|
||||||
|
- **fix: LED driver for every kernel on a fresh install**
|
||||||
|
- The DKMS override was written to `/etc/dkms` before `dkms` was installed,
|
||||||
|
when that folder doesn't exist yet, so it silently failed and the build
|
||||||
|
for other kernels (e.g. LTS) failed as in 0.6. The folder is created first
|
||||||
|
now, and a failed write stops with an error.
|
||||||
|
|
||||||
|
## 0.9.0 - 2026-09-24 (#9)
|
||||||
|
|
||||||
The wizard is now called **Steamify CachyOS**, and can put a shortcut to
|
The wizard is now called **Steamify CachyOS**, and can put a shortcut to
|
||||||
itself on the desktop.
|
itself on the desktop.
|
||||||
@@ -32,7 +40,7 @@ itself on the desktop.
|
|||||||
bundle under both names, so `.../download/setup-gamescope-boot.sh` keeps
|
bundle under both names, so `.../download/setup-gamescope-boot.sh` keeps
|
||||||
working. The Steamify shortcut runs `steamify.sh`.
|
working. The Steamify shortcut runs `steamify.sh`.
|
||||||
- `b0553ae` **docs: Shorter README intro**
|
- `b0553ae` **docs: Shorter README intro**
|
||||||
- **feat: The shortcut's window closes itself after a countdown**
|
- `afc05b0` **feat: The shortcut's window closes itself after a countdown**
|
||||||
- After the wizard ends, a 10-second countdown closes the Konsole window
|
- After the wizard ends, a 10-second countdown closes the Konsole window
|
||||||
(Enter closes it right away); after an error it stays open until Enter.
|
(Enter closes it right away); after an error it stays open until Enter.
|
||||||
- A failed download now counts as an error (`pipefail`) instead of running
|
- A failed download now counts as an error (`pipefail`) instead of running
|
||||||
|
|||||||
@@ -56,8 +56,13 @@ install_valve_led_driver() {
|
|||||||
# got the running kernel's tree and failed (wrong kernel, and gcc against
|
# got the running kernel's tree and failed (wrong kernel, and gcc against
|
||||||
# a clang-built tree). DKMS reads this override after the package's
|
# a clang-built tree). DKMS reads this override after the package's
|
||||||
# dkms.conf; written before the install so its own build works too.
|
# dkms.conf; written before the install so its own build works too.
|
||||||
printf '%s\n' "# Written by cachyos-gamescope-boot: build for DKMS's target kernel." \
|
# On a fresh system dkms isn't installed yet, so /etc/dkms doesn't exist.
|
||||||
'MAKE[0]="make KVERSION=${kernelver}"' | sudo tee "$LED_DKMS_OVERRIDE" >/dev/null
|
sudo mkdir -p "$(dirname "$LED_DKMS_OVERRIDE")"
|
||||||
|
if ! printf '%s\n' "# Written by cachyos-gamescope-boot: build for DKMS's target kernel." \
|
||||||
|
'MAKE[0]="make KVERSION=${kernelver}"' | sudo tee "$LED_DKMS_OVERRIDE" >/dev/null; then
|
||||||
|
err "Couldn't write $LED_DKMS_OVERRIDE; without it the LED driver only builds for the running kernel."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
if ! pacman -Qi leds-valve-dkms-git >/dev/null 2>&1; then
|
if ! pacman -Qi leds-valve-dkms-git >/dev/null 2>&1; then
|
||||||
info "Installing leds-valve-dkms-git from the AUR via $aur_helper (non-interactive)..."
|
info "Installing leds-valve-dkms-git from the AUR via $aur_helper (non-interactive)..."
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
set -uo pipefail
|
set -uo pipefail
|
||||||
|
|
||||||
# Release version, see CHANGELOG.md.
|
# Release version, see CHANGELOG.md.
|
||||||
VERSION=0.9.0
|
VERSION=0.9.1
|
||||||
|
|
||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user