Add archlinux (aarch64) support (#146)

* Add archlinux (aarch64) support

Signed-off-by: Assaf Sapir <meijin007@gmail.com>
This commit is contained in:
Assaf Sapir
2023-11-08 20:31:51 +02:00
committed by GitHub
parent 83de43125b
commit 057b3bfc07
4 changed files with 26 additions and 3 deletions

View File

@@ -33,6 +33,14 @@
( ansible_facts.lsb.id|default("") == "Debian" or
ansible_facts.lsb.description|default("") is match("Debian") )
- name: Set detected_distribution to ArchLinux (ARM64)
set_fact:
detected_distribution: Archlinux
when:
- ansible_facts.architecture is search("aarch64")
- raspberry_pi|default(false)
- ansible_facts.os_family is match("Archlinux")
- name: Set detected_distribution_major_version
ansible.builtin.set_fact:
detected_distribution_major_version: "{{ ansible_facts.lsb.major_release }}"

View File

@@ -0,0 +1,14 @@
---
- name: Enable cgroup via boot commandline if not already enabled for Archlinux
lineinfile:
path: /boot/boot.txt
search_string: setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}"
line: setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}" cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
register: kernel_cmdline_cgroup
- name: Create
shell: ./mkscr
args:
chdir: /boot
notify: reboot
when: kernel_cmdline_cgroup.changed