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

Prevent use of --force argument when initing from container #2064

Open
anmazzotti opened this issue May 3, 2024 · 1 comment
Open

Prevent use of --force argument when initing from container #2064

anmazzotti opened this issue May 3, 2024 · 1 comment
Labels
area/init kind/question Further information is requested

Comments

@anmazzotti
Copy link
Contributor

Is your feature request related to a problem? Please describe.

When building a derivative image and invoking elemental init, I always have to use --force.
I wonder if this could be separated to a dedicated flag, like --allow-init-from-container for this specific case, so that --force can be omitted and used to make the build fail or pass due to warnings.

Describe the solution you'd like

As an example of this use case, considering the file overwriting issue, I would like warnings to be a failure reason to elemental init, with the ability of suppressing them using --force when needed.

@frelon
Copy link
Contributor

frelon commented May 8, 2024

How are you building the images? docker build should put the /.dockerenv file that we check for in elemental init, so if that file exists you don't actually need to pass the --force flag.

@frelon frelon added kind/question Further information is requested area/init labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/init kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants