generated from nicolabelluti/template-ansible
Updated the kernel to use the BORE scheduler
This commit is contained in:
@@ -29,8 +29,8 @@
|
|||||||
become: true
|
become: true
|
||||||
community.general.pacman:
|
community.general.pacman:
|
||||||
name:
|
name:
|
||||||
- linux-cachyos-bc250
|
- linux-cachyos-bore-bc250
|
||||||
- linux-cachyos-bc250-headers
|
- linux-cachyos-bore-bc250-headers
|
||||||
- linux-cachyos
|
- linux-cachyos
|
||||||
- linux-cachyos-headers
|
- linux-cachyos-headers
|
||||||
state: present
|
state: present
|
||||||
@@ -49,9 +49,9 @@
|
|||||||
cmd: |
|
cmd: |
|
||||||
set -eu
|
set -eu
|
||||||
EFIVAR=$(ls /sys/firmware/efi/efivars/LimineLastBootedEntry-*)
|
EFIVAR=$(ls /sys/firmware/efi/efivars/LimineLastBootedEntry-*)
|
||||||
[ "$(tail -c +5 "$EFIVAR" | tr -d '\0')" = 'CachyOS/linux-cachyos-bc250' ] && exit 90
|
[ "$(tail -c +5 "$EFIVAR" | tr -d '\0')" = 'CachyOS/linux-cachyos-bore-bc250' ] && exit 90
|
||||||
chattr -i "$EFIVAR"
|
chattr -i "$EFIVAR"
|
||||||
printf '\x07\x00\x00\x00CachyOS/linux-cachyos-bc250\x00' > "$EFIVAR"
|
printf '\x07\x00\x00\x00CachyOS/linux-cachyos-bore-bc250\x00' > "$EFIVAR"
|
||||||
register: efivar_write
|
register: efivar_write
|
||||||
changed_when: efivar_write.rc == 0
|
changed_when: efivar_write.rc == 0
|
||||||
failed_when: efivar_write.rc not in [0, 90]
|
failed_when: efivar_write.rc not in [0, 90]
|
||||||
|
|||||||
Reference in New Issue
Block a user