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

Filesystem not expanding if rc.local does not exist #270

Open
strooooke opened this issue Dec 11, 2023 · 0 comments
Open

Filesystem not expanding if rc.local does not exist #270

strooooke opened this issue Dec 11, 2023 · 0 comments

Comments

@strooooke
Copy link

Sort of follow-up on #267 - if /etc/rc.local does not exist originally, then it won't get created.

Issue seems to be a misplaced fi:

The block in lines 91/92 (if .../etc/rc.local exists but doesn't have exactly our content...) has its closing fi sit far down, in line 161, after writing the /etc/rc.local and making it executable.

What's suggested by the indentation, and would make sense to me, is moving the fi below line 92. Then we always get /etc/rc.local creation.

Or adding the or doesn't exist check in line 91 - and maybe indenting the whole block ;)

(The question whether just putting an /etc/rc.local in will work is a different one, and depends on whether your image will actually run /etc/rc.local, but that is a different problem that can be solved by modifying the image appropriately before pulling it).

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

1 participant