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 an option to change the default shell. #215

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

Conversation

meator
Copy link
Contributor

@meator meator commented Jul 2, 2021

This adds an option to set the default shell of the root user and documents the live.shell kernel option.

I know that a similar change has already been closed (#99). My change makes this more configurable and optional. And it documents the live.shell option that isn't documented anywhere else and is pretty useful.

I'll understand if you close this, but I consider this helpful for people who are customizing their iso.

@Vaelatern
Copy link
Member

I do not object to this.

Configuration in this particular area might be useful. The previous PR posited "The default shell should be bash" which was wrong. This one posits "The default shell should be configurable on image creation" which seems reasonable.

I'm pretty sure the commit message is incorrect.

@meator meator force-pushed the default_shell branch 2 times, most recently from fc2b155 to 2c53fca Compare July 2, 2021 16:53
@meator
Copy link
Contributor Author

meator commented Jul 2, 2021

I've made the commit message clearer.
I've also added a check that increases STEP_COUNT by one when the -S option is used.

This commit add a -S option that changes the default root shell of
the iso. It also mentions the live.shell kernel option that changes
the shell of the unprivileged user (anon).
@classabbyamp classabbyamp added the installer issues and pull requests related to the el cheapo installer label Jul 19, 2022
Copy link
Contributor

@0x5c 0x5c left a comment

Choose a reason for hiding this comment

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

This would be a neat feature to have

The option doesn't currently set the shell for the anon user, should this also be implemented? I think it might be doable by modifying dracut/vmklive/adduser.sh when creating the image.

Comment on lines +78 to +79
-S <shell> Default shell of the root user (must be absolute path).
Set the live.shell kernel parameter to change the default shell of anon.
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this PR was made, #267 was merged and added a -S argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installer issues and pull requests related to the el cheapo installer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants