Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

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

@ThaDaVos

Description

@ThaDaVos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug_triageNewly report and needs review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions