For your case, you might want to switch to overlay rootfs and mount /boot as read-only, your sd card won't get changed at all.
cameos
joined 1 year ago
For your case, you might want to switch to overlay rootfs and mount /boot as read-only, your sd card won't get changed at all.
Configure your raspberry pi os properly, then use raspi-config to switch to overlay root filesystem. You can switch back (using raspi-config) if you want to make changes to your os.
See https://learn.adafruit.com/read-only-raspberry-pi/overview