Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not actually mount the root fs readonly #2

Open
fokkedj opened this issue Jul 9, 2018 · 1 comment
Open

does not actually mount the root fs readonly #2

fokkedj opened this issue Jul 9, 2018 · 1 comment

Comments

@fokkedj
Copy link

fokkedj commented Jul 9, 2018

after running the script, some tmps's are created, but the root is still mounted as rw.
The output of df looks like this:

Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root       15011056 1251204  13117476   9% /
devtmpfs          470180       0    470180   0% /dev
tmpfs             474788       0    474788   0% /dev/shm
tmpfs             474788   12224    462564   3% /run
tmpfs               5120       4      5116   1% /run/lock
tmpfs             474788       0    474788   0% /sys/fs/cgroup
/dev/mmcblk0p1     41853   21328     20525  51% /boot
tmpfs              94956       0     94956   0% /run/user/1000

any idea?

raspberry Pi 3B, raspbarian stretch

@Rolf-M
Copy link

Rolf-M commented Jul 13, 2018

Hello fokkedj,
your output shows that there is no overlay active. So check if you had correctly run the script.

About your question: I would say the intension of the script is not changing the /boot mountpoint. If you like to have this, you will need to change /etc/fstab. change "defaults" to "defaults,ro" in the line of the /boot mount

The next boot will be with readonly /boot tree.

Be aware that you will need to remout in rw mode to make changes to the cmdline.txt afterwards!

Regards, Rolf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants