From 30396e044120e6a8fc82a5ae405b63308abf555c Mon Sep 17 00:00:00 2001 From: Massaki Archambault Date: Tue, 7 Dec 2021 09:47:48 -0500 Subject: [PATCH] force fsck on raspberry pi boot --- roles/k3s/files/cmdline.txt | 2 +- roles/k3s/tasks/main.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/k3s/files/cmdline.txt b/roles/k3s/files/cmdline.txt index 19b7e2f..49d2647 100644 --- a/roles/k3s/files/cmdline.txt +++ b/roles/k3s/files/cmdline.txt @@ -1 +1 @@ -net.ifnames=0 dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=LABEL=writable rootfstype=ext4 elevator=deadline rootwait fixrtc cgroup_memory=1 cgroup_enable=memory \ No newline at end of file +net.ifnames=0 dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=LABEL=writable rootfstype=ext4 fsck.mode=force elevator=deadline rootwait fixrtc cgroup_memory=1 cgroup_enable=memory \ No newline at end of file diff --git a/roles/k3s/tasks/main.yml b/roles/k3s/tasks/main.yml index fc4a8bb..88e7c62 100644 --- a/roles/k3s/tasks/main.yml +++ b/roles/k3s/tasks/main.yml @@ -6,6 +6,7 @@ owner: root group: root mode: 0755 + notify: reboot - name: Configure poe hat fan speed control udev rules copy: @@ -13,8 +14,8 @@ dest: /etc/udev/rules.d/50-rpi-fan.rules notify: reboot -- name: Enable cgroups +- name: Configure kernel command line parameters copy: src: cmdline.txt dest: /boot/firmware/cmdline.txt - notify: reboot \ No newline at end of file + notify: reboot