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

post-install commands are executed with bash -l so it's creating a new login shell #813

Open
ThaDaVos opened this issue Aug 24, 2024 · 0 comments
Labels
bug_triage Newly report and needs review

Comments

@ThaDaVos
Copy link

Describe the bug
A clear and concise description of what the bug is.

It seems the post-install commands are called with bash -l when using clr-installer --config ... in the live-server installer - this creates a new bash login shell, which in turns triggers .bash_login if it exists - I have a modified live-server image which has the .bash_login in the roots home directory, so it's getting called again, which isn't functional as the script it calls requires input from the user, so halting the post-install script without any means of interaction

To Reproduce
Steps to reproduce the behavior:

  1. Create a custom live-iso which has a .bash_login inside the root home directory which requests users input
  2. Use a config with a post-install command
  3. call clr-installer with your config
  4. See it hang indefinitely

Expected behavior
A clear and concise description of what you expected to happen.

I expected it to be called with just bash not bash -l, so to execute normally

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Clear Linux OS Version: [swupd info] 42210
  • Installer Version [clr-installer -v] 2.7.11
  • Platform: [hardware infomation] N/A

Additional context
Add any other context about the problem here.

@ThaDaVos ThaDaVos added the bug_triage Newly report and needs review label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug_triage Newly report and needs review
Projects
None yet
Development

No branches or pull requests

1 participant