fitu996 / overlayRoot.sh

Read-only Root-FS for most linux distributions using overlayfs.
GNU General Public License v3.0
27 stars 9 forks source link

How to use it on armbian #4

Open warner83 opened 2 months ago

warner83 commented 2 months ago

Hi, can you provide some info on how this can be used on armbian? I couldn't find the boot parameter Thanks

fitu996 commented 1 month ago
  1. Move this script to /sbin/overlayRoot.sh.
  2. chmod +x /sbin/overlayRoot.sh
  3. Change your boot parameter. Add/Modify init=/sbin/init to init=/sbin/overlayRoot.sh.
  4. Reboot and enjoy.
fitu996 commented 1 month ago

For debian-based distribution, boot parameter related config file usually located in /etc/default/grub. The GRUB_CMDLINE_LINUX_DEFAULT option is the boot parameters in most case. Run sudo update-grub afterwards.

See https://askubuntu.com/questions/19486/how-do-i-add-a-kernel-boot-parameter