-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystem.yaml
More file actions
executable file
·71 lines (63 loc) · 1.66 KB
/
Copy pathsystem.yaml
File metadata and controls
executable file
·71 lines (63 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env ansible-playbook
---
- name: "Configure system bootloader"
hosts: localhost
tasks:
# Limine bootloader
- name: "Create Limine EFI directory"
ansible.builtin.file:
path: /boot/EFI/limine
state: directory
mode: "0700"
owner: root
group: root
become: true
- name: "Create pacman hooks directory"
ansible.builtin.file:
path: /etc/pacman.d/hooks
state: directory
mode: "0755"
owner: root
group: root
become: true
- name: "Install Limine pacman hook"
ansible.builtin.copy:
src: "{{ playbook_dir }}/config/limine/limine.hook"
dest: /etc/pacman.d/hooks/limine.hook
owner: root
group: root
mode: "0644"
become: true
- name: "Install Limine"
community.general.pacman:
name:
- limine # An advanced, portable, multiprotocol bootloader
state: present
become: true
- name: "Install Limine configuration"
ansible.builtin.copy:
src: "{{ playbook_dir }}/config/limine/limine.conf"
dest: /boot/limine.conf
owner: root
group: root
mode: "0600"
become: true
- name: "Check if Limine EFI entry already exists"
ansible.builtin.command:
cmd: efibootmgr
register: limine_efi_entries
changed_when: false
failed_when: false
become: true
- name: "Add Limine EFI boot entry"
ansible.builtin.command:
cmd: >
efibootmgr
--create
--disk {{ efi_disk }}
--part {{ efi_partition }}
--label "Limine"
--loader '\EFI\limine\BOOTX64.EFI'
when: "'Limine' not in limine_efi_entries.stdout"
changed_when: true
become: true