I have the following set-up:
- hw: RPi 3 Model B
- os: 4.4.37-1-ARCH #1 SMP armv7l GNU/Linux
- file system: /boot(vfat), /(ext4), /var(ext4)
- partitions: three; mounted: /boot, /, /var
- storage: mlc nand flash micro sd
Recently I am getting kernel panic errors at boot time referring to a file in lib which turns out to be some how corrupted.
kernel panic "/sbin/init" error while loading shared libraries /usr/lib/libseccomp.so.2 invalid elf header
So my theory is that since my root file system is NOT readonly and I am using nand flash and there are unexpected shutdowns, some files are getting corrupted.
The goal is to make the root file system readonly so that it may solve the problem.
Unfortunately I could not find any good solid source on how making a readonly root file system should be done on Arch Linux.
Also posted on Arch Linux Forum: https://archlinuxarm.org/forum/viewtopic.php?f=9&t=11621