2

I know that I can enable/disable OverlayFS from the raspi-config, but do I do this from the terminal? Via a bash script for example.

2 Answers 2

6

sudo raspi-config nonint enable_overlayfs or sudo raspi-config nonint disable_overlayfs

Then reboot.

3

Just study raspi-config which is just a simple (if rather long) shell script and extract the bits you need.

It is actually possible to call the functions in raspi-config.

enable_overlayfs() disable_overlayfs() should work (but I have not tried).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.