generated from nicolabelluti/template-ansible
Updated the kernel to use the BORE scheduler
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
become: true
|
||||
community.general.pacman:
|
||||
name:
|
||||
- linux-cachyos-bc250
|
||||
- linux-cachyos-bc250-headers
|
||||
- linux-cachyos-bore-bc250
|
||||
- linux-cachyos-bore-bc250-headers
|
||||
- linux-cachyos
|
||||
- linux-cachyos-headers
|
||||
state: present
|
||||
@@ -49,9 +49,9 @@
|
||||
cmd: |
|
||||
set -eu
|
||||
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"
|
||||
printf '\x07\x00\x00\x00CachyOS/linux-cachyos-bc250\x00' > "$EFIVAR"
|
||||
printf '\x07\x00\x00\x00CachyOS/linux-cachyos-bore-bc250\x00' > "$EFIVAR"
|
||||
register: efivar_write
|
||||
changed_when: efivar_write.rc == 0
|
||||
failed_when: efivar_write.rc not in [0, 90]
|
||||
|
||||
Reference in New Issue
Block a user