This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Read-only Root-FS for Raspian using overlayfs | |
| # Version 1.2: | |
| # Don't mount ro/rw root inside newroot | |
| # Don't remove root from ftab | |
| # Move dev & proc to newroot and redirect execed chrooted subshell console to newroot's dev | |
| # Version 1.1: | |
| # Changed to use /proc/mounts rathern than /etc/fstab for deriving the root filesystem. | |
| # |