|
|
@ -38,6 +38,33 @@ |
|
|
|
become: yes |
|
|
|
when: arch_based and False # I'm trying to remember why I usually delete this thing |
|
|
|
|
|
|
|
# Verbose logging during boot |
|
|
|
|
|
|
|
- name: Check if using Uboot |
|
|
|
stat: |
|
|
|
path: /boot/extlinux/extlinux.conf |
|
|
|
register: extlinux |
|
|
|
# This (and the following) was made with the Pinebook in mind, |
|
|
|
# not sure about compatibility |
|
|
|
|
|
|
|
- name: Remove non-tty1 console (Uboot) |
|
|
|
replace: |
|
|
|
path: /boot/extlinux/extlinux.conf |
|
|
|
regexp: '^APPEND(.*) console=(?!tty1)\S+(.*)$' |
|
|
|
replace: 'APPEND\1\2' |
|
|
|
become: yes |
|
|
|
when: extlinux.stat.exists |
|
|
|
# Only one console= will be removed because regular expression are either hard |
|
|
|
# or somewhat limited. It's just what I need anyway |
|
|
|
|
|
|
|
- name: Remove bootsplash.bootfile (Uboot) |
|
|
|
replace: |
|
|
|
path: /boot/extlinux/extlinux.conf |
|
|
|
regexp: '^APPEND(.*) bootsplash.bootfile=\S+(.*)$' |
|
|
|
replace: 'APPEND\1\2' |
|
|
|
become: yes |
|
|
|
when: extlinux.stat.exists |
|
|
|
|
|
|
|
# Xorg configuration |
|
|
|
|
|
|
|
- name: Check if there is nvidia-xrun is installed |
|
|
@ -115,6 +142,24 @@ |
|
|
|
notify: etc changed |
|
|
|
loop: "{{ xorg_common_config_dirs }}" |
|
|
|
|
|
|
|
- name: List modules we're using |
|
|
|
slurp: |
|
|
|
src: /proc/modules |
|
|
|
register: modules |
|
|
|
when: display_server |
|
|
|
# Not sure the module will be loaded in early setup stages though |
|
|
|
|
|
|
|
- name: Make panfrost use OpenGL 3.3 |
|
|
|
lineinfile: |
|
|
|
path: /etc/environment |
|
|
|
line: 'PAN_MESA_DEBUG="gl3"' |
|
|
|
regexp: '^#? ?PAN_MESA_DEBUG=' |
|
|
|
become: yes |
|
|
|
when: display_server and using_panfrost |
|
|
|
vars: |
|
|
|
using_panfrost: "{{ 'panfrost' in (modules.content | b64decode) }}" |
|
|
|
notify: panfrost config changed |
|
|
|
|
|
|
|
# Numlock on boot |
|
|
|
|
|
|
|
- name: set numlock on boot |
|
|
|