Difference between revisions of "Explorer/RaspberryPi/PowerOffProtection"

From PaparazziUAV
Jump to navigation Jump to search
Line 12: Line 12:
check: reboot, create file, reboot, file is not here
check: reboot, create file, reboot, file is not here


  boot/cmdline.txt
  /boot/cmdline.txt
  remove "init=/sbin/overlayRoot.sh"
  remove "init=/sbin/overlayRoot.sh"



Revision as of 03:14, 23 June 2020

  • Install
git clone https://github.com/marklister/overlayRoot.git
cd overlayRoot 
sudo bash install
sudo dphys-swapfile swapoff;\
sudo dphys-swapfile uninstall;\
sudo update-rc.d dphys-swapfile remove
  • Check

check: reboot, create file, reboot, file is not here

/boot/cmdline.txt
remove "init=/sbin/overlayRoot.sh"

check: reboot, create file, reboot, file is here

  • Usage
sudo mount -o remount,rw /ro
sudo chroot /ro