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

Add optional second argument to do_overlayfs to make separate control easier #208

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cinderblock
Copy link

I've been using raspi-config with the nonint option in some scripts.

I noticed with sudo raspi-config nonint do_overlayfs * it is not possible to control the state of the boot fs independently of the root fs, assuming you have rw permissions already.

I think the problem is here

RET=$1

Where RET is set to the first argument to the function ($1).

I think it would be a little better if it were to use a second argument that defaults to the same as the first: ${2:-$1}.

Alternatively a shift after the previous ret assignment could work, but I think that would confuse things more than help.

Allow controlling boot partition's `rw` separately from root partition's
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

Successfully merging this pull request may close these issues.

1 participant