A pending migration must rebuild after restoring its missing display configuration even when another user previously completed the machine-wide rebuild. Remove the fixed marker before writing the drop-in so failed writes and builds remain retryable. Fresh installation already rebuilds after hardware setup through the ISO finalizer. Co-Authored-By: GPT-6.1-Sol XHigh <noreply@openai.com> Co-Authored-By: Greptile <165735046+greptile-apps[bot]@users.noreply.github.com>
14 lines
657 B
Bash
14 lines
657 B
Bash
if omarchy-hw-dell-xps13-dx13260-ptl; then
|
|
display_conf="/etc/limine-entry-tool.d/dell-xps13-ptl-display.conf"
|
|
display_rebuild_marker="/var/lib/omarchy/migrations/1790916392"
|
|
display_cmdline='KERNEL_CMDLINE[default]+=" xe.enable_psr2_sel_fetch=0 xe.enable_panel_replay=0"'
|
|
|
|
if [[ ! -f $display_conf ]] || ! grep -Fxq "$display_cmdline" "$display_conf"; then
|
|
# A repaired drop-in invalidates the previous boot image rebuild.
|
|
sudo rm -f "$display_rebuild_marker"
|
|
sudo mkdir -p /etc/limine-entry-tool.d
|
|
printf '%s\n' '# Dell XPS 13 Panther Lake display workaround' "$display_cmdline" |
|
|
sudo tee "$display_conf" >/dev/null
|
|
fi
|
|
fi
|