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 a systemd generator that automatically launches IS if trigger file is found #12

Conversation

M4rtinK
Copy link
Contributor

@M4rtinK M4rtinK commented Jun 1, 2016

The first patch adds the initial-setup-reconfiguration.service which starts initial-setup.service if /.unconfigured exists.

The IS-side machinery then runs it in the reconfig mode due to the /.unconfigured trigger file being found. It also takes care of enabling of cleaning up the trigger file once done.

The second patch is just some cleanups and logging improvements I did when working on the first patch.

BTW, for this to work the initial-setep-reconfiguration.service needs to be always enabled.That effectively means the service needs to be added to the systemd presets file to assure it is automatically enabled when the initial-setup package is installed.

…ists (#1257624)

Add a systemd service called initial-setup-reconfiguration.service that automatically starts
initial-setup.service when a file named .unconfigured exists in filesystem root (/).

Initial Setup will then detect the file & start in the reconfiguration mode.
Initial Setup also makes sure to delete the file & disable its service once done.

Resolves: rhbz#1257624
@@ -113,11 +121,26 @@ def __init__(self, gui_mode):
setup_ifcfg_log()

@property
def external_reconfig(self):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I don't see the point of making this @Property and having it just mirror the self._external_reconfig, it isn't actually doing anything more than a plain old attribute would.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I think it is still beneficial due to being able to attach a proper docstring to it.

@bcl bcl added the ACK label Jun 1, 2016
@bcl
Copy link

bcl commented Jun 1, 2016

Looks good other than the one comment.

@M4rtinK
Copy link
Contributor Author

M4rtinK commented Jun 2, 2016

Pushed.

@M4rtinK M4rtinK closed this Jun 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants