项目作者: aristosv

项目描述 :
Read-only root filesystem for Raspbian Stretch using overlay
高级语言: Shell
项目地址: git://github.com/aristosv/raspbian-readonly.git
创建时间: 2019-02-24T06:44:39Z
项目社区:https://github.com/aristosv/raspbian-readonly

开源协议:

下载


raspbian-readonly

Credit goes to the following people

They did the actual work, I simply modularized the scripts for my own convenience, configured them so the pi user can run them (no need to sudo su) and created a single command installation.

Run the command below on a clean, minimal installation of Raspbian Stretch.

  1. bash <(wget --no-check-certificate -qO- https://raw.githubusercontent.com/aristosv/raspbian-readonly/master/install)

Everything will be set up, and after reboot the system will be read-only.

Reboot to read/write mode (disable overlay fs)

  1. /home/pi/rw-mode

Reboot to read-only mode (enable overlay fs)

  1. /home/pi/ro-mode

Enter temporary write access mode

  1. sudo mount -o remount,rw /mnt/root-ro
  2. chroot /mnt/root-ro

Exit temporary write access mode

  1. exit
  2. sudo mount -o remount,ro /mnt/root-ro