I want to try to replace Raspbian by Alpine on my Raspberry Pi Zero W, without having physical access to it. I am wondering whether the following procedure would work:
- While Raspbian is running:
- Replace the files in /boot with the files from the /boot partition of Alpine.
- Add files in /boot to automate the Alpine installation.
- Reboot into Alpine
I am not sure however that it is safe to replace the files in /boot while Raspbian is still running. According to 'lsof' there seem to be no files open, but that does of course not guarantee that indeed the files in /boot are not used anymore after the boot process is finished (incl shutdown/reboot). Does anybody know?