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

Fix interactive shell called from installer script #4299

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

rene
Copy link
Contributor

@rene rene commented Sep 26, 2024

Description

One fix and one small improvement in the installer script:

Forces shell to run interactively when required

The installer script runs within a onboot container, with output/input not redirected to the current tty console. When a pause is required by the user (before or after the installation process), the shell called within the install script will not work. Forcing input/output to /dev/console fixes the problem.

Move "pause before install" to early stage

The boot option "pause before install" will pause the installation process only after wiping disks (when required), so move the pause to an earlier stage, before any destructive action to storage devices is performed.

The boot option "pause before install" will pause the installation process
only after wiping disks (when required), so move the pause to an earlier
stage, before any destructive action to storage devices is performed.

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
The installer script runs within a onboot container, with output/input not
redirected to the current tty console. When a pause is required by the user
(before or after the installation process), the shell called within the
install script will not work. Forcing input/output to /dev/console fixes
the problem.

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
Copy link
Member

@OhmSpectator OhmSpectator left a comment

Choose a reason for hiding this comment

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

I believe, you have already tested it?

@rene
Copy link
Contributor Author

rene commented Sep 26, 2024

I believe, you have already tested it?

Yes, tested with QEMU for amd64 and arm64.

@OhmSpectator OhmSpectator merged commit a1cc449 into lf-edge:master Sep 26, 2024
55 of 59 checks passed
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

Successfully merging this pull request may close these issues.

3 participants